[issue25136] Python doesn't find Xcode 7 stub libraries

2016-02-23 Thread Anthony Foglia
Changes by Anthony Foglia : -- nosy: +afoglia ___ Python tracker <http://bugs.python.org/issue25136> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.

2010-07-27 Thread Anthony Foglia
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

[issue8836] Conflicting default values of parameter to __import__

2010-05-27 Thread Anthony Foglia
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

[issue7542] segfault on cPickle.loads("0.")

2009-12-18 Thread Anthony Foglia
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", "

[issue7434] pprint doesn't know how to print a namedtuple

2009-12-04 Thread Anthony Foglia
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

[issue6324] "in" expression falls back to __iter__ before __getitem__

2009-10-21 Thread Anthony Foglia
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)

[issue6324] "in" expression falls back to __iter__ before __getitem__

2009-06-22 Thread Anthony Foglia
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