[issue25270] codecs.escape_encode systemerror on empty byte string

2015-10-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 01.10.2015 04:35, Martin Panter wrote: > For the record, because I was curious: Function codecs.escape_encode() is not > documented, and barely tested. It was used for the documented “string_escape” > codec in Python 2, but this codec was removed for

[issue25270] codecs.escape_encode systemerror on empty byte string

2015-10-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 30.09.2015 15:11, Serhiy Storchaka wrote: > May be better to test a condition "size > 0" before calling > _PyBytes_Resize(), as in many other case where _PyBytes_Resize() is used. > > Or accept shared objects in _PyBytes_Resize() if new size is equal to

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Attached patch raises a ValueError if the current recursion depth is higher than the new "low-water mark". The low-water mark is the value computed by _Py_MakeEndRecCheck() in Py_LeaveRecursiveCall() to decide if we can reset the overflowed field of the

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2015-10-01 Thread Robin Roth
Robin Roth added the comment: This bug is still present and annoying. For me it appeared when running ismount on a nfs-mounted directory, when the user who runs python has no read permission inside the directory. Therefore the lstat on /mntdir/.. fails. Attached a patch that fixes this by

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 835085cc28cd by Victor Stinner in branch '3.5': Issue #25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom() https://hg.python.org/cpython/rev/835085cc28cd -- ___ Python tracker

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 202c827f86df by Victor Stinner in branch '2.7': Issue #25003: os.urandom() doesn't use getentropy() on Solaris because https://hg.python.org/cpython/rev/202c827f86df New changeset 83dc79eeaf7f by Victor Stinner in branch '3.4': Issue #25003:

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Ok, I pushed fixes for Python 2.7, 3.4, 3.5 and 3.6. Summary for Solaris: - Python 2.7, 3.4: read from /dev/urandom (use a private file descriptor) - Python 3.5, 3.6: use the getrandom() function on Solaris 11.3 and newer (no file descriptor), or fallback on

[issue25288] readline.py file in current directory caused unexpected code execution.

2015-10-01 Thread Xiang Zhang
Xiang Zhang added the comment: I can reproduce this action on Ubuntu. The forged readline.py in python's execution directory can steal the permission of python and do something dangerous. -- nosy: +xiang.zhang ___ Python tracker

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Oh, the default handler for errror handlers uses a loop to check for non-ASCII characters. It can be replaced with PyUnicode_IS_ASCII(str) which has a complexity O(1). Done in new patch. -- Added file:

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread STINNER Victor
New submission from STINNER Victor: The AMD64 Windows7 SP1 3.x buildbot randomly fails. Tests take a lot of time. I don't know if it's a slow hardware/VM, or if the system is very busy. By the way, regrtest is run with -j4 (run 4 tests in parallel). Example of errors:

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Serhiy wrote: > This message looks confusing to me. 2 > 1, isn't? > The dependency of min_limit from new_limit is not monotonic: (...) Ok, now I'm confused too :-) First of all, I propose to change the exception type to RecursionError because it's really

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Oh, there is a bug in utf8_encoder() (not in my patch!), newpos was not used after calling the error handler. It's now fixed in the new patch. -- Added file: http://bugs.python.org/file40646/utf8_encoder_errors-2.patch

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: > The dependency of min_limit from new_limit is not monotonic: (...) Right, _Py_MakeEndRecCheck() is not monotonic. Let me try to make it monotonic: def f1(x): return x * 3 // 4 def f2(x): return x - 50 f1() > f2() for x <= 196 f1() == f2() for x in 198..200

[issue25123] Logging Documentation - dictConfig disable_existing_loggers

2015-10-01 Thread Vinay Sajip
Vinay Sajip added the comment: This is mentioned in the documentation for dictConfig - see the bottom of the section at https://docs.python.org/2.7/library/logging.config.html#dictionary-schema-details -- resolution: -> not a bug status: open -> closed

[issue25256] Add sys.debug_build public variable to check if Python was compiled in debug mode

2015-10-01 Thread Berker Peksag
Berker Peksag added the comment: LGTM > Alternative: Add a new sys.implementation.debug_build flag. According to the sys.implementation documentation and PEP 421, we can only add a private attribute without writing a PEP. But I find sys.implementation._debug_build too long and ``from sys

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file40645/bench.py ___ Python tracker ___

