[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

[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

[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 : Added file: http://bugs.python.org/file30239/issue13461-3x.patch ___ Python tracker ___ ___ Python-bugs-list mai

[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

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

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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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 Benjamin Peterson
Benjamin Peterson added the comment: That looks reasonable to me. -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-l

[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

[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

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

[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

[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

[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

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

[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

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

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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

[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

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

<    1   2