[issue32484] ImportError for gdbm 1.14

2018-01-02 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: I can confirm a rebuild fixes _gdbm for Python 3.6.4. This is also a bug in gdbm - it should bump soname (gdbm.so.4 => gdbm.so.5) for such an ABI incompatibility. I've sent a report to gdbm developers. --

[issue31340] Use VS 2017 compiler for build

2018-01-02 Thread Christoph Gohlke
Christoph Gohlke added the comment: Since this has not been reverted/changed for 3.6.4 or 3.7.0a3, another potential issue arises: C extensions that are compiled with Visual Studio 2017 are linked to a newer version of vcruntime140.dll (latest is 14.12.25810, VS2017 15.5)

[issue32484] ImportError for gdbm 1.14

2018-01-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: It seems like Python will need to be recompiled then. -- nosy: +benjamin.peterson ___ Python tracker

[issue32484] ImportError for gdbm 1.14

2018-01-02 Thread Chi Hsuan Yen
Change by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue32479] inconsistent ImportError message executing same import statement

2018-01-02 Thread Xiang Zhang
Xiang Zhang added the comment: It's fine. Let's keep this issue open for some time before close it. -- ___ Python tracker ___

[issue32481] Hitting the acute accent ´ button on a Danish keyboard causes Python with tkinter to crash immediately.

2018-01-02 Thread Ned Deily
Ned Deily added the comment: This is a well-known bug with older versions of Tk on macOS. Chances are that the Python 3.6.3 you are using is using the Apple-supplied version of Tk 8.5.x which exhibits this bug. If you are using Python 3.6.3 downloaded from python.org, as

[issue29708] support reproducible Python builds

2018-01-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: PEP 552 has been implemented for 3.7. -- ___ Python tracker ___

[issue29708] support reproducible Python builds

2018-01-02 Thread Alexandru Ardelean
Alexandru Ardelean added the comment: Hey, Allow me to join the discussion here. Context: - I'm the maintainer of Python & Python3 in the OpenWrt distro, and (since a while) we also care about reproducible builds. - The person [Alexander Couzens] who's leading the

[issue32471] Add an UML class diagram to the collections.abc module documentation

2018-01-02 Thread Brett Cannon
Brett Cannon added the comment: I brought this up on python-ideas, but I think discussing it here may be better: I think we may need to use a data file format that has an open source implementation. The tool Yahya used (plantuml) doesn't appear to be open source, which is a

[issue32484] ImportError for gdbm 1.14

