[issue17960] Clarify the required behaviour of locals()

2013-05-12 Thread Nick Coghlan
New submission from Nick Coghlan: As proposed at [1], I would like to tighten up the definition of locals so that defining enum members programmatically is officially supported behaviour. I'll come up with a patch soonish. [1] http://mail.python.org/pipermail/python-dev/2013-May/125917.html -

[issue17960] Clarify the required behaviour of locals()

2013-05-12 Thread Ezio Melotti
Ezio Melotti added the comment: See also #17546 and #7083. -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: That's a terrible way to express aliasing, because it's really unclear that "rectangle" is the canonical name. By contrast: class Shape(Enum): rectangle = 2 oblong = rectangle leaves no doubt as to which is canonical and which is the alias. You never

[issue17606] xml.sax.saxutils.XMLGenerator cannot output with the correct encoding

2013-05-12 Thread Antonio Pérez
Changes by Antonio Pérez : -- nosy: +skarcha ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17960] Clarify the required behaviour of locals()

2013-05-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17934] Add a frame method to clear expensive details

2013-05-12 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-05-12 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Stefan, I took a quick look at your patch. There is a couple things that stands out. First, I think the implementation of BINGLOBAL and BINGLOBAL_BIG should be moved to another patch. Adding a binary version opcode for GLOBAL is a separate feature and i

[issue17666] Extra gzip headers breaks _read_gzip_header

2013-05-12 Thread Georg Brandl
Georg Brandl added the comment: Cherry-picked to 3.2 branch as c31ff361cde3. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-05-12 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied to 3.2 branch. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-05-12 Thread Georg Brandl
Georg Brandl added the comment: Cherry-picked to 3.2 branch. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f62c848f713 by Benjamin Peterson in branch '3.3': prevent IDLE from trying to close when sys.stdin is reassigned (#17838) http://hg.python.org/cpython/rev/5f62c848f713 New changeset bc322854c336 by Georg Brandl in branch 'default': Issue #17838: me

[issue17585] IDLE - regression with exit() and quit()

2013-05-12 Thread Georg Brandl
Changes by Georg Brandl : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16805] when building docs on Debian 7 --> ERROR: Error in "note" directive

2013-05-12 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: Ok. I thought doc fixes were exempt. Strange policy there. -- ___ Python tracker ___ ___ Pytho

[issue15902] imp.load_module won't accept None for the file argument for a C extension

2013-05-12 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17957] remove outdated (and unexcellent) paragraph in whatsnew

2013-05-12 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : Removed file: http://bugs.python.org/file30227/diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17957] remove outdated (and unexcellent) paragraph in whatsnew

2013-05-12 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : Added file: http://bugs.python.org/file30230/diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17585] IDLE - regression with exit() and quit()

2013-05-12 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17957] remove outdated (and unexcellent) paragraph in whatsnew

2013-05-12 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: uploaded the correct one; sori -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue16805] when building docs on Debian 7 --> ERROR: Error in "note" directive

2013-05-12 Thread Georg Brandl
Georg Brandl added the comment: Please do not comment on policies if you don't understand our release system. -- ___ Python tracker ___ __

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.2? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17954] Support creation of extensible enums through metaclass subclassing

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: I elaborated on this point in http://python-notes.boredomandlaziness.org/en/latest/python3/enum_creation.html#support-for-alternate-declaration-syntaxes However, I'm now wondering if the problem is simply that the "no extension of enums" rule is more restrictive

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15535] Fix pickling efficiency of named tuples in 2.7.3

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31eaf8a137ea by Georg Brandl in branch '3.2': Issue #15535: Fix pickling of named tuples. http://hg.python.org/cpython/rev/31eaf8a137ea -- ___ Python tracker _

[issue17843] Lib/test/testbz2_bigmem.bz2 trigger virus warnings

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9da98ab823c9 by Georg Brandl in branch '3.2': Issue #17843: Remove bz2 test data that triggers antivirus warnings. http://hg.python.org/cpython/rev/9da98ab823c9 -- ___ Python tracker

