[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-11-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file27845/shutil_rmtree_tests-3.2_2.patch ___ Python tracker ___ ___ Python-b

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests simplified. Thanks Hynek for review and advices. -- Added file: http://bugs.python.org/file27844/shutil_rmtree_4.patch ___ Python tracker _

[issue16218] Python launcher does not support non ascii characters

2012-11-02 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16387] test_cmd_line_script failures

2012-11-02 Thread Stefan Krah
Changes by Stefan Krah : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> Python launcher does not support non ascii characters ___ Python tracker ___

[issue16385] evaluating dict with repeated keys gives no warnings/errors

2012-11-02 Thread Ramchandra Apte
Ramchandra Apte added the comment: You should be using json for configuration purposes anyway. This is low priority as only few programs use dictionaries with a gazillion keys. -- ___ Python tracker __

[issue16218] Python launcher does not support non ascii characters

2012-11-02 Thread Stefan Krah
Stefan Krah added the comment: Some of the buildbots are failing with the new test: == FAIL: test_non_utf8 (test.test_cmd_line_script.CmdLineTest) -- Traceback

[issue16385] evaluating dict with repeated keys gives no warnings/errors

2012-11-02 Thread Ramchandra Apte
Ramchandra Apte added the comment: Retract earlier statement. I didn't read the comment fully. -- title: evaluating dict with repeated keys gives no warnings -> evaluating dict with repeated keys gives no warnings/errors ___ Python tracker

[issue16385] evaluating dict with repeated keys gives no warnings

2012-11-02 Thread Ramchandra Apte
Ramchandra Apte added the comment: This is an unavoidable behaviour of the hash tables (dictionaries) I don't see much use cases of a warning. -- nosy: +ramchandra.apte title: evaluating dict with repeated keys gives no error/warnings -> evaluating dict with repeated keys gives no warni

[issue1207589] IDLE: Right Click Context Menu

2012-11-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: It it not a new library feature that anyone would use in other code. I have been meaning to raise this issue on pydev to see what others think. There are advantages to keeping the *human* interaction with IDLE consistent between releases. --