[issue25277] test_eintr hangs on randomly on "AMD64 FreeBSD 9.x 3.x"

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10efb1797e7b by Victor Stinner in branch 'default': Issue #25277: Set a timeout of 10 minutes in test_eintr using faulthandler to https://hg.python.org/cpython/rev/10efb1797e7b -- nosy: +python-dev ___

[issue25185] Inconsistency between venv and site

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset d927c6cae05f by Vinay Sajip in branch '3.4': Closes #25185: Use UTF-8 encoding when reading pyvenv.cfg. https://hg.python.org/cpython/rev/d927c6cae05f New changeset eaf9220bdee3 by Vinay Sajip in branch '3.5': Closes #25185: merged fix from 3.4.

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Benchmark results. Sorry for the very long output. There are some (corner?) cases where the patched Python is a little bit slower. I consider that it's ok since it's *much* faster in the other cases. What do you think? Common platform: Timer info:

[issue23749] asyncio missing wrap_socket (starttls)

2015-10-01 Thread Mathieu Sornay
Changes by Mathieu Sornay : -- nosy: +msornay ___ Python tracker ___ ___ Python-bugs-list

[issue12238] Readline module loading in interactive mode

2015-10-01 Thread R. David Murray
R. David Murray added the comment: This issue was reported again in issue 25288. To summarize: the cwd should only be used for imports *after* the command prompt is displayed, and readline is imported *before* the prompt is displayed but currently is imported from the cwd. This should be

[issue25290] csv.reader: minor docstring typo

2015-10-01 Thread Johannes Niediek
New submission from Johannes Niediek: docstring ends with colon, should be fullstop. -- components: Library (Lib) files: csvreader_docstring.txt messages: 252030 nosy: wasserverein priority: normal severity: normal status: open title: csv.reader: minor docstring typo type: enhancement

[issue12238] Readline module loading in interactive mode

2015-10-01 Thread R. David Murray
Changes by R. David Murray : -- stage: -> needs patch versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread Jeremy Kloth
Jeremy Kloth added the comment: The system is a dedicated Quad CPU @2.66GHz with 8GB RAM and running the tests on an SSD. I doubt it is the hardware. Please note, it is the only 64-bit Windows buildbot AND the only multi-core Windows buildbot. So it catches lots of things that most others

[issue25288] readline.py file in current directory caused unexpected code execution.

2015-10-01 Thread R. David Murray
R. David Murray added the comment: Well, so much for my memory :(. The actual discussion was in issue 12238, where *my* conclusion was that this should be fixed (readline should be special cased), but the issue is still open. Patches welcome :) -- resolution: -> duplicate stage: ->

[issue25288] readline.py file in current directory caused unexpected code execution.

2015-10-01 Thread R. David Murray
R. David Murray added the comment: This is not a bug, this is the way python works. When running in interactive mode (only) the current directory is first on the path. Now, should this behavior be changed? I think we've discussed this before and decided not to change it (for backward

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-10-01 Thread R. David Murray
R. David Murray added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: By the way, I'm surprised how slow is this buildbot. On Linux, running the whole test suite (399 tests) takes less than 5 minutes with -j4 on my PC (Intel i7-2600 @ 3.40GHz with 12 GB of RAM). Is Python much slower on Windows? Or the buildbot CPU is *much*

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread Zachary Ware
Zachary Ware added the comment: I was curious, so I checked: C:\Users\Zachary\code\hg.python.org\3.5>python.bat -m test.pystone Running Debug|x64 interpreter... Pystone(1.2) time for 5 passes = 1.14142 This machine benchmarks at 43805 pystones/second

[issue25276] test_decimal sometimes crash on PPC64 AIX 3.x

