[Python-bugs-list] [ python-Bugs-473274 ] Tut. 6.3: __builtins__ misspelled

noreply@sourceforge.net noreply@sourceforge.net
Sat, 20 Oct 2001 20:05:14 -0700


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: 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