[issue9253] argparse: optional subparsers

2011-09-24 Thread Benjamin West
Benjamin West bew...@gmail.com added the comment: I spent some time looking at this, as I was interested in using this pattern to simulate what git and hg do. I considered a few modifications and then found this bug. I think the default keyword passed to _SubParsersAction.__init__ makes sense.

[issue12973] int_pow() implementation is incorrect

2011-09-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b378864d8ff3 by Mark Dickinson in branch '3.2': Issue #12973: Fix itertools bug caused by signed integer overflow. Thanks Stefan Krah. http://hg.python.org/cpython/rev/b378864d8ff3 New changeset 18eec56bcf29 by

[issue12973] int_pow() implementation is incorrect

2011-09-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5a1cb8506cea by Mark Dickinson in branch '2.7': Backport issue #12973 itertools fix from 3.x. http://hg.python.org/cpython/rev/5a1cb8506cea -- ___ Python tracker

[issue12973] int_pow() implementation is incorrect

2011-09-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Okay, all fixed here. Let's add any further signed overflow issues to the issue #1621 discussion. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13012] Allow keyword argument in str.splitlines()

2011-09-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0b2660384d4e by Mark Dickinson in branch 'default': Issue #13012: Allow 'keepends' to be passed as a keyword argument in str.splitlines, bytes.splitlines and bytearray.splitlines.

[issue13012] Allow keyword argument in str.splitlines()

2011-09-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the reviews. Applied the first patch, plus Misc/NEWS entry, and minus the change to Lib/collections/__init__.py; I think that change belongs more with the second patch. -- ___ Python

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Resetting versions. -- versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1621 ___

[issue13008] syntax error when pasting valid snippet into console without empty string after the function def

2011-09-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Closing as per python-dev discussion. -- nosy: +georg.brandl status: languishing - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13008

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Clang has an -ftrapv option that seems to be less buggy and more complete than gcc's. Compiling and running the test suite with that option enabled looks like a good way to catch a lot of these signed overflows. --

[issue13013] _ctypes.c: refleak

2011-09-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I vote for plugging the refleak and keeping the function non-static. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13013

[issue13019] bytearrayobject.c: refleak

2011-09-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Both hunks look reasonable. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13019 ___

[issue13015] _collectionsmodule.c: refleak

2011-09-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Looks correct but awkwardly indented. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13015 ___

[issue13040] call to tkinter.messagebox.showinfo hangs the script

2011-09-24 Thread Richard86
New submission from Richard86 gbo...@gmail.com: Call to tkinter.messagebox.showinfo(Test, test) makes the script hang in Windows 7 with Python 3.2.2 with Timer(2, methodname, ()).start(). -- components: Tkinter, Windows files: test1.py messages: 144496 nosy: Richard86 priority: normal

[issue13040] call to tkinter.messagebox.showinfo hangs the script after timer

2011-09-24 Thread Richard86
Changes by Richard86 gbo...@gmail.com: -- title: call to tkinter.messagebox.showinfo hangs the script - call to tkinter.messagebox.showinfo hangs the script after timer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13040

[issue13012] Allow keyword argument in str.splitlines()

2011-09-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ezio's patch looks fine to me, though as Meador points out in the Rietveld review, there are a couple of omissions that could be fixed. Personally, I'm not so convinced of the value of upgrading all the existing uses of splitlines to use

[issue13012] Allow keyword argument in str.splitlines()

2011-09-24 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Out of curiosity, what is typically the convention on that? In theory every issue should be about a single problem and therefore have a single patch to fix it. Sometimes a secondary problem that is not strictly related to the first one

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Do we consider these overflows as bugs in Python, or do we declare that we expect compilers to do the right thing for the bug fix releases (i.e. care only about the default branch). I'd personally vote for the latter - i.e. don't apply any

[issue13023] argparse should allow displaying argument default values in addition to setting a formatter class

2011-09-24 Thread Denilson Figueiredo de Sá
Denilson Figueiredo de Sá denilso...@gmail.com added the comment: adding a formatter instance seems overkill for the usual case of wanting to preserve formatting of the epilog. Related bug (look at it before (re)designing the API): http://bugs.python.org/issue12806 --

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: don't apply any of the resulting changes to the maintenance releases, and target the issue only for 3.3. That sounds fine to me, though if we find more instances of signed overflow that actually trigger test failures in the maintenance

[issue2193] Cookie Colon Name Bug

2011-09-24 Thread Luke Plant
Luke Plant l.plant...@cantab.net added the comment: David, Thanks again for the time on this. Can I push to get the patches included, or is there work that still needs to be done on the patches now that the idea is accepted in principle? I did experiment with a few approaches to implement,

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 698fa089ce70 by Mark Dickinson in branch 'default': Issue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, tuple.__hash__, frozenset.__hash__ and set indexing operations.

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 95ee0df1e746 by Charles-François Natali in branch 'default': Issue #12981: rewrite multiprocessing_{sendfd,recvfd} in Python. http://hg.python.org/cpython/rev/95ee0df1e746 --

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5e456e1a9e8c by Mark Dickinson in branch 'default': Issue #1621: Fix undefined behaviour from signed overflow in get_integer (stringlib/formatter.h) http://hg.python.org/cpython/rev/5e456e1a9e8c --