[issue17857] sqlite modules doesn't build with 2.7.4 on Mac OS X 10.4

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5b5116bf953 by Serhiy Storchaka in branch '3.2': Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3, http://hg.python.org/cpython/rev/d5b5116bf953 -- ___ Python tracker

[issue17915] Encoding error with sax and codecs

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c01571ce0f4 by Georg Brandl in branch '3.2': Issue #17915: Fix interoperability of xml.sax with file objects returned by http://hg.python.org/cpython/rev/1c01571ce0f4 -- nosy: +python-dev ___ Python trac

[issue1159051] Handle corrupted gzip files with unexpected EOF

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 854ba6f414a8 by Georg Brandl in branch '3.2': Issue #1159051: Back out a fix for handling corrupted gzip files that http://hg.python.org/cpython/rev/854ba6f414a8 -- ___ Python tracker

[issue17666] Extra gzip headers breaks _read_gzip_header

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset c31ff361cde3 by Serhiy Storchaka in branch '3.2': Close #17666: Fix reading gzip files with an extra field. http://hg.python.org/cpython/rev/c31ff361cde3 -- stage: commit review -> committed/rejected ___

[issue17958] int(math.log(2**i, 2))

2013-05-12 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry: this is not a bug, but a difficult-to-avoid consequence of floating-point imprecision: math.log(n, 2) is computed as log(n) / log(2), and each of the log computations and the division can introduce small errors. For what it's worth, Python 3.3 has a `lo

[issue17958] int(math.log(2**i, 2))

2013-05-12 Thread Mark Dickinson
Mark Dickinson added the comment: Postscript: depending on what you're doing, you might also find the int.bit_length method helpful. -- ___ Python tracker ___ __

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-05-12 Thread Georg Brandl
Georg Brandl added the comment: Not necessary as per msg188301. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: Another approach to handling this, and other, issues is to allow options to EnumMeta. My original aenum code had the default Enum class as unordered, no duplicates allowed, non-indexable, etc., but then allowed options to be passed in such as DUPLICATES to allo

[issue17915] Encoding error with sax and codecs

2013-05-12 Thread Georg Brandl
Georg Brandl added the comment: Fixed in 3.2, 3.3 and default. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue1159051] Handle corrupted gzip files with unexpected EOF

2013-05-12 Thread Georg Brandl
Changes by Georg Brandl : -- priority: release blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1159051] Handle corrupted gzip files with unexpected EOF

2013-05-12 Thread Georg Brandl
Changes by Georg Brandl : -- versions: -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1159051] Handle corrupted gzip files with unexpected EOF

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c2831fe84e9 by Georg Brandl in branch '3.3': Back out patch for #1159051, which caused backwards compatibility problems. http://hg.python.org/cpython/rev/9c2831fe84e9 New changeset 5400e8fbc1de by Georg Brandl in branch 'default': null-merge revers

[issue17732] distutils.cfg Can Break venv

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c5a3d194a10 by Georg Brandl in branch '3.3': Closes issue #17732: ignore install-directory specific options in http://hg.python.org/cpython/rev/6c5a3d194a10 -- nosy: +python-dev ___ Python tracker

[issue17958] int(math.log(2**i, 2))

2013-05-12 Thread Mark Dickinson
Mark Dickinson added the comment: For tracker archaeologists: see also issue #11888, issue #9959. -- ___ Python tracker ___ ___ Python

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-12 Thread Nick Coghlan
New submission from Nick Coghlan: I encountered an interesting suggestion [1] regarding the enum.Enum convenience API: use the member names as their values, rather than the current integers starting from one. Since we're now using definition order rather than value order for iteration, this s

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- dependencies: +Code, test, and doc review for PEP-0435 Enum versions: +Python 3.4 ___ Python tracker ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Another post-incorporation proposal (issue 17961) relating to the values used for the functional API. -- ___ Python tracker ___ _

[issue17954] Support creation of extensible enums through metaclass subclassing

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: Make it simpler: class EnumMeta(): allow_subclass = False class MyEnumMeta(EnumMeta): allow_subclass = True -- ___ Python tracker ___ _

