[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2012-07-08 Thread do1
New submission from do1 : os.chown() can not change uid/gid to valid but high number. # chown 4294967294.4294967294 a # ls -l a -rw-r--r-- 1 4294967294 4294967294 0 Jul 9 05:22 a # python Python 2.7.3 (default, Jun 24 2012, 06:19:44) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type "help

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2012-07-08 Thread do1
do1 added the comment: I can add that system is x86_32. Same code in x86_64 result in no error even on older Python version 2.6.6 -- ___ Python tracker ___

[issue15300] test directory doubly-nested running tests with -j/--multiprocess

2012-07-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching a small refactoring patch to eliminate some cut-and-paste, prior to fixing this issue. -- keywords: +patch Added file: http://bugs.python.org/file26322/issue-15300-1.patch ___ Python tracker

[issue15262] Idle does not show traceback in other threads

2012-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks Roger. So this should be fixed in the upcoming 2.7.4 and probably 3.2.4. -- ___ Python tracker ___ _

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset eea379307efa by Terry Jan Reedy in branch '3.2': Issue 12510: Delete actual first param name for all methods; revise tests. http://hg.python.org/cpython/rev/eea379307efa New changeset 464c6a50b0ce by Terry Jan Reedy in branch 'default': Merge with

[issue12510] IDLE: calltips mishandle raw strings and other examples

2012-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the 'positive lookbehind assertion' for anchoring the match after '('. That is what I was missing. '[^,]' is too broad as, in particular, it matches the ')' in 'a(self)'. We don't want the ')' removed. The tests passed with a faulty re because t

[issue1757057] Unexpected "maximum recursion depth exceeded" in IDLE shell with objects that cannot be pickled

2012-07-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11176] give more meaningful argument names in argparse documentation

2012-07-08 Thread Éric Araujo
Éric Araujo added the comment: Yep, this is still open. Thanks for the patch, I did a review (if you did not get a mail, follow the link in the list of files). -- assignee: eric.araujo -> nosy: +ezio.melotti, sandro.tosi ___ Python tracker

[issue15125] argparse: positional arguments containing - in name not handled well

2012-07-08 Thread Éric Araujo
Éric Araujo added the comment: Isn’t the obvious workaround to pass a dest argument which is a valid identifier? add_argument('spam-eggs', dest='spam_eggs') Maybe argparse in 3.4 could do this transformation automatically (see how namedtuple converts anything to valid identifiers).

[issue15270] "Economy of Expression" section outdated

2012-07-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15295] Document PEP 420 namespace packages

2012-07-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, pitrou stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15300] test directory doubly-nested running tests with -j/--multiprocess

2012-07-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: And here is the second part. Combining this with the first patch provides a fix. -- Added file: http://bugs.python.org/file26323/issue-15300-2.patch ___ Python tracker _

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch (to my production Idle, with name fix) prevents crashing and raises an error instead when an object *can* be pickled, so I will apply before 3.3 if no problems appear and we cannot do better. But written objects are still pickled, so sys.stdout.writ

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2012-07-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: test_grammar should be that file, though, people often forget to update it. -- nosy: +benjamin.peterson ___ Python tracker ___ _

[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-08 Thread Chris Jerdonek
New submission from Chris Jerdonek : I think it would be an improvement to switch from using getopt to argparse in test.regrtest. The code would be easier to maintain, it would give us more powerful options going forward, and it would improve the usability of the test command (e.g. nicer comm

[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: It is also in the spirit of dogfooding. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue15300] test directory doubly-nested running tests with -j/--multiprocess

2012-07-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is a single combined patch. I gather this is preferred. -- Added file: http://bugs.python.org/file26324/issue-15300-combined.patch ___ Python tracker ___

[issue15125] argparse: positional arguments containing - in name not handled well

2012-07-08 Thread Nicu Stiurca
Nicu Stiurca added the comment: Eric: I agree, that would be the obvious workaround. However, it turns that the way dest is set differs for optional and positional arguments. I alluded to this in my earlier message http://bugs.python.org/issue15125#msg163456 Specifically, it turns out that wh

[issue11176] give more meaningful argument names in argparse documentation

2012-07-08 Thread David Lam
David Lam added the comment: haha wow, I was working on this bug too! maybe we can work on the final patch together I got through about 2/3's of the docs, so I thought it might help to upload what I got so far. I basically just made stuff up so I'm totally winning to change anything (or ev

<    1   2