[issue13040] call to tkinter.messagebox.showinfo hangs the script on timer on Windows

2011-09-24 Thread Richard86
Changes by Richard86 gbo...@gmail.com: -- title: call to tkinter.messagebox.showinfo hangs the script after timer - call to tkinter.messagebox.showinfo hangs the script on timer on Windows ___ Python tracker rep...@bugs.python.org

[issue13012] Allow keyword argument in str.splitlines()

2011-09-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Given that someone is willing to write a patch and someone else to review it, I am +1 on changing 0/1 to False/True anywhere appropriate in the stdlib. Ditto for using a new feature. The # True == keep line ends comment illustrates why the

[issue12353] argparse cannot handle empty arguments

2011-09-24 Thread Zbyszek Szmek
Changes by Zbyszek Szmek zbys...@in.waw.pl: -- nosy: +zbysz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12353 ___ ___ Python-bugs-list mailing

[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2011-09-24 Thread Zbyszek Szmek
Changes by Zbyszek Szmek zbys...@in.waw.pl: -- nosy: +zbysz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4256 ___ ___ Python-bugs-list mailing

[issue13041] argparse: terminal width is not detected properly

2011-09-24 Thread Zbyszek Szmek
New submission from Zbyszek Szmek zbys...@in.waw.pl: COLUMNS is a shell variable (updated whenever the window size changes), that usually isn't exported to programs. Therefore checking for COLUMNS in sys.environ will not work in the majority of cases. The proper check is to use the TIOCGWINSZ

[issue13042] argparse: terminal width is not detected properly

2011-09-24 Thread Zbyszek Szmek
New submission from Zbyszek Szmek zbys...@in.waw.pl: COLUMNS is a shell variable (updated whenever the window size changes), that usually isn't exported to programs. Therefore checking for COLUMNS in sys.environ will not work in the majority of cases. The proper check is to use the TIOCGWINSZ

[issue13041] argparse: terminal width is not detected properly

2011-09-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13041 ___ ___ Python-bugs-list

[issue13042] argparse: terminal width is not detected properly

2011-09-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - argparse: terminal width is not detected properly ___ Python tracker rep...@bugs.python.org

[issue2193] Cookie Colon Name Bug

2011-09-24 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm flat out right now on other projects. But if no one else gets around to doing a final review and commit I should be able to get to it by the end of October. If I don't, please ping me by posting here again. --

[issue12806] argparse: Hybrid help text formatter

2011-09-24 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: This is a great idea! I think that this formatter is much more useful than the default one. I was pretty surprised the first time I added a multi-paragraph epilog to a program and it got all jumbled into a single line. I would vote to make

[issue13042] argparse: terminal width is not detected properly

2011-09-24 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Hm, I have somehow submitted the same tex ttwwiiccee. Sorry about that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13042 ___

[issue9253] argparse: optional subparsers

2011-09-24 Thread Benjamin West
Benjamin West bew...@gmail.com added the comment: https://github.com/bewest/argparse/tree/bewest https://bitbucket.org/bewest/argparse/changesets I think this does the right thing. -- hgrepos: +69 ___ Python tracker rep...@bugs.python.org

[issue12806] argparse: Hybrid help text formatter

2011-09-24 Thread Graylin Kim
Graylin Kim graylin@gmail.com added the comment: I fully support taking blank line based line-wrapping approach and agree with Zbyszek's suggested indentation approach as well. I am not sure why they didn't occur to me at the time but they are certainly a more effective and widely adopted

[issue13033] Add shutil.chowntree

2011-09-24 Thread Tigger Level-5
Tigger Level-5 a.wild.tig...@gmail.com added the comment: First time posting, how about something like this. Just added a os.walk method to do the chown recursively. -- nosy: +Tigger.Level-5 Added file: http://bugs.python.org/file23240/temp.py ___

[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-09-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sorry, it's been sitting at the bottom of my starred list for months, the prospect of reloading context always making it a little less attractive than something else. I understand that very well :) Error was caused by an actual change in

[issue12944] Accept arbitrary files for packaging's upload command

2011-09-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I'm not sure why it's run upload instead of just upload pysetup has actions and commands. Actions do stuff on the Python installation: “pysetup metadata foobar” prints metadata, “pysetup remove foobar” uninstalls, “pysetup install foobar”

[issue13041] argparse: terminal width is not detected properly

2011-09-24 Thread Denilson Figueiredo de Sá
Changes by Denilson Figueiredo de Sá denilso...@gmail.com: -- nosy: +denilsonsa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13041 ___ ___

[issue12961] itertools: unlabelled balls in boxes

2011-09-24 Thread Phillip Feldman
Phillip Feldman phillip.m.feld...@gmail.com added the comment: Raymond- I think that you may have overestimated the complexity of the problem. In about 5 hours, I coded, debugged, and documented a set of generator functions to solve the general formulation (including box limits) for three

[issue12806] argparse: Hybrid help text formatter

2011-09-24 Thread Denilson Figueiredo de Sá
Denilson Figueiredo de Sá denilso...@gmail.com added the comment: Good catch, I had intended on '-' being a valid list item character. It clearly needs to be escaped. Either escaped, or it can be the first character in the set. but I happen to like list() and dict() instead of [] and {} for