Changes by Anthony Foglia :
--
nosy: +afoglia
___
Python tracker
<http://bugs.python.org/issue25136>
___
___
Python-bugs-list mailing list
Unsubscribe:
Anthony Foglia added the comment:
I could see adding a doc parameter to the collections.namedtuple. So that
---
>>> Point = collections.namedtuple("Point", ("x", "y"), doc="My point class")
>>> Point.__doc__
My point class
---
(Or it
New submission from Anthony Foglia :
Looking at the documentation for the __import__ builtin, the default value of
the level parameter is unclear. Two different values are mentioned. The
function signature is written:
__import__(name, globals={}, locals={}, fromlist=[], level=-1)
But the
New submission from Anthony Foglia :
cPickle in Python 2.6.4 segfaults when trying to load the string "0.".
pickle throws an error. cPickle should at the least not segfault.
$ python
Python 2.6.4 (r264:75706, Nov 2 2009, 14:44:17)
[GCC 4.4.1] on linux2
Type "help", "
New submission from Anthony Foglia :
It would be nice if pprint could format namedtuples wrapping lines as it
does with tuples.
Looking at the code, this does not look like an easy task. Completely
rewriting pprint to allow it to be extensible to user-created classes
would be best, but involve
Anthony Foglia added the comment:
I've added Python 2.7 to the list of versions. The development docs
have the same issue.
Let me try another stab at what the docs should say. Following the
suggestion to add it to 3.3.5, perhaps it should be:
"
object.__contains__(self, item)
New submission from Anthony Foglia :
I was debugging a class where I defined __getitem__ and __iter__, but
not __contains__. The documentation describing this case (at the end of
section 5.9) is old and hasn't been updated for the iterator protocol.
It should read something like:
&quo