2015-10-01 Thread Stefan Krah
Stefan Krah added the comment: Usually these segfaults are toolchain bugs (I've had at least 8, including gcc, suncc, libc...). Just a couple of observations: - The bot builds with -DCONFIG_32=1 -DANSI=1 despite being PPC64. - When we had an AIX snakebite machine, the xlc compile worked

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: On Linux, I also run the Python test suite with Python compiled in debug mode. I'm forcing the -O0 flag to disable *all* compilation optimization. All assertions are kept, etc. Maybe the slowness comes from CRT checks, maybe. --

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread John Beck
John Beck added the comment: Confirmed that test_os runs cleanly on Solaris 12, for each of: * 2.7.10 (plus your patch from 98454:202c827f86df) * 3.4.3 (plus your patch from 98455:83dc79eeaf7f) * 3.5.0 (plus your patch from 98452:835085cc28cd) * 3.6 (tip) --

[issue15663] Investigate providing Tcl/Tk 8.6 with OS X installers

2015-10-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. install_name_tool: macholib (PyPI project) contains functionality to do this work in pure python. I do not propose to include macholib in the stdlib, it is too special purpose and not everyone that has provided patches is a CPython contributor

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Thanks! I close the issue, it's now fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread Zachary Ware
Zachary Ware added the comment: Jeremy Kloth wrote: > Please note, it is the only 64-bit Windows buildbot That's not true anymore; in fact, all but David Bolen's XP and Windows 7 bots are 64-bit. Yours is the one one in the 'stable' set, but that classification is a bit out of date for the

[issue23447] Import fails when doing a circular import involving an `import *`

2015-10-01 Thread Steven Barker
Steven Barker added the comment: Thanks for looking at the issue Brett. I think you're right that your patch has incorrect semantics, since it doesn't save the value to the provided namespace if it had to go through the special path to find the name. I think my patch got that part right

[issue8231] Unable to run IDLE without write-access to home directory

2015-10-01 Thread John Gray
John Gray added the comment: See Issue14576 which is the same underlying issue. -- nosy: +John Gray ___ Python tracker ___

[issue22413] Bizarre StringIO(newline="\r\n") translation

2015-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: I don't see a reason to deprecate anything. Can you write up in one paragraph how StringIO's newline flag differs from the one to TextIOWrapper? (What happens to the initial value is a separate issue AFAIC.) --

[issue14576] IDLE: inconsistent use of HOMEDRIVE, HOMEPATH, and USERPROFILE on Windows

2015-10-01 Thread John Gray
John Gray added the comment: I hit this issue with an "H:" homedrive that is on a network share, and then in Windows is using "offline files" to keep a local copy. .idlerc was not cached so IDLE worked when online/connected to my work network but not when I was offline. The temporary

[issue14576] IDLE: inconsistent use of HOMEDRIVE, HOMEPATH, and USERPROFILE on Windows

2015-10-01 Thread John Gray
John Gray added the comment: For the h: drive issue mentioned above: This was on Python 2.7.10. -- ___ Python tracker ___

[issue25272] asyncio tests are getting noisy

2015-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: Or call gc.collect() in that TestCase.setUp()? -- ___ Python tracker ___

[issue25291] ssl socket gets into broken state when client exits during handshake

2015-10-01 Thread Oleg
Oleg added the comment: when i run the server in one terminal and the client in another the server output wold be: Serving on ('127.0.0.1', 8443) my transport None my backlog len 2 my backlog size 4200 that output proves that it is trying to write into socket, while there is no transport!

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-01 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25291] ssl socket gets into broken state when client exits during handshake

2015-10-01 Thread Oleg
Oleg added the comment: Please disregard previous comment!(or delete it), i wanted to create new issue instead! -- ___ Python tracker ___

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Changes by Guido van Rossum : -- Removed message: http://bugs.python.org/msg252050 ___ Python tracker ___

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: Can you fix the issue title or do you want me to fix it? And did you also add a file you meant to go to a different issue? (Maybe link to the new issue and I can figure it out.) -- ___ Python tracker

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-01 Thread Zachary Ware
Zachary Ware added the comment: Thanks, Vinay! -- stage: needs patch -> resolved versions: +Python 3.5, Python 3.6 ___ Python tracker ___

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _Py_MakeEndRecCheck() was changed in issue5392 (noised Antoine as a committer). There are many ways to make it monotonic. #define _Py_MakeEndRecCheck(x) \ (--(x) < ((_Py_CheckRecursionLimit > 200) \ ? (_Py_CheckRecursionLimit - 25) \

