[issue17965] argparse does not dest.replace('-', '_') for positionals

2013-05-12 Thread paul j3
Changes by paul j3 : -- title: argparse does not dest.replace('-', '_') for postionals -> argparse does not dest.replace('-', '_') for positionals ___ Python tracker ___ _

[issue14191] argparse doesn't allow optionals within positionals

2013-05-12 Thread paul j3
Changes by paul j3 : Removed file: http://bugs.python.org/file29880/mixed.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue17966] Lack of consistency in PEP 8 -- Style Guide for Python Code

2013-05-12 Thread Georg Brandl
Georg Brandl added the comment: Interesting observation :) However, the alignment in the PEP is in prose, not code. -- assignee: docs@python -> nosy: +georg.brandl ___ 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: Sorry, this was not clear to me. 3.2 users will have to live with the bug. -- ___ Python tracker ___

[issue17962] Broken OpenSSL version in Windows builds

2013-05-12 Thread Georg Brandl
Georg Brandl added the comment: I could, but the checked-in 1.0.1d is different from the tarball in some respects, so it's better for Martin to do this. -- assignee: -> loewis ___ Python tracker _

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2013-05-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue17962] Broken OpenSSL version in Windows builds

2013-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, someone with SVN write access (Georg?) will have to do it. -- ___ Python tracker ___ ___ Python

[issue17914] add os.cpu_count()

2013-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > * add a os.cpu_count() which returns the raw value (may be zero or > negative if the OS returns a dummy value) and raise an OSError on > error > * os.cpu_count() is not available on all platforms > * shutil.cpu_count() is the high level API using 1 as a fall

[issue17914] add os.cpu_count()

2013-05-12 Thread Charles-François Natali
Charles-François Natali added the comment: > Here is a new patch (cpu_count.patch) with a different approach: > > * add a os.cpu_count() which returns the raw value (may be zero or negative > if the OS returns a dummy value) and raise an OSError on error > * os.cpu_count() is not available on

[issue17967] urllib2.open failed to access a url when a perent directory of the url is permission denied

2013-05-12 Thread zhaoqifa
Changes by zhaoqifa : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17967] urllib2.open failed to access a url when a perent directory of the url is permission denied

2013-05-12 Thread zhaoqifa
New submission from zhaoqifa: urllib2.open failed to access a url when a perent directory of the url is permission denied. I had a file in a ftp, the address is like ftp://host/home/work/123.txt which can be access by wget. When I urllib2.open to access the file, it always tell me that: urllib

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-05-12 Thread Todd Rovito
Todd Rovito added the comment: Roger, If you and Terry tested I would apply now so it makes it into 2.7.5. Why not? Right now the debugger in Windows doesn't highlight and I am sure that has to drive people crazy. But if you feel it needs more testing maybe you should let it bake some m

[issue17547] "checking whether gcc supports ParseTuple __format__... " erroneously returns yes with gcc 4.8

2013-05-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: I've now scrapped that test completely for 3.4. 6eab274d3e34 -- ___ Python tracker ___ ___ Python

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

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: Accepting awkward implementation details when their rationale no longer applies doesn't make sense to me, no. The functional API originally used integers for good reasons. Over the course of the enum discussions, those reasons evaporated, but this wasn't noticed u

[issue17966] Lack of consistency in PEP 8 -- Style Guide for Python Code

2013-05-12 Thread Paul Jurczak
New submission from Paul Jurczak: This may be too subjective, but here it goes: PEP 8 discourages vertical alignment: "More than one space around an assignment (or other) operator to align it with another", but contrary to this rule, vertical alignment is used many times in the same paragraph,

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-05-12 Thread Roger Serwy
Roger Serwy added the comment: I'm waiting until after the next wave of maitenance releases before I apply this patch. If anyone feels strongly that it should be applied now, let me know. I applied the patch to the latest 2.7.4 64-bit release version of Python and it worked. -- _

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

2013-05-12 Thread Roger Serwy
Roger Serwy added the comment: Georg, I need to clarify what I meant in msg188301. Issue9290 was applied to 3.2 which introduced the bug addressed in issue17585, whose fix then introduced issue17838. IDLE on the 3.2 branch doesn't handle exit() or quit() correctly. It needs both #17585 and #1

[issue9338] argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

2013-05-12 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/ma

[issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar

2013-05-12 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue17965] argparse does not dest.replace('-', '_') for postionals

