[issue33721] os.path.exists() ought to return False if pathname contains NUL

2018-05-31 Thread pacujo
New submission from pacujo : os.path.exists() returns True or False for all imaginable string arguments except for one that contains NUL ("\0") (Linux). This behavior is not documented in the library. Moreover, it can easily lead to accidents if an externally supplied pathname were to contai

[issue33668] Wrong behavior of help function on module

2018-05-31 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Hm, replacing the return with a random string, this leads to another crash: Traceback (most recent call last): File "", line 1, in File "/Users/ilevkivskyi/src/cpython/Lib/_sitebuiltins.py", line 103, in __call__ return pydoc.help(*args, **kwds) F

[issue33668] Wrong behavior of help function on module

2018-05-31 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Adding Yury as an inspect expert. I don't think this is something urgent, we can probably postpone this to 3.7.1. -- nosy: +yselivanov ___ Python tracker _

[issue33722] Document builtins in mock_open

2018-05-31 Thread Jay Crotts
New submission from Jay Crotts : The examples on using mock_open only include instances where objects are mocked in the REPL, so '__main__'.open is replaced. Commonly objects are mocked for use in other test modules, so builtins.open would be used instead. A note about this in the documentati

[issue33721] os.path.exists() ought to return False if pathname contains NUL

2018-05-31 Thread Matthew Barnett
Matthew Barnett added the comment: It also raises a ValueError on Windows. For other invalid paths on Windows it returns False. -- nosy: +mrabarnett ___ Python tracker ___ __

[issue33701] test_datetime crashed (SIGSEGV) on Travis CI

2018-05-31 Thread Stefan Krah
Stefan Krah added the comment: test_datetime passes here with nearly identical conditions as on the CI (Ubuntu 14.04, clang, same random seed): Using random seed 987845 Run tests in parallel using 4 child processes 0:00:01 load avg: 1.70 [ 1/415] test_html passed 0:00:01 load avg: 1.88 [ 2/

[issue33701] test_datetime crashed (SIGSEGV) on Travis CI

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: > test_datetime passes here with nearly identical conditions as on the CI > (Ubuntu 14.04, clang, same random seed): I tried to reproduce the issue on a Ubuntu Trusty *VM* using clang 5.0, using the same random seed: I failed to reproduce the bug. I ran tes

[issue32392] subprocess.run documentation does not have **kwargs

2018-05-31 Thread Tobias Kunze
Change by Tobias Kunze : -- keywords: +patch pull_requests: +6916 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyth

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-31 Thread Paul Koning
Paul Koning added the comment: FYI, I'm the one who created this problem back in 2012. I just submitted a GDB patch for this, using PyImport_AppendInittab to define the built-in module at startup. I'm not sure how I missed this originally; perhaps the documentation was not as clear back th

[issue33701] test_datetime crashed (SIGSEGV) on Travis CI

2018-05-31 Thread Stefan Krah
Stefan Krah added the comment: A wild theory: Because of the new pervasive includes (-I/home/travis/multissl/openssl/1.1.0h/include -O3 -I/home/travis/multissl/openssl/1.1.0h/include) some module picks up a wrong header. But I just rebuilt https://travis-ci.org/python/cpython/jobs/38545884

[issue33710] Deprecate gettext.lgettext()

2018-05-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: +1 - I'm actually surprise it's still there. ;) Given that the docs have a big red warning to avoid these in Python 3, let's start the process of removal. Don't forget to also deprecate ldgettext(), lngettext(), and ldngettext() https://docs.python.org/3/l

[issue33470] Changes from GH-1638 (GH-3575, bpo-28411) are not documented in Porting to Python 3.7

2018-05-31 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily priority: release blocker -> versions: -Python 3.7 ___ Python tracker ___ ___ Python-bu

[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-05-31 Thread STINNER Victor
New submission from STINNER Victor : AMD64 Debian root 3.x: http://buildbot.python.org/all/#/builders/27/builds/1067 == FAIL: test_thread_time (test.test_time.TimeTestCase) -

[issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x

2018-05-31 Thread STINNER Victor
New submission from STINNER Victor : Follow-up of bpo-33615. ARMv7 Ubuntu 3.x: http://buildbot.python.org/all/#/builders/106/builds/1118 Re-running test 'test__xxsubinterpreters' in verbose mode test_bad_id (test.test__xxsubinterpreters.ChannelIDTests) ... ok test_bad_kwargs (test.test__xxsub

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: Now the test runs but doesn't crash anymore: bpo-33724. -- ___ Python tracker ___ ___ Python-bugs

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +6917 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +6918 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33717] Enhance test.pythoninfo: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 56013218864d5eb81baab4665fcae13400934078 by Victor Stinner in branch 'master': bpo-33717: pythoninfo: add CC --version (#7290) https://github.com/python/cpython/commit/56013218864d5eb81baab4665fcae13400934078 -- __

[issue33724] test__xxsubinterpreters failed on ARMv7 Ubuntu 3.x

2018-05-31 Thread Eric Snow
Eric Snow added the comment: Thanks, Victor. I'll take a look. FYI, it seems that the same 3 buildbots from bpo-33615 are seeing these same test failures. -- ___ Python tracker ___

[issue33615] test__xxsubinterpreters crashed on x86 Gentoo Refleaks 3.x

2018-05-31 Thread Eric Snow
Eric Snow added the comment: FYI, I plan on closing this issue only *after* I've re-enabled the crashing test and it passes. :) -- ___ Python tracker ___

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9e24930dfdc28e16dabbfd7dd1ead1336b7b0d6c by Victor Stinner in branch 'master': bpo-33718: regrtest keeps filters to re-run fails (GH-7291) https://github.com/python/cpython/commit/9e24930dfdc28e16dabbfd7dd1ead1336b7b0d6c -- __

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6919 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33692] Chinese characters issue with input() function

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6920, 6921 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue33692] Chinese characters issue with input() function