[issue24884] Add method reopenFile() in WatchedFileHandler class

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d61b057c375 by Vinay Sajip in branch 'default': Closes #24884: refactored WatchedFileHandler file reopening into a separate method, based on a suggestion and patch by Marian Horban. https://hg.python.org/cpython/rev/6d61b057c375 -- nosy:

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Oleg
Changes by Oleg : -- title: ssl socket gets into broken state when client exits during handshake -> better Exception message for certain task termination scenario ___ Python tracker

[issue25256] Add sys.debug_build public variable to check if Python was compiled in debug mode

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: > I don't like this. The sys module is one of most used module, but it has too > many members, and adding yet one makes the situation worse. Hum, what is the problem of adding a symbol? How does it make the module less usable? > Checking for debug mode is

[issue24870] Optimize ascii and latin1 decoder with surrogateescape and surrogatepass error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: I just pushed my patch to optimize the UTF-8 encoder with error handlers: see the issue #25267. It's up to 70 times as fast. The patch was based on Serhiy's work: faster_surrogates_hadling.patch attached to this issue. --

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Oleg
New submission from Oleg: the weird condition in the code causes the task to end with double exception, hard to understand what really had happened. producing output like that: |i am task.. |i keep working |Exception in callback Task._step() |handle: |Traceback (most

[issue25292] ssl socket gets into broken state when client exits during handshake

2015-10-01 Thread Oleg
New submission from Oleg: when i run the server in one terminal and the client in another the server output wold be: Serving on ('127.0.0.1', 8443) my transport None my backlog len 2 my backlog size 4200 that output proves that it is trying to write into socket, while there is no transport!

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Changes by Guido van Rossum : -- Removed message: http://bugs.python.org/msg252051 ___ Python tracker ___

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Changes by Guido van Rossum : Removed file: http://bugs.python.org/file40651/example_files.tar.gz ___ Python tracker ___

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b5357b38366 by Victor Stinner in branch 'default': Issue #25267: The UTF-8 encoder is now up to 75 times as fast for error https://hg.python.org/cpython/rev/2b5357b38366 -- nosy: +python-dev ___ Python

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72c57c120c19 by Vinay Sajip in branch '3.4': Fixes #25097: Windows test is skipped if there are insufficient privileges, rather than failing. https://hg.python.org/cpython/rev/72c57c120c19 New changeset b54528d8d8c3 by Vinay Sajip in branch '3.5':

[issue25256] Add sys.debug_build public variable to check if Python was compiled in debug mode

2015-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't like this. The sys module is one of most used module, but it has too many members, and adding yet one makes the situation worse. >>> len(dir(sys)) 81 Checking for debug mode is not often needed, and mainly in tests. Current way ``hasattr(sys,

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: (OK, issue should be all cleaned up. :-) -- ___ Python tracker ___ ___

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Changes by Guido van Rossum : -- Removed message: http://bugs.python.org/msg252053 ___ Python tracker ___

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: The overflowed flag was introduced 8 years ago (near the release of Python 3.0) by the following changeset: changeset: 42013:cd125fe83051 user:Martin v. Löwis date:Sun Jun 10 09:51:05 2007 + files:

[issue10485] http.server fails when query string contains addition '?' characters

2015-10-01 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> duplicate status: open -> closed superseder: -> CGIRequestHandler behave incorrectly with query component consisting mutliple ? ___ Python tracker

[issue25125] "Edit with IDLE" does not work for shortcuts

2015-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #23546, I requested a separate 'Edit with IDLE x.y' (I mis-said 'Open') on the context menu for each installed version. I said I would be OK with one 'Edit with IDLE' entry and a submenu, as proposed by someone else. I agree that this will be better in

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: I pushed my optimization. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue23546] Windows, 'Edit with IDLE', and multiple installed versions

2015-10-01 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue14576] IDLE: inconsistent use of HOMEDRIVE, HOMEPATH, and USERPROFILE on Windows

2015-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: John, thank you for the additional information. 2 copies of .idlerc is definitely bad. -- versions: +Python 3.5, Python 3.6 -Python 3.3, Python 3.4 ___ Python tracker

[issue25125] "Edit with IDLE" does not work for shortcuts