[issue17934] Add a frame method to clear expensive details

2013-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Mostly looks good to me, but I think I'd prefer that attempts to clear > a running frame raise RuntimeError with an appropriate message. Hmm, why not. My intuition was to make frame.clear() a best-effort method, but this sounds ok too. > I also wonder how thi

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-12 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17810] Implement PEP 3154 (pickle protocol 4)

2013-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Stefan, I took a quick look at your patch. There is a couple things > that stands out. It would be nice if you could reconcile each other's work. Especially so I don't re-implement framing on top of something else :-) > Adding a binary version opcode for GLOB

[issue17732] distutils.cfg Can Break venv

2013-05-12 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue17962] Broken OpenSSL version in Windows builds

2013-05-12 Thread Antoine Pitrou
New submission from Antoine Pitrou: 3.3 and default are currently fetching OpenSSL 1.0.1d for the Windows builds. It seems OpenSSL 1.0.1d was a kind of "brown paper bag" release, they've released 1.0.1e since (some of test_ssl can fail on 1.0.1d and succeed on 1.0.1e, as experienced on my Linu

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: After more thought, I think we should leave the shortened version of _StealthProperty as is. The reasoning being that if _StealthProperty does the __getattr__ lookup itself, and fails, it will return an AttributeError... and then Python will use __getattr__ aga

[issue17425] Update OpenSSL versions in Windows builds

2013-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Opened #17962 to tackle the broken OpenSSL issue. -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-12 Thread Eli Bendersky
Eli Bendersky added the comment: Nick, could you open a separate issue for the frame hack discussion, like you did for the other things? You can make this one depend on it, if you feel it's a "blocker", but let's please not intermix more discussion here. -- ___

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Specifically, my suggestion is that for auto-created enum members, the invariant "asset x.value == str(x)" should hold. In flufl.enum, using integers made sense because it relies on sorting of values to determine the iteration order. That's no longer a concern f

[issue17961] Use enum names as values in enum.Enum convenience API

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: In flufl.enum integers also made since as that was the default back-end data type. Currently, the functional method allows a type declaration. The behavior there could be tweaked such that no specification meant no value (a truly valueless enum!), type=int mea

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, that's an interesting point about allowing operations on the already defined values. You could get around that by requiring that the wrapper be explicit when definined the alias: >>> class Shape(enum.Enum): ... rectangle = 1 ... oblong = enum.alias(rec

[issue17954] Support creation of extensible enums through metaclass subclassing

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Simply removing the restriction isn't actually appropriate, as the variants that allow addition of new members should *not* allow addition of new descriptors. That's why I'm wondering if the current subclassing restriction is wrong: if you subclass an Enum deri

[issue17934] Add a frame method to clear expensive details

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: +1 to all Antoine's replies :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-12 Thread Eli Bendersky
Eli Bendersky added the comment: Ethan, I pasted the minimized version to point out the problem; I fully agree it should do the getattr lookup because otherwise it's very difficult to understand what's going on. Let's keep exceptions for actual exceptional situations and explicitly code the no

[issue17963] Deprecate the frame hack for implicitly getting module details

2013-05-12 Thread Nick Coghlan
New submission from Nick Coghlan: (Split off from issue 17947) collections.namedtuple includes a frame hack that attempts to make the functional API work for ordinary module level assignments: try: result.__module__ = _sys._getframe(1).f_globals.get('__name__', '__main__') exc

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Eli: done, created as #17963 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17963] Deprecate the frame hack for implicitly getting module details

2013-05-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- dependencies: +namedtuple should support fully qualified name for more portable pickling ___ Python tracker ___

[issue17954] Support creation of extensible enums through metaclass subclassing

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: Not trying to push, but if I don't write it down now, I'll forget later. ;) What does adding new members gain us? If I have a func xyz() that's expecting a Color, a MoreColor will work sometimes and blow up other times. Or are you saying that we may have a func

[issue17963] Deprecate the frame hack for implicitly getting module details

