[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-31 Thread Eli Bendersky
Eli Bendersky added the comment: A couple of high-level questions about the C code (this isn't a detailed review yet): 1. Why did you choose to implement __reduce__ and not __getstate__? 2. A lot of code appears to be shared between element_setstate_from_attributes and the init method implemen

[issue16659] Pure Python implementation of random

2012-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay thanks. I'll look over the patch in detail over the next few days. FYI, I'm the maintainer of this module (and was the one to add the original Mersenne Twister code). -- assignee: serhiy.storchaka -> rhettinger _

[issue16831] Better docs for ABCMeta.__subclasshook__

2012-12-31 Thread Nick Coghlan
New submission from Nick Coghlan: Authors of __subclasshook__ methods need to decide between returning True, False and NotImplemented in various cases. Making that decision requires a clear understanding that the checks in ABCMeta.__subclasscheck__ occur in the following order: - explicit reg

[issue16826] Don't check for PYTHONCASEOK if interpreter started with -E

2012-12-31 Thread Meador Inge
Meador Inge added the comment: Is the attached OK? -- keywords: +patch nosy: +meador.inge stage: test needed -> patch review Added file: http://bugs.python.org/file28517/issue16826-0.patch ___ Python tracker __

[issue12915] Add inspect.locate and inspect.resolve

2012-12-31 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16832] Expose cache validity checking support in ABCMeta

2012-12-31 Thread Nick Coghlan
New submission from Nick Coghlan: ABCMeta uses an internal counter to invalidate the negative caches when a register() call changes the virtual inheritance graph. (A global count of register() calls is stored on ABCMeta, which ABCMeta.__instancecheck__ and ABCMeta.__subclasscheck__ then compar

[issue16831] Better docs for ABCMeta.__subclasshook__

2012-12-31 Thread Nick Coghlan
Nick Coghlan added the comment: Also, we should probably explain the approach we chose to follow in the stdlib, where we block implicit inheritance of __subclasshook__ behaviour by include an explicit type check at the start of the implementation, so it always returns NotImplemented when the f

[issue16831] Better docs for ABCMeta.__subclasshook__

2012-12-31 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Pyt

<    1   2