This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ash
Recipients ash, georg.brandl
Date 2009-08-18.10:38:42
SpamBayes Score 0.00049571285
Marked as misclassified No
Message-id <1250591925.23.0.269848636465.issue6722@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe it's just me, but it took me several attempts  to understand
namedtuple example in the documentation [1]. The problem is that the
first example uses verbose=True. It's very unusual to get Python source
as the output in Python shell. At first I thought there's some syntax
error in documentation source.

I know that several lines above one can read: "If verbose is true, the
class definition is printed just before being built." But during first
several attempts to understand namedtuple, I skipped it and directly
scrolled to the first example.

I think the first example on namedtuple usage shouldn't use verbose=True.

You could argue I had to try using namedtuple inside Python shell. I
agree. But unfortunately Python 2.6 was not installed on the computer I
was at.

[1]: http://docs.python.org/library/collections.html#collections.namedtuple
History
Date User Action Args
2009-08-18 10:38:45ashsetrecipients: + ash, georg.brandl
2009-08-18 10:38:45ashsetmessageid: <1250591925.23.0.269848636465.issue6722@psf.upfronthosting.co.za>
2009-08-18 10:38:43ashlinkissue6722 messages
2009-08-18 10:38:42ashcreate