2013-05-12 Thread paul j3
New submission from paul j3: "16.4.3.11. dest For optional argument actions,... Any internal - characters will be converted to _ characters to make sure the string is a valid attribute name." In _get_optional_kwargs(), dest = dest.replace('-', '_'); but there is nothing like this in _get_posit

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

2013-05-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Everying is an instance of object. If its class does not override .__format__, then it seems that it should act the same as a direct object instance. If this a the current plan (or patch already committed, I think I would stay with that. -- __

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

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: On 05/12/2013 06:57 PM, Barry A. Warsaw wrote: > > Do you really think the enum discussion on python-dev was too short and could > use another few thousand messages? ;) No! > Or IOW, hasn't this already been decided by virtue of PEP acceptance? Indeed it has.

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

2013-05-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 12, 2013, at 8:35 PM, Ethan Furman wrote: > Ethan Furman added the comment: > > The class syntax (and default Enum) no longer have preferential treatment for > integers (even __int__ is gone); so it is completely up to us as what should > happen for t

[issue17941] namedtuple should support fully qualified name for more portable pickling

2013-05-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Marking this a low priority. I want to see how it pans out for Enums before adding a new parameter to the namedtuple API. Also, I would like to look at the test cases for Enum so I can see how you're writing tests that would fail without this parameter.

[issue17960] Clarify the required behaviour of locals()

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

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

2013-05-12 Thread Ethan Furman
Ethan Furman added the comment: The class syntax (and default Enum) no longer have preferential treatment for integers (even __int__ is gone); so it is completely up to us as what should happen for the functional syntax. -- ___ Python tracker

[issue17940] extra code in argparse.py

2013-05-12 Thread paul j3
paul j3 added the comment: I was wondering about that block of code earlier. It would be a good idea to look at what func() does, just to make sure there aren't any side effects - e.g. set maximum line length, required indention, etc. -- nosy: +paul.j3

[issue17656] Python 2.7.4 breaks ZipFile extraction of zip files with unicode member paths

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

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: OK, I mainly wanted to make sure this alternative was at least considered, as I didn't see it come up during the PEP discussions. -- dependencies: -Code, test, and doc review for PEP-0435 Enum resolution: -> rejected stage: needs patch -> committed/reje

[issue17927] Argument copied into cell still referenced by frame

2013-05-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think with the way I rewrote it, it would be okay. -- ___ Python tracker ___ ___ Python-bugs-li

[issue17964] os.sysconf(): return type of the C function sysconf() is long, not int

2013-05-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: That looks reasonable to me. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-l

[issue17914] add os.cpu_count()

2013-05-12 Thread STINNER Victor
STINNER Victor added the comment: The return type of the C function sysconf() is long, but Python uses int: I opened the issue #17964 to track this bug. (os.cpu_count() uses sysconf()). -- ___ Python tracker _

[issue17964] os.sysconf(): return type of the C function sysconf() is long, not int

2013-05-12 Thread STINNER Victor
New submission from STINNER Victor: According to POSIX and my manual page on Linux, sysconf() return type is long (and not int). http://pubs.opengroup.org/onlinepubs/009695399/functions/sysconf.html It may not mater in practice because most sysconf() results are smaller than 1000, and I failed

[issue17962] Broken OpenSSL version in Windows builds

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: I am not sure how http://www.openssl.org/source/openssl-1.0.1e.tar.gz can be provided to python svn. Doesn't that require svn credentials to check-out/add/check-in? -- ___ Python tracker

[issue17914] add os.cpu_count()

2013-05-12 Thread STINNER Victor
STINNER Victor added the comment: Here is a new patch (cpu_count.patch) with a different approach: * add a os.cpu_count() which returns the raw value (may be zero or negative if the OS returns a dummy value) and raise an OSError on error * os.cpu_count() is not available on all platforms * s

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Guido van Rossum
Guido van Rossum added the comment: I'm with Antoine. Trying to prevent accidental redefinition behavior like Nick proposes feels like un-Pythonic coddling to me, and I expect we'd be closing off some occasionally useful patterns. Please leave well enough alone. -- _

[issue17927] Argument copied into cell still referenced by frame

2013-05-12 Thread Guido van Rossum
Guido van Rossum added the comment: Benjamin, what do you think of backporting this? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue17962] Broken OpenSSL version in Windows builds

