Bugs item #473274, was opened at 2001-10-20 15:20 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=473274&group_id=5470 Category: Documentation Group: Not a Bug Status: Closed Resolution: Invalid Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Fred L. Drake, Jr. (fdrake) Summary: Tut. 6.3: __builtins__ misspelled Initial Comment: There's a small error in section 6.3 of the Tutorial: It says "__builtin__" in several places, which should be "__builtins__". By the way: Great tutorial, it's very helpful! Best regards Oliver Fromme <olli@secnetix.de> ---------------------------------------------------------------------- >Comment By: Tim Peters (tim_one) Date: 2001-10-20 21:35 Message: Logged In: YES user_id=31435 Oliver, it looks like you missed reading the line >>> import __builtin__ right before the >>> dir(__builtin__) you're talking about in section 6.3. The import is necessary! Trust me when I tell you that you really don't want to know about the differences between __builtin__ and __builtins__ yet <wink>. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2001-10-20 20:05 Message: Logged In: NO OK, I'm not a Python expert, I'm just reading the Tutorial and trying the examples. One of the examples in section 6.3 is "dir(__builtin__)". When I try this with Python 2.1.1, this is what I get: >>> dir(__builtin__) Traceback (most recent call last): File "<stdin>", line 1, in ? NameError: name '__builtin__' is not defined However, when I add an "s", it works as described: >>> dir(__builtins__) ['ArithmeticError', 'AssertionError', 'AttributeError', ......] So, it very much looks like there is a typo in the Tutorial. I'm sorry if I haven't made myself clear enough in my first message. Best regards Oliver Fromme ---------------------------------------------------------------------- Comment By: Guido van Rossum (gvanrossum) Date: 2001-10-20 17:55 Message: Logged In: YES user_id=6380 Nonsense. __builtin__ is right. __builtins__ is a different thing altogether! ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=473274&group_id=5470
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4