[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-02 Thread Guido van Rossum
Guido van Rossum added the comment: Well, you can fix that, right? Just add a new function with a better signature and use that for one of the two scenarios. (I think third scenario might be when realloc fails -- IIRC it doesn't guarantee that the original pointer is still valid either?) -

[issue16145] Abort in _csv module

2012-11-02 Thread Stefan Krah
Stefan Krah added the comment: Andrew and Serhiy, thanks for the reviews. Should be fixed now. -- assignee: -> skrah resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-02 Thread Christian Heimes
Christian Heimes added the comment: MemoryError can be raised under two different circumstances that should be handled differently. Either the program tries to allocate a rather large chunk of memory for e.g. a string with a couple of hundred KB and more. Or Python can't malloc() even small am

[issue16145] Abort in _csv module

2012-11-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b5f00ccf907 by Stefan Krah in branch '3.3': Issue #16145: Support legacy strings in the _csv module. http://hg.python.org/cpython/rev/0b5f00ccf907 -- nosy: +python-dev ___ Python tracker

[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-02 Thread Lukas Lueg
Lukas Lueg added the comment: I have to say this feels like spooky action at a distance. Wouldnt it be less intrusive - while achieving the same result - to make MemoryError uncatchable if the flag is set? -- nosy: +ebfe ___ Python tracker

[issue14794] slice.indices raises OverflowError

2012-11-02 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-02 Thread Guido van Rossum
Guido van Rossum added the comment: There used to be some places in the C code that raise MemoryError to indicate that some parameter indicating a desired result size is out of range, i.e. before even trying to allocate anything. I can't confirm any, but these should probably be replaced with ano

[issue16387] test_cmd_line_script failures

2012-11-02 Thread Stefan Krah
New submission from Stefan Krah: test_cmd_line_script is failing on multiple buildbots: == FAIL: test_non_utf8 (test.test_cmd_line_script.CmdLineTest) -- Trace

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2012-11-02 Thread Brett Cannon
Changes by Brett Cannon : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

2012-11-02 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Where it is now means raising a MemoryError in Python code will cause the fatal error. I don't know if that's a good idea. -- ___ Python tracker ___

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-11-02 Thread Stefan Krah
Stefan Krah added the comment: Ramchandra Apte wrote: > Almost nobody knows that when using tkinter, code in .Tk.py is executed. > (readprofile is not even documented!) > While in your example, it is quite easy to see that it will run .bashrc The point of the example is that it's "game over" an

[issue16386] imp.find_module does not specify registry key it searches on windows

2012-11-02 Thread Jan Duzinkiewicz
New submission from Jan Duzinkiewicz: quote from http://docs.python.org/3/library/imp.html#imp.find_module: "...on some systems some other places are looked in as well (on Windows, it looks in the registry which may point to a specific file)." I actually didn't know the registry key is listed

[issue16385] evaluating dict with repeated keys gives no error/warnings

2012-11-02 Thread Albert Ferras
New submission from Albert Ferras: I normally use dictionaries for configuration purposes in python, but there's a problem where I have a dictionary with many key<->values and one of the keys is repeated. For example: lives_in = { 'lion': ['Africa', 'America], 'parrot': ['Europe']

[issue1207589] IDLE: Right Click Context Menu

2012-11-02 Thread R. David Murray
R. David Murray added the comment: The reason for our "no new features" policy is that if a program works with version x.y, it should work for all x versions (modulo failing on an earlier version because of a bug...and conversely if it works on x.y, it should work on all later versions of x, w

[issue15148] shutil.which() docstring could be clearer

2012-11-02 Thread R. David Murray
R. David Murray added the comment: Doesn't look like it. -- stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue1207589] IDLE: Right Click Context Menu

2012-11-02 Thread Todd Rovito
Todd Rovito added the comment: Ned, I respectfully disagree that this is not a new feature. IDLE could always copy/cut/paste from the edit menu and it had a right click menu. All this patch does is add options to right click menu and call the same functions as the edit menu does. I could b

[issue14878] Improve documentation for generator.send method

2012-11-02 Thread Jan Duzinkiewicz
Jan Duzinkiewicz added the comment: The latest docs have a crossrefence at the end of the section: http://docs.python.org/3/reference/simple_stmts.html#grammar-token-yield_stmt I copied the reference to 2.7 docs -- keywords: +patch nosy: +dhgmgn Added file: http://bugs.python.org/file

[issue1207589] IDLE: Right Click Context Menu

2012-11-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: I thought it's desirable feature which cannot produce backward incompatibility problems. Can revert commits for 2.7-3.3 if needed. -- ___ Python tracker

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are backported tests for 3.2 (they are passed). -- Added file: http://bugs.python.org/file27841/shutil_rmtree_tests-3.2.patch ___ Python tracker

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. Added tests for onerror. -- Added file: http://bugs.python.org/file27840/shutil_rmtree_3.patch ___ Python tracker ___

[issue15962] Windows STDIN/STDOUT Redirection is actually FIXED

2012-11-02 Thread Jan Duzinkiewicz
Jan Duzinkiewicz added the comment: I've referenced the kb article in the docs. Please let me know if the fix is ok - maybe the whole registry change process should be included in the docs directly? -- keywords: +patch nosy: +dhgmgn Added file: http://bugs.python.org/file27839/15962.pa

[issue16374] ConfigParser: Passing a semicolon as a value

2012-11-02 Thread Łukasz Langa
Łukasz Langa added the comment: Well, the inline comment syntax was awkward to start with, that's why inline comments are now disabled by default since Python 3.2. For a more predictable situation with regard to comment handling, consider using the configparser 3.2+ backport for Python 2.6 and

[issue16304] re: Match Objects always have a boolean value of True

2012-11-02 Thread Jan Duzinkiewicz
Jan Duzinkiewicz added the comment: I agree this is unclear - If Match object always have a boolean value of True, it actually prevents me from using simple if statement - what's the point of "if True:" statement? - so the remark that matching functions do not always return match objects has s

[issue14794] slice.indices raises OverflowError

2012-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This should be an issue on 64-bit too. slice(0,1,None).indices(sys.maxsize+1) -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

2012-11-02 Thread Christian Theune
Christian Theune added the comment: I pondered PyErr_NoMemory as well. However, I noticed not all locations in Python use PyErr_NoMemory to raise a MemoryError, and I'm also afraid that external libraries will have the same problem. Can you explain why you consider PyErr_NoMemory to be the bet

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2012-11-02 Thread Fergus Noble
Fergus Noble added the comment: Digging up an old issue but I am also interested in seeing this enhancement. Specifically to represent GPS time which is (currently) 16 seconds ahead of UTC. -- nosy: +Fergus.Noble ___ Python tracker

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-11-02 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15490] Correct __sizeof__ support for StringIO

2012-11-02 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: -hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15104] Unclear language in __main__ description

2012-11-02 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: -hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15148] shutil.which() docstring could be clearer

2012-11-02 Thread Hynek Schlawack
Hynek Schlawack added the comment: Any reason why this is still open? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue15001] segmentation fault with del sys.module['__main__']

2012-11-02 Thread Hynek Schlawack
Hynek Schlawack added the comment: Fun fact, on 2.7 & 3.2 I get infinite loops @ 100% CPU. 3.3 & default crash. Unless someone yells, I'll polish this up and commit next week. -- stage: -> commit review versions: +Python 3.4 -Python 3.1 ___ Python t

[issue14794] slice.indices raises OverflowError

2012-11-02 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

<    1   2