2013-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently it lacks the required SVN addition: The system cannot find the file specified. svn: E17: URL 'http://svn.python.org/projects/external/openssl-1.0.1e' doesn't exist -- status: closed -> open ___ Python

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

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: That gives the unqualified names, and I don't understand your other objection. The class syntax doesn't support implicit values at all. -- ___ Python tracker

[issue12634] Random Remarks in class documentation

2013-05-12 Thread Yogesh Chaudhari
Changes by Yogesh Chaudhari : -- hgrepos: -188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17959] Alternate approach to aliasing for PEP 435

2013-05-12 Thread Nick Coghlan
Nick Coghlan added the comment: The difference is the use case: dicts are a general purpose data store, enums are typically for defining mutually exclusive named values, with aliasing as a concession to practical reality. -- ___ Python tracker

[issue17927] Argument copied into cell still referenced by frame

2013-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6223bab5657 by Benjamin Peterson in branch 'default': when an argument is a cell, set the local copy to NULL (see #17927) http://hg.python.org/cpython/rev/f6223bab5657 -- ___ Python tracker

[issue17927] Argument copied into cell still referenced by frame

2013-05-12 Thread Martin Morrison
Martin Morrison added the comment: The latest diff (cellfree4.diff) applies correctly to 3.3 (one hunk fails, but it's just the one where you've removed a blank line). The tests also pass successfully with the diff applied. -- ___ 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: >It's this case that is currently an error, but it need not be: format(object(), '1') >Traceback (most recent call last): > File "", line 1, in >TypeError: non-empty format string passed to object.__format__ I believe that should continue to remain an e

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

2013-05-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 12, 2013, at 10:57 AM, Nick Coghlan wrote: >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 definiti

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

2013-05-12 Thread STINNER Victor
STINNER Victor added the comment: Version 2 of my patch: Mark> - I would much prefer PyLong_AsIntMax_t not to use nb_int; Mark> it should work only for instances of 'int' (just as Mark> PyLong_AsSsize_t and PyLong_AsSize_t currently do)." I copied code from PyLong_AsLongLong(), but doc from PyL

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

2013-05-12 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: @terry and @paul: I have 2 argparse related patches, sitting idle for quiet sometime now. Can you suggest any more names who can take this forward? (I could not find anyone else related to argparse in http://docs.python.org/devguide/experts.html) --

[issue17940] extra code in argparse.py

2013-05-12 Thread Yogesh Chaudhari
Changes by Yogesh Chaudhari : -- hgrepos: -190 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2013-05-12 Thread paul j3
paul j3 added the comment: I'm following a dozen argparse issues with patches. I haven't seen much posting by argparse experts (like bethard, david.murry) since last December. -- ___ Python tracker __

[issue17915] Encoding error with sax and codecs

2013-05-12 Thread Simon Conseil
Simon Conseil added the comment: thanks everybody ! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2013-05-12 Thread Yogesh Chaudhari
Changes by Yogesh Chaudhari : Added file: http://bugs.python.org/file30239/issue13461-3x.patch ___ Python tracker ___ ___ Python-bugs-list mai

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

2013-05-12 Thread Eric V. Smith
Eric V. Smith added the comment: But int has its own __format__ method, so this does not apply. Per the title of this issue, this only refers to object.__format__. For example: This works now, and will continue working: >>> format(2, '1') '2' This is currently an error, and will remain an err

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2013-05-12 Thread Yogesh Chaudhari
Changes by Yogesh Chaudhari : -- hgrepos: -191 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: This patch should work for 2.7 branch -- hgrepos: +191 keywords: +patch nosy: +Yogesh.Chaudhari Added file: http://bugs.python.org/file30238/issue13461-27.patch ___ 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 ___

[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 ___

[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 ___ _

[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

[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

[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

[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
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

[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 ___

[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 ___ __

[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

[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

[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

[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

[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

[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 ___ ___

[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

[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

[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

[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

[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 ___

[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

[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 Stefan Drees
Changes by Stefan Drees : -- nosy: +dilettant ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[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

[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

[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

[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.

[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-

[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

[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

[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

[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

[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

[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 ___ _

[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 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

[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 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 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 Nick Coghlan
Changes by Nick Coghlan : -- dependencies: +namedtuple should support fully qualified name for more portable pickling ___ Python tracker ___

[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
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 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

[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

  1   2   >