[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke jgehr...@gmail.com: Added file: http://bugs.python.org/file37988/issue6634_py35.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6634 ___

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke jgehr...@gmail.com: Removed file: http://bugs.python.org/file37986/issue6634_py35.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6634 ___

[issue23380] Python 2.7.9 test_gdb fails on Fedora 21

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: I'm using Fedora 21 with gdb 7.8.2-38.fc21 on x86_64. With the development 2.7 branch, test_gdb pass here. How did you get Python 2.7.9? What is your gdb version? -- nosy: +haypo ___ Python tracker

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread Stefan Krah
Stefan Krah added the comment: Ah yes, it seems to originate from #3139. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23376 ___ ___

[issue5945] PyMapping_Check returns 1 for lists

2015-02-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5945 ___

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke jgehr...@gmail.com: Removed file: http://bugs.python.org/file19006/thread_sys_exit_test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6634 ___

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread Stefan Krah
Stefan Krah added the comment: Well, here's a patch with tests. Victor, I think you added the contiguity test in 9d49b744078c. Do you remember why? -- Added file: http://bugs.python.org/file37987/issue23376-2.diff ___ Python tracker

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: For Python 3.5, I have attached a patch that - adds relevant test cases to test_threading.py which probe the interpreter's stderr output for compliance with what the docs state. - makes sys.exit(msg) write msg to stderr, even if called

[issue23285] PEP 475 - EINTR handling

2015-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: PEP is now updated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23285 ___ ___ Python-bugs-list mailing list

[issue23351] socket.settimeout(5.0) does not have any effect

2015-02-02 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23351 ___ ___

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: Victor, I think you added the contiguity test in 9d49b744078c. Do you remember why? I don't understand the change like that. The call to PyBuffer_IsContiguous(view, 'C') was older than this changeset. -- ___

[issue23357] pyvenv help shows incorrect usage

2015-02-02 Thread Raúl Cumplido
Raúl Cumplido added the comment: From your question, yes I have completed the form. I've added a new patch just with the documentation change and changing the output from the help command as it was wrong. If it doesn't make sense do let me know. I've done it from 3.4 -- Added file:

[issue2292] Missing *-unpacking generalizations

2015-02-02 Thread Joshua Landau
Joshua Landau added the comment: I don't know the etiquette rules for the issue tracker, but I'd really appreciate having something to debug -- it's working for me, you see. -- ___ Python tracker rep...@bugs.python.org

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke jgehr...@gmail.com: Removed file: http://bugs.python.org/file37988/issue6634_py35.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6634 ___

[issue23342] run() - unified high-level interface for subprocess

2015-02-02 Thread Thomas Kluyver
Thomas Kluyver added the comment: Third version of the patch (subprocess_run3): - Simplifies the documentation of the trio (call, check_call, check_output) to describe them in terms of the equivalent run() call. - Remove a warning about using PIPE with check_output - I believe this was

[issue2292] Missing *-unpacking generalizations

2015-02-02 Thread Ethan Furman
Ethan Furman added the comment: Thanks, Terry! I'll do that next time -- after I make sure and re-compile. :/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke jgehr...@gmail.com: Removed file: http://bugs.python.org/file37983/issue6634_py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6634 ___

[issue23380] Python 2.7.9 test_gdb fails on Fedora 21

2015-02-02 Thread Vinson Lee
Vinson Lee added the comment: I downloaded Python 2.7.9 release tarball from https://www.python.org/downloads/release/python-279. $ gdb --version GNU gdb (GDB) Fedora 7.8.2-38.fc21 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

[issue19542] WeakValueDictionary bug in setdefault()pop()

2015-02-02 Thread Armin Rigo
Armin Rigo added the comment: Converted the test into an official test, which fails; and wrote the patch for CPython 3.trunk and for CPython 2.7. Please review and commit. -- keywords: +needs review -patch stage: needs patch - patch review ___

[issue2292] Missing *-unpacking generalizations

2015-02-02 Thread Ethan Furman
Ethan Furman added the comment: Argh -- I applied the patch, but didn't recompile. Doing that now... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue23369] integer overflow in _json.encode_basestring_ascii

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c730d30ffbc by Benjamin Peterson in branch '3.3': reduce memory usage of test (closes #23369) https://hg.python.org/cpython/rev/5c730d30ffbc -- status: open - closed ___ Python tracker

[issue23366] integer overflow in itertools.combinations

2015-02-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: lgtm -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23366 ___ ___ Python-bugs-list

[issue23365] integer overflow in itertools.combinations_with_replacement

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 356ed025dbae by Serhiy Storchaka in branch '3.3': Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests. https://hg.python.org/cpython/rev/356ed025dbae New changeset 98c720c3e061 by Serhiy Storchaka in branch '3.4': Issues #23363,

[issue23381] Python 2.7.9+ test_gdb regression on Ubuntu 10.04

2015-02-02 Thread Vinson Lee
New submission from Vinson Lee: Python 2.7.9+ test_gdb regressed on Ubuntu 10.04. 063d966b78f0c0b7cf4c937991bf883c563f574e is the first bad commit commit 063d966b78f0c0b7cf4c937991bf883c563f574e Author: Serhiy Storchaka storch...@gmail.com Date: Sat Jan 31 11:48:36 2015 +0200 Issue

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Martin Panter
Martin Panter added the comment: New patches look fine. BTW SystemExit.code is also documented at https://docs.python.org/dev/library/exceptions.html#SystemExit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6634

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Regarding the documentation patch: I like to start sentences with a capital letter. Perhaps change it to start “Calling :func:`exit` only terminates . . .”. Thanks for feedback. Have now used Invocation of to not repeat call* in the sentence,

[issue2292] Missing *-unpacking generalizations

2015-02-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upload a .txt file if there is really too much for a message. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___

[issue23380] Python 2.7.9 test_gdb fails on Fedora 21

2015-02-02 Thread Vinson Lee
Vinson Lee added the comment: Python 2.7.9+ test_gdb passes on Fedora 21 with the latest 2.7 branch. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23380

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke jgehr...@gmail.com: Added file: http://bugs.python.org/file37990/issue6634_py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6634 ___

[issue19542] WeakValueDictionary bug in setdefault()pop()

2015-02-02 Thread Armin Rigo
Changes by Armin Rigo ar...@users.sourceforge.net: Added file: http://bugs.python.org/file37993/fix-weakvaluedict-2.7.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19542 ___

[issue19542] WeakValueDictionary bug in setdefault()pop()

2015-02-02 Thread Armin Rigo
Changes by Armin Rigo ar...@users.sourceforge.net: -- keywords: +patch Added file: http://bugs.python.org/file37992/fix-weakvaluedict.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19542

[issue22896] Don't use PyObject_As*Buffer() functions

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1da9630e9b7f by Serhiy Storchaka in branch '3.4': Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() https://hg.python.org/cpython/rev/1da9630e9b7f New changeset 2e684ce772de by Serhiy Storchaka in branch 'default': Issue

[issue23099] BytesIO and StringIO values unavailable when closed

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset e62d54128bd3 by Serhiy Storchaka in branch '3.4': Issue #23099: Closing io.BytesIO with exported buffer is rejected now to https://hg.python.org/cpython/rev/e62d54128bd3 -- nosy: +python-dev ___ Python

[issue23363] integer overflow in itertools.permutations

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 356ed025dbae by Serhiy Storchaka in branch '3.3': Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests. https://hg.python.org/cpython/rev/356ed025dbae New changeset 98c720c3e061 by Serhiy Storchaka in branch '3.4': Issues #23363,

[issue23366] integer overflow in itertools.combinations

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 356ed025dbae by Serhiy Storchaka in branch '3.3': Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests. https://hg.python.org/cpython/rev/356ed025dbae New changeset 98c720c3e061 by Serhiy Storchaka in branch '3.4': Issues #23363,

[issue23364] integer overflow in itertools.product

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 356ed025dbae by Serhiy Storchaka in branch '3.3': Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests. https://hg.python.org/cpython/rev/356ed025dbae New changeset 98c720c3e061 by Serhiy Storchaka in branch '3.4': Issues #23363,

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: Do you have unit test with non contiguous buffers? If not, it would help to have such buffer in _testcapi. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23376

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread Stefan Krah
Stefan Krah added the comment: Yes, _testbuffer.ndarray can create any buffer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23376 ___ ___

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: Yes, _testbuffer.ndarray can create any buffer. Cool. So could you please add non regression tests to test_w_star() of test_getargs2? Other formats expect a contiguous buffer: 'y*', 's*', 'z*'. Formats which convert a buffer: 'y', 's#', 'z#. --

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread Stefan Krah
Stefan Krah added the comment: A unit test would not be so helpful. The potential problem is that third party extensions with broken getbufferprocs would suffer. But at some point we have to streamline PEP-3118 code, or it will remain inscrutable forever. Extension writers often copy code

[issue22896] Don't use PyObject_As*Buffer() functions

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In any case we need a hack in 3.4. Let open new issue for adding PyMemoryView_FromObjectEx() or like. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22896

[issue23357] pyvenv help shows incorrect usage

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: Added tests (hope is what you expect) and changed some bits on the test file to be pep8 comliant. Nooo, please don't change two things in same patch: open a new issue for your PEP 8 changes. -- ___ Python

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread Stefan Krah
New submission from Stefan Krah: The call to PyBuffer_IsContiguous() (see patch) is redundant: PyBUF_WRITABLE is a flag that can be added to any buffer request. The real request here is (PyBUF_SIMPLE|PyBUF_WRITABLE), which is equal to PyBUF_WRITABLE since PyBUF_SIMPLE==0. PyBUF_SIMPLE implies

[issue13322] buffered read() and write() does not raise BlockingIOError

2015-02-02 Thread Martin Panter
Martin Panter added the comment: Looking at test_io.BufferedReaderTest.test_read_non_blocking(), at Lib/test/test_io.py:1037, there are explicit tests for ‘peek(1) == b ’ and ‘read() is None’. The peek() test was added in revision 3049ac17e256, in 2009 (large merge of “io” implementation in

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think memoryview(bytearray)[::2] provides non contiguous buffers. But I'm not sure this is tested. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23376

[issue23378] argparse.add_argument action parameter should allow value extend

2015-02-02 Thread the mulhern
New submission from the mulhern: As well as the append action it would be convenient for there to be an extend action. This is kind of useful to allow something like: parser.add_argument(--foo, action=extend, nargs=+, type=str) given parser.parse_args(--foo f1 --foo f2 f3 f4.split()) to

[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation

2015-02-02 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10910 ___ ___ Python-bugs-list mailing

[issue23369] integer overflow in _json.encode_basestring_ascii

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: \u*((2**32)//6 + 1) is calculated at compile time. This requires much memory and can cause swapping. May be this was a cause of failing tests on some buildbots:

[issue22896] Don't use PyObject_As*Buffer() functions

2015-02-02 Thread Stefan Krah
Stefan Krah added the comment: Thanks. No, I don't think there's an official way to accomplish that, but let's create one. How about a new function that takes the buffer request flags: PyMemoryView_FromObjectEx(exporter, PyBUF_SIMPLE|PyBUF_WRITABLE) If we can spare a new format code,

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: A unit test would not be so helpful. The potential problem is that third party extensions with broken getbufferprocs would suffer. I don't understand the link between third party extensions and test_getargs2. test_getargs2 is a unit test for non-regression of

[issue23377] HTTPResponse may drop buffer holding next response

2015-02-02 Thread Martin Panter
New submission from Martin Panter: This is the same issue raised at https://bugs.python.org/issue4879#msg91597. Currently, every time a new response is to be received, HTTPConnection passes its raw socket object to HTTPResponse, which calls sock.makefile(rb) and creates a BufferedReader. The

[issue4879] Allow buffering for HTTPResponse

2015-02-02 Thread Martin Panter
Martin Panter added the comment: Opened Issue 23377 for the problem of dropping extra buffered data at the end of a response. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4879

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2015-02-02 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: Windows is the only Python-supported platform where utime did not work for directories, ages ago, right? If that is the case, I support Larry Hastings' approach of removing the entire sentence: Whether a directory can be given for path depends on whether

[issue23357] pyvenv help shows incorrect usage

2015-02-02 Thread Vinay Sajip
Vinay Sajip added the comment: I will add to the documentation, and leave this issue open till I've done that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23357 ___

[issue23357] pyvenv help shows incorrect usage

2015-02-02 Thread Raúl Cumplido
Raúl Cumplido added the comment: thanks for the comments. @haypo I'll add a new one for the pep8 fixes, sorry. @vinay.sajip I would like to help and try to do the change myself, if this is ok with you -- ___ Python tracker rep...@bugs.python.org

[issue23321] Crash in str.decode() with special error handler

2015-02-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23321 ___

[issue23321] Crash in str.decode() with special error handler

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23321 ___ ___ Python-bugs-list mailing list

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-02-02 Thread Mark Shannon
Mark Shannon added the comment: This is caused by https://hg.python.org/cpython/rev/7c5c678e4164/ which is a supposed fix for http://bugs.python.org/issue16795 which claims to make some changes to AST to make it more useful for static language analysis, seemingly by breaking all existing static

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-02-02 Thread Martin Panter
Martin Panter added the comment: You’re welcome to merge my test patch into yours if you want to. Or I could open a separate issue for it, I don’t mind. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23255

[issue23376] getargs.c: redundant C-contiguity check

2015-02-02 Thread Stefan Krah
Changes by Stefan Krah ste...@bytereef.org: -- nosy: skrah priority: normal severity: normal status: open title: getargs.c: redundant C-contiguity check type: performance versions: Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue23359] Speed-up set_lookkey()

2015-02-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Before doing more study on the other variants, I would like to get the second transformation done (avoiding the mask computation in the case where there is no wrap-around). Attaching a patch for just that step. -- Added file:

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2015-02-02 Thread Larry Hastings
Larry Hastings added the comment: I'm not sure we support 2.7 supports any versions of Windows earlier than XP. If so, we could drop the provision entirely. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20709

[issue16632] Enable DEP and ASLR

2015-02-02 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue, so the question of porting the change to Python 2.7 can be replied. -- nosy: +steve.dower resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-02-02 Thread Mark Shannon
Mark Shannon added the comment: It is now very hard to determine accurate locations for an expression such as (x+y).attr as the column offset of leftmost subexpression of the expression is not the same as the column offset of the location. -- ___

[issue2786] Names in traceback should have class names, if they're methods

2015-02-02 Thread Robert Collins
Robert Collins added the comment: I wonder if you could add this to the new code in http://bugs.python.org/issue17911 which I'm hoping to commit this week. -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org

[issue23336] Thread.LockType is misnamed

2015-02-02 Thread Josh Rosenberg
Josh Rosenberg added the comment: The thread and dummy_thread modules have a leading underscore in Py3.4, but the same naming issue is present there as well. -- nosy: +josh.r ___ Python tracker rep...@bugs.python.org

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2015-02-02 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke jgehr...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file37979/issue20709_py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20709

[issue23374] pydoc 3.x raises UnicodeEncodeError on sqlite3 package

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are few levels of this issue: 1) pydoc doesn't escape characters according to output encoding. It escapes characters uneencodable with sys.getfilesystemencoding(), but this encoding can differ from the encoding of sys.stdout or default encoding. 2)

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2015-02-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: People pointed out in #21295 that this made some things that were possible before impossible, so the lineno and col_offset changes of this have been reverted. -- ___ Python tracker rep...@bugs.python.org

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-02-02 Thread Mark Shannon
Mark Shannon added the comment: This also breaks the col_offset for subscripts like x[y] and, of course any statement with one of these expressions as its leftmost sub-expression. -- ___ Python tracker rep...@bugs.python.org

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d1c32ddc432 by Benjamin Peterson in branch '3.4': revert lineno and col_offset changes from #16795 (closes #21295) https://hg.python.org/cpython/rev/7d1c32ddc432 New changeset 8ab6b404248c by Benjamin Peterson in branch 'default': merge 3.4

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d1c32ddc432 by Benjamin Peterson in branch '3.4': revert lineno and col_offset changes from #16795 (closes #21295) https://hg.python.org/cpython/rev/7d1c32ddc432 -- ___ Python tracker

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2015-02-02 Thread Tim Golden
Tim Golden added the comment: Fine by me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20709 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2015-02-02 Thread Jan-Philip Gehrcke
Changes by Jan-Philip Gehrcke jgehr...@gmail.com: Added file: http://bugs.python.org/file37980/issue20709_tip.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20709 ___

[issue20709] os.utime(path_to_directory): wrong documentation for Windows.

2015-02-02 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: I have added patches for the documentation, where I removed the sentence in question and re-wrapped the paragraph. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20709

[issue23359] Speed-up set_lookkey()

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree, applying simple steps one by one would be more robust. How large the benefit, do you have any timing results? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23359

[issue23337] [IDLE/Windows] Run python with restricted rights

2015-02-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Run python with restricted rights - [IDLE/Windows] Run python with restricted rights ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23337

[issue23365] integer overflow in itertools.combinations_with_replacement

2015-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23365 ___ ___

[issue2786] Names in traceback should have class names, if they're methods

2015-02-02 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2786 ___ ___ Python-bugs-list

[issue23364] integer overflow in itertools.product

2015-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23364 ___ ___

[issue23099] BytesIO and StringIO values unavailable when closed

2015-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23099 ___

[issue23099] BytesIO and StringIO values unavailable when closed

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9d4c013b09a by Serhiy Storchaka in branch 'default': Issue #23099: Closing io.BytesIO with exported buffer is rejected now to https://hg.python.org/cpython/rev/b9d4c013b09a -- ___ Python tracker

[issue22896] Don't use PyObject_As*Buffer() functions

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Antoine and Stefan for your reviews. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22896

[issue13322] buffered read() and write() does not raise BlockingIOError

2015-02-02 Thread Martin Panter
Martin Panter added the comment: I’m adding nonblock-none.patch, which changes all the simple buffered read methods to return None when there is no non-blocking data available. I’d be interested to see if other people thought this was a sensible change. * Documented existing behaviour of C

[issue23366] integer overflow in itertools.combinations

2015-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23366 ___

[issue23363] integer overflow in itertools.permutations

2015-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23363 ___ ___

[issue23254] Document how to close the TCPServer listening socket

2015-02-02 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23254 ___ ___ Python-bugs-list

[issue23364] integer overflow in itertools.product

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And this means that this test (and other tests with the bigaddrspacetest decorator) is not executed on any of our buildbots. It skipped on 64-bit builders and 32-bit builders ran tests without the -M2G option. --

[issue23366] integer overflow in itertools.combinations

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And with this patch an OverflowError in tests should be replaced with (OverflowError, MemoryError). Updated patch also fixes other bugs in itertools tests. -- resolution: fixed - stage: resolved - patch review Added file:

[issue23359] Speed-up set_lookkey()

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b3bc51341aa by Raymond Hettinger in branch 'default': Issue 23359: Tighten inner search loop for sets (don't and-mask every entry lookup). https://hg.python.org/cpython/rev/0b3bc51341aa -- nosy: +python-dev

[issue23364] integer overflow in itertools.product

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, and actually the test is wrong. It fails on 32-bit with -M2G. Should be: -with self.assertRaises(OverflowError): -product([a]*(2**16), repeat=2**16) +with self.assertRaises((OverflowError, MemoryError)): +

[issue23375] test_py3kwarn fails on Windows

2015-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't reproduce the failure on Linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23375 ___ ___

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Jan-Philip Gehrcke
Jan-Philip Gehrcke added the comment: For Python 2.7, we will not change behavior, even if unexpected. Instead, the sys.exit-docs should be adjusted and - warn about the fact that nothing is written to stderr if sys.exit(msg) gets called from a non-primary thread, and - note

[issue2292] Missing *-unpacking generalizations

2015-02-02 Thread Ethan Furman
Ethan Furman added the comment: Tried running tests, tests that failed with patch: test_ast test_collections test_extcall test_grammar test_importlib test_parser test_syntax test_unpack_ex test_zipfile Running Ubuntu 13.04 (GNU/Linux 3.8.0-22-generic

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2015-02-02 Thread Martin Panter
Martin Panter added the comment: Regarding the documentation patch: I like to start sentences with a capital letter. Perhaps change it to start “Calling :func:`exit` only terminates . . .”. With the code change patch, it might be neater to use the SystemExit.code attribute rather than

[issue23352] Document suboffsets if needed in 2.7

2015-02-02 Thread Stefan Krah
Changes by Stefan Krah ste...@bytereef.org: -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23352 ___

[issue22896] Don't use PyObject_As*Buffer() functions

2015-02-02 Thread Stefan Krah
Stefan Krah added the comment: Nice patch. I've found one issue (see Rietveld). I'm not sure about 3.4 (the patch contains minor refactorings), but otherwise I'd say go ahead with it. -- ___ Python tracker rep...@bugs.python.org

[issue23375] test_py3kwarn fails on Windows

2015-02-02 Thread Steve Dower
Steve Dower added the comment: Looks like a test ordering issue. When test_imageop runs before test_py3kwarn, the warning has presumably already been shown once and so isn't triggered when the test is looking for it (compare build 3092 linked above with 3093, which passed). I haven't looked

[issue23353] generator bug with exception: tstate-exc_value is not cleared after an except block

2015-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2cd6621a9fbc by Victor Stinner in branch '3.4': Issue #23353, asyncio: Workaround CPython bug #23353 https://hg.python.org/cpython/rev/2cd6621a9fbc -- ___ Python tracker rep...@bugs.python.org

[issue23379] Incorrect links within PEPs

2015-02-02 Thread Jonathan Sharpe
New submission from Jonathan Sharpe: For example, the link to PEP-340 in PEP-343 points to https://www.python.org/dev/peps/pep-0343/pep-0340.html rather than https://www.python.org/dev/peps/pep-0340/ and the link to PEP-288 from PEP-340 points to

  1   2   >