2015-10-01 Thread Steve Dower
Steve Dower added the comment: Terry (nosied) made the request for the context menu in issue 23546, so if you want it removed you'll need to convince him. Personally I prefer the context menu, but I typically replace the default file association with one that's better for me anyway so I'm not

[issue25293] Hooking Thread/Process instantiation in concurrent.futures.

2015-10-01 Thread Antony Lee
New submission from Antony Lee: http://bugs.python.org/issue21423 and http://bugs.python.org/issue24980 suggest adding an initializer/on_new_thread argument to {Thread,Process}PoolExecutor. I would like to suggest a more unified API, that would allow not only handling initialization, but

[issue25165] Windows uninstallation should not remove launcher if other versions remain

2015-10-01 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: sys_setrecursionlimit-4.patch: - enhance documentation and comments - combined with end_rec_check.patch: make the lower-water mark monotonic - add _Py_RecursionLimitLowerWaterMark() macro used by _Py_MakeEndRecCheck() and sys.setrecursionlimit() --

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: > _Py_MakeEndRecCheck() was changed in issue5392 (noised Antoine as a > committer). Oh, I didn't know this issue. If I am right, it's a duplicate of this issue, even if it was a little bit different because the lower-water mark was computed differently. >

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: > An alternative would be to remove completly the overflowed flag with its > fatal error. It was introduced during large refactoring of Python, maybe the > bug cannot occur anymore? By the way, it doesn't exist in Python 2 at all. Try attached

[issue10487] http.server doesn't process Status header from CGI scripts

2015-10-01 Thread Martin Panter
Martin Panter added the comment: Issue 13893 was closed as a duplicate of this issue. There are patches and modified code there that may be worth looking at though. -- nosy: +martin.panter superseder: Make CGIHTTPServer capable of redirects (and status other than 200) ->

[issue25165] Windows uninstallation should not remove launcher if other versions remain

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2d30dfa46a7 by Steve Dower in branch '3.5': Issue #25165: Windows uninstallation should not remove launcher if other versions remain https://hg.python.org/cpython/rev/a2d30dfa46a7 -- nosy: +python-dev

[issue25256] Add sys.debug_build public variable to check if Python was compiled in debug mode

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: FYI the sys module has 5 more symbols when CPython is compiled in debug mode: * getobjects() * gettotalrefcount() * last_traceback, last_type, last_value -- ___ Python tracker

[issue25256] Add sys.debug_build public variable to check if Python was compiled in debug mode

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: >> You also can check ``'d' in sys.abiflags`` if it looks cleaner to you. > For me, it doesn't look correct to have various ways to check if python was > compiled in debug mode. It doesn't look portable neither. (...) Oops, I didn't notice that sys.abiflags

[issue12238] Readline module loading in interactive mode

2015-10-01 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___

[issue25272] asyncio tests are getting noisy

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: > Executing coro= /media/disk/home/proj/python/cpython/Lib/test/test_asyncio/test_pep492.py:146> > result=None created at > /media/disk/home/proj/python/cpython/Lib/asyncio/base_events.py:323>

[issue25171] does not build on OpenBSD with no value defined for PY_GETENTROPY

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Thanks Remi for your fix, the compilation succeeded on the buildbot. Sorry for the regression. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue25286] views are not sequences

2015-10-01 Thread Martin Panter
Martin Panter added the comment: If changing the glossary heading, make sure it is kept in alphabetical order and incoming links still work (e.g. look for `view` and ). And maybe “dictionary view” (full spelling, and singular) would be a more accurate heading. The text changes look good

[issue25287] test_crypt fails on OpenBSD

2015-10-01 Thread STINNER Victor
New submission from STINNER Victor: It looks like crypt.crypt('', crypt.METHOD_CRYPT) returns None. This method must be excluded from crypt.methods. Attached patch should fix the issue, but I didn't try it on OpenBSD. Python 3.4-3.6 is affect, Python 2.7 is not affect (crypt.methods was

[issue25284] Spec for BaseEventLoop.run_in_executor(executor, callback, *args) is outdated in documentation

2015-10-01 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in 9a10055e12fa d7d18ef3e05c 1465b18ef4fc -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.4, Python 3.6 ___ Python tracker

[issue25287] test_crypt fails on OpenBSD

2015-10-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +rpointel ___ Python tracker ___ ___

