[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did you get the source from openSUSE or from python.org? -- ___ Python tracker ___ ___ Python-bug

[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread miss-islington
miss-islington added the comment: New changeset 7bd6f0e5500f778e940374237b94651f60ae1990 by Miss Islington (bot) in branch '3.7': closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130) https://github.com/python/cpython/commit/7bd6f0e5500f778e940374237b94651f60ae1990

[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7716 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34056] checked hash-based pyc files not working with imp module

2018-07-06 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset b0274f2cddd36b49fe5080efbe160277ef546471 by Benjamin Peterson in branch 'master': closes bpo-34056: Always return bytes from _HackedGetData.get_data(). (GH-8130) https://github.com/python/cpython/commit/b0274f2cddd36b49fe5080efbe160277ef54647

[issue30400] Race condition in shutil.copyfile()

2018-07-06 Thread Preston Moore
Preston Moore added the comment: Sure. I'll get everything up to date for 3.8 and create and required test. Thanks! -- ___ Python tracker ___ ___

[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Ted Kandell
Ted Kandell added the comment: This isn't for the OpenSUSE official build itself, just compiling and installing from source on OpenSUSE 42.3. Without the symlink, and also with a wrong PYTHONHOME, pip coredumps. -- ___ Python tracker

[issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: A crash, for the tracker, is failed execution without a Python exception and trackback. Debian, Fedora, Gentoo, RHEL, and Ubuntu (AMD64) buildbots are currently green. We don't have one for SUSE, open or other wise. If you have not yet reported the issue t

[issue34029] tkinter.filedialog.askdirectory() crashing before dialog opens when importing pywinauto

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ryan: this tracker only covers issues with the PSF CPython distribution. Problems with 3rd party modules like pywinauto are not our responsibility until someone determines that its misbehavior reflects a CPython bug. -- nosy: +terry.reedy resolution

[issue34017] Tkinter CheckButton not working in EXE

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The tracker only covers the PSF cpython distribution. When you code ran in Spyder, our responsibily ended. cx Freeze is a 3rd party package: contact their support. -- nosy: +terry.reedy resolution: -> third party stage: -> resolved status: open -

[issue34013] Inconsistent SyntaxError for print

2018-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Eric, Nick, Serhiy: this issue proposes to extend the print message patch of #30597 to cover more cases. On the face of it, this seems sensible, but I have no read the original discussion or the current and proposed patches. -- nosy: +eric.smith, nc

[issue31839] datetime: add method to parse isoformat() output

2018-07-06 Thread Martin Panter
Change by Martin Panter : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> datetime: add ability to parse RFC 3339 dates and times ___ Python tracker ___

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki
INADA Naoki added the comment: New changeset e25399b40cd15620e77c9ad2ed24549006ae9b47 by INADA Naoki in branch 'master': bpo-23493: json: Change sort_keys in Python encoder same to C (GH-8131) https://github.com/python/cpython/commit/e25399b40cd15620e77c9ad2ed24549006ae9b47 --

[issue34019] webbrowser: wrong arguments for Opera browser.

2018-07-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8902a1d14e9fe6fb80f4145ad4ea27a579567289 by Pablo Galindo in branch '2.7': [2.7] bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) (#8126) https://github.com/python/cpython/commit/8902a1d14e9fe6fb80f4145ad4ea27a579567289 --

[issue34063] binhex REASONABLY_LARGE = 32768 so what is 128000

2018-07-06 Thread Jim Jewett
New submission from Jim Jewett : binhex defines a module-wide constant of REASONABLY_LARGE = 32768 # Minimal amount we pass the rle-coder Later on, in 5 locations it does either ifp.read(128000) or ifp.read_rsrc(128000) It isn't clear why a different constant is used, let alone why a liter

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread Alberto
Alberto added the comment: Hey Victor, I've spent another number of hours debugging the problem and trying to avoid encodings to be loaded but I've had no luck since initfsencoding is necesary for init_sys_streams to work and that's an important function that sets stdin, stout and sterr.

[issue34034] Python 3.7.0 multiprocessing forkserver ForkingPickler behaviour change

2018-07-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: No problem! I'm going to close this issue as I don't think there's anything we can do here. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue34034] Python 3.7.0 multiprocessing forkserver ForkingPickler behaviour change

2018-07-06 Thread Santiago Hernandez
Santiago Hernandez added the comment: Thanks, I get it now, I hadn't seen that the pickling of the workers was Processes pickling. Yeah, I was not doing this anywhere else, it seems like slipped through once. But it called my attention that it used to work and now it doesn't. On Tue, Jul 3, 20

[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-07-06 Thread Eryk Sun
Eryk Sun added the comment: I don't think the launcher has unit tests. The if statement in process() that calls show_python_list only checks for "-0". It needs to check for the long names as well, e.g.: if (argc == 2) { /* First check for -0[p], --list, or --list-paths. */

[issue34059] multiprocessing deadlock

2018-07-06 Thread Guillaume Perrault-Archambault
Guillaume Perrault-Archambault added the comment: A friend of mine has suggested a fix that seems to work for now (upgrade numpy from 1.14.3 to 1.14.5). This makes no sense at all but it does seem to work for now. I have a strong suspicion that this is just masking the problem and that it wi

[issue33922] [Windows] Document the launcher's -64 suffix

2018-07-06 Thread Eryk Sun
Change by Eryk Sun : -- assignee: -> docs@python components: +Documentation dependencies: +Allow windows launcher to specify bit lengths with & without minor version nosy: +docs@python resolution: duplicate -> stage: resolved -> patch review status: closed -> open superseder: Allow w

[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-07-06 Thread Brett Cannon
New submission from Brett Cannon : When you run `py -h` it says you can use -0 or --list as well as -0p or --list-paths, but both --list and --list-paths don't work (the -0-based options do, though). -- components: Windows messages: 321187 nosy: brett.cannon, paul.moore, steve.dower,

[issue32521] NIS module fails to build due to the removal of interfaces related to Sun RPC from glibc.

2018-07-06 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: On Fedora after the fix we had also to BuildRequire libnsl2-devel and libtirpc-devel after the glibc change was implemented for the correct headers to be included within the buildroot. I am not familiar with suse's build system webui to find the logs,

[issue34059] multiprocessing deadlock

2018-07-06 Thread Guillaume Perrault-Archambault
Guillaume Perrault-Archambault added the comment: Hi Victor and Yang, Thanks for your fast replies. I did initially think it could be a torch issue. Indeed, I have an equivalent numpy testcase that does not deadlock. However, the fact that it gets stuck inside a multiprocessing wait statement

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-06 Thread Berker Peksag
New submission from Berker Peksag : Most of the exceptions in sqlite3 module were documented in issue 6057 (https://github.com/python/cpython/commit/ed789f9cf9586d94e85115bb516a2ab6b9a2f668) Unfortunately, I noticed that I missed NotSupportedError while reviewing PR 8086. I think it should be

[issue34041] add *deterministic* parameter to sqlite3.Connection.create_function()

2018-07-06 Thread Berker Peksag
Change by Berker Peksag : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you for reporting the issue, Kay. And huge thanks to Antoine and Pablo for bisecting. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34042] Reference loss for local classes

2018-07-06 Thread miss-islington
miss-islington added the comment: New changeset 127bd9bfd591c8ec1a97eb7f4037c8b884eef973 by Miss Islington (bot) in branch '3.7': bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119) https://github.com/python/cpython/commit/127bd9bfd591c8ec1a97eb7f4037c8b884eef973 ---

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread Alberto
Alberto added the comment: Hi, First of all thank you for your answer. If every module can't be statically compiled within a library, what is the point of having instructions to compile python statically in the build instructions? Can I modify the code to make it completely statically? Thank

[issue34032] Add platlibdir to allow distinction between /usr/lib and /usr/lib64 for Linux

2018-07-06 Thread Éric Araujo
Éric Araujo added the comment: I think there are open tickets discussing this, and the problem is more complex that a simple PR: - Debian does multiarch that’s more than just lib/lib64 - some systems have lib32 I think - recent systems merge / and /usr, is that relevant? - how does virtualenv

[issue34042] Reference loss for local classes

2018-07-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7715 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 0b75228700e0077d8bf2636e74733389514b4b2f by Yury Selivanov in branch 'master': bpo-34042: Fix dict.copy() to maintain correct total refcount (GH-8119) https://github.com/python/cpython/commit/0b75228700e0077d8bf2636e74733389514b4b2f --

[issue34042] Reference loss for local classes

2018-07-06 Thread Yury Selivanov
Yury Selivanov added the comment: > If you could do what you often you, and make this what distributions like > Debian pull from, it would be good enough in terms of release for me, as it > blocks Nuitka tests from passing on them. I'm not sure what you mean by "what you often do". I'll push

[issue34060] regrtest: log "CPU usage" on Windows

2018-07-06 Thread STINNER Victor
New submission from STINNER Victor : I would help to debug race conditions on Windows to log the "CPU usage" on regrtest, as we do on other platforms (using os.getloadavg()). Links: * https://stackoverflow.com/questions/13666458/python-collect-system-stats * https://docs.microsoft.com/en-us/

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue34059] multiprocessing deadlock

2018-07-06 Thread STINNER Victor
STINNER Victor added the comment: IMHO it's an issue with your usage of the torch module which is not part of the Python stdlib, so I suggest to close this issue as "third party" or "not a bug". -- nosy: +vstinner ___ Python tracker

[issue34059] multiprocessing deadlock

2018-07-06 Thread Windson Yang
Windson Yang added the comment: I'm can't reproduce the deadlock, maybe it's related to torch package? Can you try without torch to see if this happens again? -- nosy: +Windson Yang ___ Python tracker _

[issue29750] smtplib doesn't handle unicode passwords

2018-07-06 Thread Tal Einat
Tal Einat added the comment: I have worked on this, almost ready for a PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue32007] nis module fails to build against glibc-2.26

2018-07-06 Thread Matej Cepl
Matej Cepl added the comment: > - I agree with Benjamin, let's deprecate the NIS module. NIS/YP functionality > has been replaced by NSS a long time ago. Agree. a) who will separate its functionality into separate module for PyPI, b) who start a thread on python-devel? -- _

[issue29750] smtplib doesn't handle unicode passwords

2018-07-06 Thread Gabriele Tornetta
Gabriele Tornetta added the comment: Are there any PRs already for this issue? I couldn't find any on GitHub. Also, is the plan to branch the fix down to at least 3.6? -- nosy: +Gabriele Tornetta ___ Python tracker

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki
INADA Naoki added the comment: I can't confirm significant performance benefit. sort_keys is not bottleneck of pure Python encoder. BTW, benefit from C encoder is more significant. It's about 3x faster. Adding `indent` option support to C encoder may be good target for new contributors who w

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington
miss-islington added the comment: New changeset 972458a4245afb4e934fbcb9c0224b105fb5d7ba by Miss Islington (bot) in branch '3.6': bpo-34054: multiprocessing uses time.monotonic() (GH-8118) https://github.com/python/cpython/commit/972458a4245afb4e934fbcb9c0224b105fb5d7ba --

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington
miss-islington added the comment: New changeset 4bd5fce27d5c03a013e5ebb008670ca0d89e3298 by Miss Islington (bot) in branch '3.7': bpo-34054: multiprocessing uses time.monotonic() (GH-8118) https://github.com/python/cpython/commit/4bd5fce27d5c03a013e5ebb008670ca0d89e3298 -- nosy: +mi

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7714 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +7713 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34054] multiprocessing should use time.monotonic() for timeout

2018-07-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset c2368cbc83ca2bafeaea0e4760be4996046d0444 by Victor Stinner in branch 'master': bpo-34054: multiprocessing uses time.monotonic() (GH-8118) https://github.com/python/cpython/commit/c2368cbc83ca2bafeaea0e4760be4996046d0444 -- ___

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2018-07-06 Thread Ned Batchelder
Ned Batchelder added the comment: Coverage.py is registering a handler to save data before the program ends. The execv call is not in the coverage.py code, it's in the program that coverage.py is running. -- ___ Python tracker

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-07-06 Thread Tal Einat
Tal Einat added the comment: Now that transmogrify is done, the only open question is about itertools and collections. 1. Should collections be converted? 2. How to proceed with itertools? There are two PRs ready, with the one just for groupby() approved, but not yet reviewed by Raymond Hett

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: Thanks for all of your work on this, Ammar! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset 7829bba45d0e2446f3a0ca240bfe46959f01071e by Tal Einat (Ammar Askar) in branch '2.7': [2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (#8133) https://github.com/python/cpython/commit/7829bba45d0e2446f3a0ca24

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset 11c36a3e16f7fd4e937466014e8393ede4b61a25 by Tal Einat (Ammar Askar) in branch '3.6': [3.6] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (GH-8134) https://github.com/python/cpython/commit/11c36a3e16f7fd4e937466

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset ab75d9e4244ee24bc96ea9d52362899e3bf365a2 by Tal Einat (Ammar Askar) in branch '3.7': [3.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (GH-8132) https://github.com/python/cpython/commit/ab75d9e4244ee24bc96ea9

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset c929df3b96c8d7e7977e581431192be21cdafd19 by Tal Einat in branch 'master': bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039) https://github.com/python/cpython/commit/c929df3b96c8d7e7977e581431192be21cdafd19 --

[issue16968] Fix test discovery for test_concurrent_futures.py

2018-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems that reap_children() in regrtest is ran only if the test is passed. And it doesn't produce warnings. -- ___ Python tracker ___ _

[issue34042] Reference loss for local classes

2018-07-06 Thread Kay Hayen
Kay Hayen added the comment: Hello, so it's harmless and it explains the other reference counting issue, where a change in call convention could make a reference counting bug show or go away: codecs.open(TESTFN, encoding='cp949') This was showing it, where as codecs.open(TESTFN, "rb", 'cp949

[issue34007] test_gdb fails in s390x SLES buildbots

2018-07-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: All the builds fail consistently after http://buildbot.python.org/all/#/builders/54/builds/465 and things were passing before 465. Maybe is this something to do with the commit that happened there that we could revert and test it in the machine by d

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +7712 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +7711 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Ammar Askar
Change by Ammar Askar : -- pull_requests: +7710 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +7709 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue23493] optimize sort_keys in json module by using operator.itemgetter()

2018-07-06 Thread INADA Naoki
INADA Naoki added the comment: In C version, we don't use key func. items = PyMapping_Items(dct); if (items == NULL) goto bail; if (s->sort_keys && PyList_Sort(items) < 0) { Like that, how about removing key function completely? -- nosy: +inada.naoki

[issue34043] Optimize tarfile uncompression performance

2018-07-06 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue34057] Py_Initialize aborts when using static Python version. Windows

2018-07-06 Thread STINNER Victor
STINNER Victor added the comment: > Why is Python looking for external modules when it is a statically linked > library and encodings should be built-in? Hi, this is not a bug. Python needs its standard library. You might want to put the whole stdlib into a single ZIP, but I don't recall how

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2018-07-06 Thread Tal Einat
Tal Einat added the comment: > we could definitely have a separate "atexec" handler Couldn't coverage.py and similar apps can just invoke the atexit handlers before calling os.execv() or similar? If so, perhaps a mention of this in the docs would suffice? -- nosy: +taleinat __

[issue33899] Tokenize module does not mirror "end-of-input" is newline behavior

2018-07-06 Thread Tal Einat
Tal Einat added the comment: New changeset c4ef4896eac86a6759901c8546e26de4695a1389 by Tal Einat (Ammar Askar) in branch 'master': bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) https://github.com/python/cpython/commit/c4ef4896eac86a6759901c8546e26de4695