[issue12973] int_pow() implementation is incorrect

2011-09-24 Thread Roundup Robot
Roundup Robot 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 Mark Dickinson in branch 'default':

[issue12973] int_pow() implementation is incorrect

2011-09-24 Thread Roundup Robot
Roundup Robot 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 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

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

2011-09-24 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/0b2660384d4e -- nosy: +pyt

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

2011-09-24 Thread Mark Dickinson
Mark Dickinson 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 tracker

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Mark Dickinson
Mark Dickinson added the comment: Resetting versions. -- versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Pyth

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

2011-09-24 Thread Georg Brandl
Georg Brandl added the comment: Closing as per python-dev discussion. -- nosy: +georg.brandl status: languishing -> closed ___ Python tracker ___ ___

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Mark Dickinson
Mark Dickinson 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 added the comment: I vote for plugging the refleak and keeping the function non-static. -- nosy: +georg.brandl ___ Python tracker ___ __

[issue13019] bytearrayobject.c: refleak

2011-09-24 Thread Georg Brandl
Georg Brandl added the comment: Both hunks look reasonable. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailin

[issue13015] _collectionsmodule.c: refleak

2011-09-24 Thread Georg Brandl
Georg Brandl added the comment: Looks correct but awkwardly indented. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-l

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

2011-09-24 Thread Richard86
New submission from Richard86 : 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 severity: nor

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

2011-09-24 Thread Richard86
Changes by Richard86 : -- title: call to tkinter.messagebox.showinfo hangs the script -> call to tkinter.messagebox.showinfo hangs the script after timer ___ Python tracker ___

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

2011-09-24 Thread Mark Dickinson
Mark Dickinson 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 'keepends'; I just w

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

2011-09-24 Thread Ezio Melotti
Ezio Melotti 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 arises, for example

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Martin v . Löwis
Martin v. Löwis 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 of the resulting

[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á 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 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 branches (like the

[issue2193] Cookie Colon Name Bug

2011-09-24 Thread Luke Plant
Luke Plant 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, and it seemed like the

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/698fa089ce70 -- nosy

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

2011-09-24 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue1621] Do not assume signed integer overflow behavior

2011-09-24 Thread Roundup Robot
Roundup Robot 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 : -- 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

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

2011-09-24 Thread Terry J. Reedy
Terry J. Reedy 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 original patch is

[issue12353] argparse cannot handle empty arguments

2011-09-24 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : -- nosy: +zbysz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2011-09-24 Thread Zbyszek Szmek
Changes by Zbyszek Szmek : -- nosy: +zbysz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue13041] argparse: terminal width is not detected properly

2011-09-24 Thread Zbyszek Szmek
New submission from Zbyszek Szmek : 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 ioctl on stdout.

[issue13042] argparse: terminal width is not detected properly

2011-09-24 Thread Zbyszek Szmek
New submission from Zbyszek Szmek : 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 ioctl on stdout.

[issue13041] argparse: terminal width is not detected properly

2011-09-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13042] argparse: terminal width is not detected properly

2011-09-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> argparse: terminal width is not detected properly ___ Python tracker _

[issue2193] Cookie Colon Name Bug

2011-09-24 Thread R. David Murray
R. David Murray 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 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 this (or a variant,

[issue13042] argparse: terminal width is not detected properly

2011-09-24 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: Hm, I have somehow submitted the same tex ttwwiiccee. Sorry about that. -- ___ Python tracker ___ __

[issue9253] argparse: optional subparsers

2011-09-24 Thread Benjamin West
Benjamin West 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 __

[issue12806] argparse: Hybrid help text formatter

2011-09-24 Thread Graylin Kim
Graylin Kim 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 approaches to the str

[issue13033] Add shutil.chowntree

2011-09-24 Thread Tigger Level-5
Tigger Level-5 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 ___ Python tracker

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

2011-09-24 Thread Éric Araujo
Éric Araujo 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 behavior Ah, good,

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

2011-09-24 Thread Éric Araujo
Éric Araujo 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” fetches from PyPI

[issue13041] argparse: terminal width is not detected properly

2011-09-24 Thread Denilson Figueiredo de Sá
Changes by Denilson Figueiredo de Sá : -- nosy: +denilsonsa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue12961] itertools: unlabelled balls in boxes

2011-09-24 Thread Phillip Feldman
Phillip Feldman 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 occupancy problems: - unlabe

[issue12806] argparse: Hybrid help text formatter

2011-09-24 Thread Denilson Figueiredo de Sá
Denilson Figueiredo de Sá 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 > empty collectio