[issue25274] "./python -m test test_sys": Fatal Python error: Cannot recover from stack overflow

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60c4fd84ef92 by Victor Stinner in branch '3.4': Issue #25274: test_recursionlimit_recovery() of test_sys now checks https://hg.python.org/cpython/rev/60c4fd84ef92 New changeset 898a9a959927 by Victor Stinner in branch '3.5': (Merge 3.4) Issue

[issue25286] views are not sequences

2015-10-01 Thread Akira Li
Akira Li added the comment: Thank you for `view`, hint. I did look for :term:`view` that was obviously not enough. The new patch contains the renamed entry in the correct place. All `view`, ` occurrences dictionary view are updated now. -- Added file:

[issue14566] run_cgi reverts to using unnormalized path

2015-10-01 Thread Martin Panter
Martin Panter added the comment: This was also reported in Issue 19435. The combination changes for Issue 19435 + Issue 21323 looks essentially like the proposed change here. Issue 14567 remains about the double processing of paths. -- nosy: +martin.panter resolution: -> duplicate

[issue25288] readline.py file in current directory caused unexpected code execution.

2015-10-01 Thread Hiroki Kiyohara
Hiroki Kiyohara added the comment: I see. Thank you very much, guys. -- ___ Python tracker ___ ___

[issue25276] test_decimal sometimes crash on PPC64 AIX 3.x

2015-10-01 Thread David Edelsohn
David Edelsohn added the comment: The system has 128GB of memory. The process limits are set to unlimited for data. AIX defaults to 32 bit, although all processors are 64 bit, so the buildbot runs as 32 bit. What does low free memory in the buildbot mean? I'm surprised that Python requires

[issue14565] Allow multilevel subdirectories in cgi_directories

2015-10-01 Thread Martin Panter
Martin Panter added the comment: This smells like a new feature to me, because it is clearly not supported by the existing code. If you wanted to fix the existing released versions of Python, I think it would be better to clarify the documentation. -- nosy: +martin.panter title:

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: sys_setrecursionlimit-2.patch: fix error message, exchange the last 2 PyErr_Format() parameters. -- Added file: http://bugs.python.org/file40642/sys_setrecursionlimit-2.patch ___ Python tracker

[issue14567] http.server query string handling is incorrect and inefficient

2015-10-01 Thread Martin Panter
Martin Panter added the comment: I think the decision on how to parse the “path” attribute has to be left up to each request handler implementation, rather than being done blindly in BaseHTTPRequestHandler.parse_request(). The reason is there are various forms of HTTP request target that

[issue24657] CGIHTTPServer module discard continuous '/' letters from params given by GET method.

2015-10-01 Thread Martin Panter
Martin Panter added the comment: The patch looks like it will fix this particular bug without much negative impact. However there are plenty of other problems with this module’s URL handling, see Issue 14567. I think the translate_path(), _url_collapse_path(), is_cgi(), run_cgi(), etc

[issue25280] Message can be formatted twice in importlib

2015-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Brett for your review. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25280] Message can be formatted twice in importlib

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset da42b38f7470 by Serhiy Storchaka in branch '3.4': Issue #25280: Import trace messages emitted in verbose (-v) mode are no https://hg.python.org/cpython/rev/da42b38f7470 New changeset 10c13441bf8d by Serhiy Storchaka in branch '3.5': Issue #25280:

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > ValueError: cannot set recursion limit to 2: the minimum recursion limit is 1 > at the recursion depth 1 This message looks confusing to me. 2 > 1, isn't? The dependency of min_limit from new_limit is not monotonic: new_limit = 99 => min_limit = 74

[issue25288] readline.py file in current directory caused unexpected code execution.

2015-10-01 Thread Hiroki Kiyohara
New submission from Hiroki Kiyohara: Running `python` interpreter will import `readline.py` file in current directory. It causes unexpected code execution. This problem is reported by 'Japan Vulnerability Notes' as a bug on Windows version Python http://jvn.jp/jp/JVN49503705/ It says that

[issue21995] Idle: pseudofiles have no buffer attribute.

2015-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one example of test stream that has no buffer - stdprinter used as sys.stderr on early stage of Python startup. -- ___ Python tracker