2013-05-12 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17954] Support creation of extensible enums through metaclass subclassing

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, you're right, I forgot that was the other reason for disallowing extensions through subclassing. To get extensions to work right, you need to flip it around so that isinstance(Color.red, MoreColor) is True, while isinstance(MoreColor.magenta, Color) is Fals

[issue17963] Deprecate the frame hack for implicitly getting module details

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: I believe Guido will be happy to replace the frame hack once we have something better, such as a way to implicitly (or explicitly in the case of helper functions) pass the calling module's name. Maybe a global __calling_module__ that a function can look at... o

[issue17963] Deprecate the frame hack for implicitly getting module details

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Right, but I think it's categorically impossible to make that work reliably without new syntax and a name binding protocol (or something equivalent). Due to the existence of the global keyword, the frame stack and normal assignment syntax simply don't provide ad

[issue17963] Deprecate the frame hack for implicitly getting module details

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, that was supposed to be "definitive assignments" in my previous comment. -- ___ Python tracker ___ _

[issue17962] Broken OpenSSL version in Windows builds

2013-05-12 Thread Stefan Drees
Changes by Stefan Drees : -- nosy: +sdrees ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: Here's the latest patch. Note that the functional API portion is broken, and I'll get back to that this evening. Please only comment on the working code. ;) I'll make that _MemborOrProperty name change then as well. -- Added file: http://bugs.python.o

[issue17606] xml.sax.saxutils.XMLGenerator cannot output with the correct encoding

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset a32a3b79f5e8 by Serhiy Storchaka in branch '2.7': Issue #17606: Fixed support of encoded byte strings in the XMLGenerator http://hg.python.org/cpython/rev/a32a3b79f5e8 New changeset e730447caf20 by Serhiy Storchaka in branch '3.3': Issue #17606: Fix

[issue17606] xml.sax.saxutils.XMLGenerator doesn't support byte strings

2013-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Sebastian for your report and patch. -- assignee: -> serhiy.storchaka components: +Library (Lib) resolution: -> fixed stage: -> committed/rejected status: open -> closed title: xml.sax.saxutils.XMLGenerator cannot output with the correct e

[issue17962] Broken OpenSSL version in Windows builds

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: The following patch will make use of 1.0.1e version of OpenSSL -- keywords: +patch nosy: +Yogesh.Chaudhari Added file: http://bugs.python.org/file30232/issue17962.patch ___ Python tracker

[issue17838] Can't assign a different value for sys.stdin in IDLE

2013-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I mean applying both issue17585 and issue17838 patches. -- ___ Python tracker ___ ___ Python-bugs-

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue17956] add ScheduledExecutor

2013-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. Extends an abstract interface to support of a priority and absolute time. 2. Subclass sched.scheduler from this interface and implement missing methods. -- ___ Python tracker

[issue17956] add ScheduledExecutor

2013-05-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-05-12 Thread Stefan Drees
Changes by Stefan Drees : -- nosy: +dilettant ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Stefan Drees
Changes by Stefan Drees : -- nosy: +dilettant ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue17914] add os.cpu_count()

2013-05-12 Thread Stefan Drees
Changes by Stefan Drees : -- nosy: +dilettant ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's way too much magic for my taste. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Also, since we currently don't forbid the following: >>> {'a': 1, 'a': 2} {'a': 2} I don't see why enums should be any different. Recommend closing. -- ___ Python tracker ___

[issue11016] stat module in C

2013-05-12 Thread Stefan Drees
Changes by Stefan Drees : -- nosy: +dilettant ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue17963] Deprecate the frame hack for implicitly getting module details