2018-05-31 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6920 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The release candidate has been re-scheduled for June 11. So we should be able to merge the minimal upgrade before that and get it in 3.7.0 and 3.6.6. (The latter will come out at the same time as the former.) Variable lines is about ready. Colors looks li

[issue33725] High Sierra hang when using multi-processing

2018-05-31 Thread Kapil Thangavelu
New submission from Kapil Thangavelu : This issue seems to be reported a few times on various githubs projects. I've also reproduced using a brew install of python 2.7.15. I haven't been able to reproduce with python 3.6. Note this requires a framework build of python. Background on the under

[issue33642] IDLE: Use variable number of lines in CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, I observe the following behaviors. 1. When Code Context is enabled on a windows still at its initial height, context lines are added to code lines to increase the window height. 2. When the window height is changed with a mouse, that becomes the

[issue33597] Compact PyGC_Head

2018-05-31 Thread INADA Naoki
INADA Naoki added the comment: https://github.com/python/cpython/pull/7043/commits/053111f321d792fb26f8be10abba24a980f3590f I added one micro optimization. Although it is not relating to two-word-gc directly, it makes gc_collect faster than master on the microbench (without importing tkinter.

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: 5, reformulated. Now that 'Code Context' on the Options menu only toggles a feature for the current window, like 'Zoom Height' on the Window menu, both should appear together on the same menu. My current inclination is to move 'Code Context' to Window becau

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-05-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: ISTM the only way dir(self) would make a difference would be if functions we being assigned to instances rather than the class. Also, it's uncleaar why setattr() is at issue -- it works the same way as regular attribute assignment using the dot operator

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: 18. Error or bounds checking for maxlines entry. I believe this really a config dialog issue that applies to everything, but maxlines should be at least 1, with some reasonable max. In the meanwhile, we could check whether crazy entries (text, negatives, s

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: 19. idle.rst doc change 20. What's New for 3.6.6 and 3.7.0 These could be patches on this issue. 21. idlelib/NEWS.txt entries -- ___ Python tracker _

[issue33726] Add short descriptions to PEP references in seealso

2018-05-31 Thread Andrés Delfino
New submission from Andrés Delfino : There are a couple of PEP references with no description in Simple/Compound Statements. Attached PR fixes this. -- assignee: docs@python components: Documentation messages: 318359 nosy: adelfino, docs@python priority: normal severity: normal status:

[issue33726] Add short descriptions to PEP references in seealso

2018-05-31 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6922 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33727] Server.wait_closed() doesn't always wait for its transports to fihish

2018-05-31 Thread Yury Selivanov
New submission from Yury Selivanov : Server.wait_closed() currently does two checks: 1. if _sockets is None -- means that Server.close() was called 2. if self._waiters is None -- means that Server._wakeup() was called if (1) *or* (2) is true, wait_closed() just returns without waiting on anyth

[issue33725] High Sierra hang when using multi-processing

2018-05-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: A better solution is to avoid using fork mode for multiprocessing. The spawn and fork server modes should work fine. The underlying problem is that macOS system frameworks (basically anything higher level than libc) are not save wrt fork(2) and fixing that

[issue33597] Compact PyGC_Head

2018-05-31 Thread INADA Naoki
INADA Naoki added the comment: Oops, this optimization broke trace module. I reverted a part of the optimization. Current benchmark is: $ ./python-patched -m perf timeit --compare-to ./python-master -s "import gc, doctest, ftplib, asyncio, email, http.client, pydoc, pdb, fractions, decimal,

[issue33692] Chinese characters issue with input() function

2018-05-31 Thread Valentin Zhao
Valentin Zhao added the comment: Hey there! I saw your pull requests to python3.6 and have been merged, so what should we do now? Just update the python to higher a version? -- ___ Python tracker __

[issue33728] pandas.to_records can not be saved by numpy.savez

2018-05-31 Thread Feng
New submission from Feng : my first time to report a bug here. But it is so annoying, I have to report it. Here is the demonstration of the errors I encounter: >>> import numpy as np >>> import pandas as pd >>> np.__version__ '1.14.3' >>> pd.__version__ u'0.23.0' >>> df=pd.DataFrame({'a':range

[issue33728] pandas.to_records can not be saved by numpy.savez

2018-05-31 Thread Steven D'Aprano
Steven D'Aprano added the comment: Sorry, this tracker is for the interpreter and standard library. For bugs in third party code like numpy and pandas, you will have to report it on their own bug trackers. -- nosy: +steven.daprano resolution: -> third party stage: -> resolved statu

<    1   2