2018-01-02 Thread sds
New submission from sds : After upgrading to gdbm stable 1.14, I get this: ``` >>> import gdbm Traceback (most recent call last): File "", line 1, in ImportError: dlopen(/.../lib/python2.7/lib-dynload/gdbm.so, 2): Symbol not found: _gdbm_errno Referenced from:

[issue32413] Document that locals() may return globals()

2018-01-02 Thread Martin Panter
Martin Panter added the comment: FWIW a few years ago I wrote a patch for Issue 17546 that documents three personalities of “locals”, including: * At the module level, the dictionary returned is the global symbol table, also returned by :func:`globals`. --

[issue32456] PYTHONIOENCODING=undefined doesn't work in Python 3

2018-01-02 Thread Martin Panter
Martin Panter added the comment: My guess is there is no message because in Python 3, errors are encoded according to PYTHONIOENCODING. Perhaps it works as you expect if you bypass sys.excepthook: $ PYTHONIOENCODING=undefined python -c 'import sys, os; sys.excepthook =

[issue32483] Misleading reflective behaviour due to PEP 3131 NFKC identifiers normalization.

2018-01-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: We don't generally update finalized PEPs. The official documentation for a feature is in the Python docs. Feel free to propose a PR if you think it could be improved. -- nosy: +benjamin.peterson resolution: -> duplicate

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2018-01-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 02/01/2018 à 18:13, Mark Shannon a écrit : > > Rather than go around in circles any more, I suggest that we merge Serhiy's > PR (PR 5006). I can then cherry-pick my commits to clean up the > implementation of the `with` statement (as a new

[issue31530] Python 2.7 readahead feature of file objects is not thread safe

2018-01-02 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27632] build on AIX fails when builddir != srcdir, more than bad path to ld_so_aix

2018-01-02 Thread Eric N. Vander Weele
Eric N. Vander Weele added the comment: I can also confirm that OOT builds work as well. https://github.com/python/cpython/commit/395733d46bbc23d2f559eba4e5f75783f9bca6f1#diff-6fd819bc2460d3a50e561d2da6c09c02 addressed fixing this issue. --

[issue31530] Python 2.7 readahead feature of file objects is not thread safe

2018-01-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset dbf52e02f18dac6f5f0a64f78932f3dc6efc056b by Benjamin Peterson in branch '2.7': bpo-31530: fix crash when multiple threads iterate over a file, round 2 (#5060)

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2018-01-02 Thread Mark Shannon
Mark Shannon added the comment: > It looks like the build core dumped on Travis-CI I failed to account for the extra stuff left on the stack when handling exceptions and jumping out of a finally block due to a `break`. Caught by Serhiy's tests in

[issue32346] Speed up slot lookup for class creation

2018-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: ./python -m timeit -- "class A: pass" - before: 6.63 usec per loop - after: 5.41 usec per loop ./python -m timeit -s "class A: pass" -- "class B(A): pass" - before: 7.04 usec per loop - after: 4.91 usec per loop ./python -m

[issue32483] Misleading reflective behaviour due to PEP 3131 NFKC identifiers normalization.

2018-01-02 Thread Iago-lito -
Iago-lito - added the comment: I just found out about [this](https://bugs.python.org/issue13793) very close issue. Much of the philosophy has been made very clear there. Since the solution to issue13793 is to *document* much this NFKC normalization. Then I think I'd

[issue32483] Misleading reflective behaviour due to PEP 3131 NFKC identifiers normalization.

2018-01-02 Thread Iago-lito -
New submission from Iago-lito - : Consistent with [PEP 3131](https://www.python.org/dev/peps/pep-3131/) and NFKC normalization of identifiers, these two last lines yield an error, since `휏` (U+1D70F) is automatically converted to `τ` (U+03C4). class Base(object):

[issue32479] inconsistent ImportError message executing same import statement

2018-01-02 Thread Nick Coghlan
Nick Coghlan added the comment: Since the problem is specific to Python 2.7 and has been resolved in the importlib based import implementation, I'm inclined to close this as "Won't Fix". The only reason I haven't is that if someone really wanted to dig into the Python

[issue32452] Brackets and Parentheses used in an ambiguous way

2018-01-02 Thread R. David Murray
R. David Murray added the comment: Thanks, Mariatta. I did click on the details link, so either the restart link isn't obvious or I don't have the correct permissions to do a restart :) And thanks Emily for doing the PR. -- resolution: -> fixed stage: patch

[issue32480] czipfile installation failure

2018-01-02 Thread Antoine Pitrou
Change by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___

[issue32452] Brackets and Parentheses used in an ambiguous way

2018-01-02 Thread R. David Murray
R. David Murray added the comment: New changeset 0e0d1017a4c8ad6f77ee42d7b640463058037f62 by R. David Murray (Miss Islington (bot)) in branch '2.7': bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5082)

[issue27435] ctypes library loading and AIX - also for 2.7.X (and later)

2018-01-02 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker ___ ___

[issue10656] "Out of tree" build fails on AIX

2018-01-02 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker ___ ___

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2018-01-02 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker ___ ___

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

2018-01-02 Thread David Edelsohn
David Edelsohn added the comment: /* typedef for the File System Identifier (fsid). This must correspond * to the "struct fsid" structure in _ALL_SOURCE below. */ typedef struct fsid_t { #ifdef __64BIT_KERNEL unsigned long val[2]; #else /* __64BIT_KERNEL */

[issue32461] the first build after a change to Makefile.pre.in uses the old Makefile

2018-01-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Hum, GNU make does re-execute the updated Makefile [1] after the 'Makefile' target has been remade. The problem occurs though with the other make variants that do not have this feature. [1] This may be shown by updating Makefile.pre.in and

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

2018-01-02 Thread David Edelsohn
David Edelsohn added the comment: struct statvfs { ulong_tf_bsize; /* preferred file system block size */ ulong_tf_frsize;/* fundamental file system block size*/ fsblkcnt_t f_blocks;/* total # of blocks of f_frsize

[issue28290] BETA report: Python-3.6 build messages to stderr: AIX and "not GCC"

2018-01-02 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker ___ ___

[issue27643] test_ctypes fails on AIX with xlc

2018-01-02 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker ___ ___

[issue32452] Brackets and Parentheses used in an ambiguous way

2018-01-02 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: I clicked the "Details" link and restarted the build from there. Closing and reopening the PR will also restart the build. -- nosy: +Mariatta ___ Python tracker

[issue32482] Improve tests for syntax and grammar in 2.7

2018-01-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4961 ___ Python tracker ___ ___

[issue32482] Improve tests for syntax and grammar in 2.7

2018-01-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The proposed PR: * Fixes Py3k warnings introduced by recent backports. * Backports tests from Python 3. * Improve handling of Py3k warnings. They are now checked only for statements that emit them instead of silencing for the

[issue32482] Improve tests for syntax and grammar in 2.7

2018-01-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4960 stage: -> patch review ___ Python tracker ___

[issue32447] IDLE shell won't open on Mac OS 10.13.1

2018-01-02 Thread Steve Margetts
Steve Margetts added the comment: OK, so I created a profile for my son (single name without any spaces!) and that seems to allow both Python and IDLE to work fine. I'll try and sort out my profile slow time - it doesn't seem to be causing any other issues just now.

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2018-01-02 Thread Mark Shannon
Mark Shannon added the comment: I've added a commit to compute the stack size. It should compute the exact stack size in all cases, and thus fix bpo-24340. -- ___ Python tracker

[issue32452] Brackets and Parentheses used in an ambiguous way

2018-01-02 Thread R. David Murray
R. David Murray added the comment: It looks like the docs job hung on the 2.7 backport, but I don't see how to restart it. -- ___ Python tracker

[issue32452] Brackets and Parentheses used in an ambiguous way

2018-01-02 Thread R. David Murray
R. David Murray added the comment: New changeset f24c1857a8a1ba3efb3f957d43371bc9499e3c86 by R. David Murray (Miss Islington (bot)) in branch '3.6': bpo-32452: clarify term 'brackets' in generator tutorial (GH-5079) (#5081)

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

2018-01-02 Thread Xavier de Gaye
Xavier de Gaye added the comment: Can you please post the definition of the statvfs structure on AIX. -- ___ Python tracker ___

[issue32480] czipfile installation failure

2018-01-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is an issue with the czipfile package on PyPI () and not a bug in CPython. Note that czipfile appears to support Python 2 only, which would explain the error message you are getting.

[issue32453] shutil.rmtree can have O(n^2) performance on large dirs

2018-01-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, so `rm -rf` is quadratic on my SSD too... -- ___ Python tracker ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2018-01-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > With fixed deltas, it is not too hard to construct an algorithm to determine the correct stack size. The presence of JSR-style finally blocks complicates things a little, but not that much. Any chance you can put that patch somewhere to get

[issue32481] Hitting the acute accent ´ button on a Danish keyboard causes Python with tkinter to crash immediately.

2018-01-02 Thread Jacob Jorvang
New submission from Jacob Jorvang : Hitting the acute accent ´ button on a Danish keyboard causes Python with tkinter to crash immediately. This is a problem because the key is just left of the backspace key. Using: Python 3.6.3 MacOS version of tkinter ActiveTCL

[issue32480] czipfile installation failure

2018-01-02 Thread Ajay
New submission from Ajay : pip installation for czipfile is failing with compilation error (as below) Command Execute: pip install --no-cache-dir czipfile Error: Collecting czipfile Downloading czipfile-1.0.0.tar.gz (144kB) 100% ||

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2018-01-02 Thread Mark Shannon
Mark Shannon added the comment: On 01/01/18 17:54, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > I took a quick look at Mark's PR. The main thing going for it IMHO is that > it produces simpler bytecode: it removes the complicated

[issue32472] Mention of __await__ missing in Coroutine Abstract Methods

2018-01-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: `Coroutine` is inherited from `Awaitable`, that's why inherited abstract `__await__` method is present. It **is** consistent with the rest of the document: e.g. Mapping has no `__len__` method but inherits it from Collection which

[issue32477] Move jumps optimization from the peepholer to the compiler

2018-01-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +inada.naoki, pitrou ___ Python tracker ___

[issue32478] Add tests for 'break' and 'return' inside 'finally' clause

2018-01-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32478] Add tests for 'break' and 'return' inside 'finally' clause

2018-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b495377a8bdd711e9aab0885c60cd148284156e8 by Serhiy Storchaka in branch '2.7': [2.7] bpo-32478: Add tests for 'break' and 'return' inside 'finally' clause. (GH-5078). (#5084)

[issue32479] inconsistent ImportError message executing same import statement

2018-01-02 Thread Xiang Zhang
New submission from Xiang Zhang : While debugging a problem in my job I find an odd case about import, it could be reduced to the following tracebacks: >>> from keystone.assignment import schema Traceback (most recent call last): File "", line 1, in File

[issue32478] Add tests for 'break' and 'return' inside 'finally' clause

2018-01-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +4959 ___ Python tracker ___ ___

[issue32453] shutil.rmtree can have O(n^2) performance on large dirs

2018-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks for your investigations Niklas. I ran my benchmark on a spinning disk, but significant nonlinearity is observed only for the size of directory around 100 and more. And yes, sorting by inode number helps. $ for j in 1

[issue32478] Add tests for 'break' and 'return' inside 'finally' clause

2018-01-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset aea95c2fbdec058b833a74eeb7ec8dc69706 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-32478: Add tests for 'break' and 'return' inside 'finally' clause. (GH-5078) (#5083)