2013-05-12 Thread Brett Cannon
Brett Cannon added the comment: If you read the docs for sys._getframe() (http://docs.python.org/3/library/sys.html#sys._getframe) we explicitly state that the function should be considered an implementation detail for CPython. While Nick doesn't want to argue from the VM angle, I will. I wou

[issue10766] optparse uses %s in gettext calls

2013-05-12 Thread Mark Lawrence
Mark Lawrence added the comment: I don't understand this. Fixes have already been committed via #4391 but this fix couldn't go ahead. Can somebody please clarify the situation. -- nosy: +BreamoreBoy ___ Python tracker

[issue11011] More functools functions

2013-05-12 Thread Mark Lawrence
Mark Lawrence added the comment: To summarize flip, const and identity won't happen, trampoline needs an external recipe or blog post and compose is the only one that's likely to happen. Opinions please gentlemen. -- nosy: +BreamoreBoy ___ Python t

[issue8841] getopt errors should be specialized

2013-05-12 Thread Mark Lawrence
Mark Lawrence added the comment: #11371 was closed on 2011-03-21 so what if anything needs doing here? -- nosy: +BreamoreBoy ___ Python tracker ___ ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: @Eric: when you say: "If the type of the object really is "object", then it can use string formatting. It's only for non-objects that I want to add the error.". I am confused. Let me demonstrate what I'm thinking according to the statement above. First le

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: Please replace integer.__format__(s) with integer.__format__('') -- ___ Python tracker ___ ___ Py

[issue17956] add ScheduledExecutor

2013-05-12 Thread Charles-François Natali
Charles-François Natali added the comment: > 1. Extends an abstract interface to support of a priority I'm not sure I see the use case for priority support, do you have a sample use case? Furthermore, the executor is backed by a thread pool, so tasks can be run concurrently. Finally, the order

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2013-05-12 Thread Mark Dickinson
Mark Dickinson added the comment: Some comments for the first patch (I haven't really looked at the second): - I would much prefer PyLong_AsIntMax_t not to use nb_int; it should work only for instances of 'int' (just as PyLong_AsSsize_t and PyLong_AsSize_t currently do). - There's a missing

[issue17962] Broken OpenSSL version in Windows builds

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset d047928ae3f6 by Georg Brandl in branch '3.3': Closes #17962: Build with OpenSSL 1.0.1e on Windows. http://hg.python.org/cpython/rev/d047928ae3f6 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue17914] add os.cpu_count()

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: @STINNER: I don't understand. Where exactly should the patch handle this? -- ___ Python tracker ___ __

[issue17890] argparse: mutually exclusive groups full of suppressed args can cause AssertionErrors

2013-05-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Argparse is out of my area of competence/experience. I have added a couple of people who have worked on argparse in the past and should be better able to review or suggest another reviewer. -- nosy: +bethard, r.david.murray ___

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are updated patches from issue17906. Updated tests, fixed a bug reported by Bob Ippolito in msg188857 and fixed inconsistency noted by Ezio Melotti on Rietveld (Python implementation now raises same exception as C implementation on illegal hexadecimal e

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-05-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file30235/json_decode_lone_surrogates_2-2.7.patch ___ Python tracker ___ ___

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2013-05-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Extension Modules stage: needs patch -> patch review ___ Python tracker ___ ___ Python-b

[issue17906] JSON should accept lone surrogates

2013-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch submitted in issue11489. -- status: open -> closed ___ Python tracker ___ ___ Python

[issue17956] add ScheduledExecutor

2013-05-12 Thread Charles-François Natali
Charles-François Natali added the comment: I'd like to have your opinion regarding some implementation choices I made. 1) There's a new ScheduledFuture deriving from Future, which adds methods to check if the task is periodic, to get the delay until the next scheduled execution, support re-armin

[issue17914] add os.cpu_count()

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: Modified patch based on review by neologix -- Added file: http://bugs.python.org/file30236/issue17914-4.patch ___ Python tracker ___ _

[issue17396] modulefinder fails if module contains syntax error

2013-05-12 Thread Jan Gosmann
Jan Gosmann added the comment: Here is an updated patch, also containing a test. -- Added file: http://bugs.python.org/file30237/fix-handling-of-syntax-errors.diff ___ Python tracker ___

[issue17396] modulefinder fails if module contains syntax error

2013-05-12 Thread Jan Gosmann
Jan Gosmann added the comment: It's based on the default branch becoming 3.4. -- versions: +Python 3.4 -Python 2.7 ___ Python tracker ___

  1   2   >