[issue33383] Crash in the get() method a single argument in dbm.ndbm

2018-04-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Calling the get() method of the dbm.ndbm database object with only single argument causes a crash because the default value is set to NULL. The regression was introduce in 3.5. The proposed patch fixes the crash and add tests for the get() method for all

[issue33174] error building the _sha3 module with Intel 2018 compilers

2018-04-29 Thread Kenneth Hoste
Kenneth Hoste added the comment: Willian: on which OS and (Intel?) processor generation are you seeing this? We're not seeing this on CentOS 7.4.1708 with Python 3.6.4 and icc 18.0.1.163 on Intel Haswell or Intel Skylake. We have seen this with other software on Intel Skylake though... Have y

[issue33383] Crash in the get() method a single argument in dbm.ndbm

2018-04-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6326 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue33383] Crash in the get() method a single argument in dbm.ndbm

2018-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +6327 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33383] Crash in the get() method a single argument in dbm.ndbm

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2e38cc39330bd7f3003652869b644110a97a78d8 by Serhiy Storchaka in branch 'master': bpo-33383: Fix crash in get() of the dbm.ndbm database object. (#6630) https://github.com/python/cpython/commit/2e38cc39330bd7f3003652869b644110a97a78d8

[issue33384] Build does not work with closed stdin

2018-04-29 Thread Martin Husemann
New submission from Martin Husemann : When building python extensions in the background w/o stdin (and stderr and stdout redirected to a log file), the invocation of setup.py fails. Normal build in a shell: Example from pyexpat: > /usr/pkg/bin/python3.6 setup.py build running build running b

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-04-29 Thread Michael Romero
Michael Romero added the comment: So is this now considered resolved for High Sierra users via 2.7.15rc1? -- nosy: +Michael Romero ___ Python tracker ___ __

[issue33384] Build does not work with closed stdin

2018-04-29 Thread Thomas Klausner
Change by Thomas Klausner : -- nosy: +wiz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue31026] test_dbm fails when run directly

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The same error is now occurred in Ubuntu 18.04 by default. The proposed patch moves the test for the empty value to separate methods and skips them if dbm.ndbm uses Berkeley DB. -- versions: +Python 3.8 ___ Pyth

[issue31026] test_dbm fails when run directly

2018-04-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +6328 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue33383] Crash in the get() method a single argument in dbm.ndbm

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ee95feb69d937149bef3d245e87df1aef412b7fc by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': [3.7] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630) (GH-6631) https://github.com/python/cpython/commit/ee95feb69d93

[issue33383] Crash in the get() method a single argument in dbm.ndbm

2018-04-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6329 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33255] json.dumps has different behaviour if encoding='utf-8' or encoding='utf8'

2018-04-29 Thread Nicolás Hatcher
Nicolás Hatcher added the comment: Hi Sehriy, I am ok with that change. I think it makes much more sense, but I also think it will break people's codes. At least with the simplest fix in which: >>> json.dumps({"g"}, ensure_ascii=False) u'"g"' Which is again compatible with simplejson. Althou

[issue33383] Crash in the get() method a single argument in dbm.ndbm

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1b27ec6e0b40f81bf276eefa6b5bdb773b2a8890 by Serhiy Storchaka in branch '3.6': [3.6] bpo-33383: Fix crash in get() of the dbm.ndbm database object. (GH-6630). (GH-6633) https://github.com/python/cpython/commit/1b27ec6e0b40f81bf276eefa6b5bdb773b

[issue31026] test_dbm fails when run directly

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 70af06cdc4e8fbee0b9d7d46bdc193097d4bc71f by Serhiy Storchaka in branch 'master': bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632) https://github.com/python/cpython/commit/70af06cdc4e8fbee0b9d7d46bdc193097d4bc71f --

[issue31026] test_dbm fails when run directly

2018-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +6330 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31026] test_dbm fails when run directly

2018-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +6331 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33328] pdb error when stepping through generator

2018-04-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is a duplicate of issue 13044. > Why the code of the never used asynchronous generator is executed at all? The destructor of the asynchronous generator is called during python finalization while the trace is still active. Here is the backtrace where pyt

[issue13044] pdb throws AttributeError at end of debugging session

2018-04-29 Thread Xavier de Gaye
Xavier de Gaye added the comment: I can reproduce this bug with python 3.6.5 using akl's debug.py. The exception is now on 3.6.5: (Pdb) next --Call-- Exception ignored in: Traceback (most recent call last): File "/usr/lib/python3.6/types.py", line 27, in _ag File "/usr/lib/python3.6/bdb.p

[issue33255] json.dumps has different behaviour if encoding='utf-8' or encoding='utf8'

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You could decode only non-ascii strings. But I'm not sure that it is worth to change something in 2.7. This could be treated aa a new feature. Left this on to Benjamin, the release manager of 2.7. -- nosy: +benjamin.peterson ___

[issue31026] test_dbm fails when run directly

2018-04-29 Thread miss-islington
miss-islington added the comment: New changeset e57d3e3a13d1d4c6a057e47db8361695194bb5ab by Miss Islington (bot) in branch '3.7': bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632) https://github.com/python/cpython/commit/e57d3e3a13d1d4c6a057e47db8361695194bb5ab ---

[issue31026] test_dbm fails when run directly

2018-04-29 Thread miss-islington
miss-islington added the comment: New changeset a26a297b4ba1b8fe6c97c25af71216935960b343 by Miss Islington (bot) in branch '3.6': bpo-31026: Fix test_dbm if dbm.ndbm is build with Berkeley DB. (GH-6632) https://github.com/python/cpython/commit/a26a297b4ba1b8fe6c97c25af71216935960b343 ---

[issue33385] setdefault() with a single argument doesn't work for dbm.gdbm and dmb.ndbm objects

2018-04-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : setdefault() is not implemented directly in dbm.gdbm and dmb.ndbm database classes. It is inherited from MutableMapping: def setdefault(self, key, default=None): try: return self[key] except KeyError: self[key] =

[issue33383] Crash in the get() method a single argument in dbm.ndbm

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

[issue31026] test_dbm fails when run directly

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

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-04-29 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > Look like the only way is to rearrange Tcl stack frames so that the right one > is on top. Scratch that. Tkinter allows to execute entire scripts where the order of the frames is important. -- ___ Python tracker

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-04-29 Thread Dong-hee Na
Dong-hee Na added the comment: @Nitish I will take a look this issue. I agree with to use "{!s}" in the format string -- nosy: +corona10 ___ Python tracker ___ ___

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-04-29 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +6332 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-04-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +yselivanov type: -> behavior versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Pyt

[issue33386] Double clicking to select an identifier in IDLE does not work with some unicode characters

2018-04-29 Thread Dan Snider
New submission from Dan Snider : https://i.imgur.com/61sHBRR.png At least with "μ", it behaves as if it's one of the ascii characters for which id.isidentifier() returns False, as in https://i.imgur.com/XbEW0ZC.png. -- assignee: terry.reedy components: IDLE messages: 315901 nosy: bup,

[issue33256] module is not displayed by cgitb.html

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7d68bfa82654ba01d860b8a772ff63bf0bd183ee by Serhiy Storchaka (sblondon) in branch 'master': bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442) https://github.com/python/cpython/commit/7d68bfa82654ba01d8

[issue33256] module is not displayed by cgitb.html

2018-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +6333 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33256] module is not displayed by cgitb.html

2018-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +6334 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33328] pdb error when stepping through generator

2018-04-29 Thread Rick Teachey
Rick Teachey added the comment: Closed as duplicate of issue 13044. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9f3535c9cde8813ce631d6ebe4d790682f594828 by Serhiy Storchaka (Bo Bayles) in branch 'master': bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223) https://github.com/python/cpython/commit/9f3535c9cde8813ce631d6ebe4d79

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +6335 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +6336 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2018-04-29 Thread Mark Shannon
Mark Shannon added the comment: The six complex bytecodes currently used for implementing 'with' and 'try' statements can be replaced with just two simpler bytecodes. The six bytecodes are WITH_CLEANUP_START, WITH_CLEANUP_FINISH, BEGIN_FINALLY, END_FINALLY, CALL_FINALLY and POP_FINALLY. They ca

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2018-04-29 Thread Mark Shannon
Change by Mark Shannon : -- Removed message: https://bugs.python.org/msg315906 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2018-04-29 Thread Mark Shannon
New submission from Mark Shannon : The six complex bytecodes currently used for implementing 'with' and 'try' statements can be replaced with just two simpler bytecodes. The six bytecodes are WITH_CLEANUP_START, WITH_CLEANUP_FINISH, BEGIN_FINALLY, END_FINALLY, CALL_FINALLY and POP_FINALLY. They

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2018-04-29 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +6337 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33318] Move folding tuples of constants into compiler.c from peephole.c

2018-04-29 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +6338 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue33318] Move folding tuples of constants into compiler.c from peephole.c

2018-04-29 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: -6338 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33388] Support PEP 566 metadata in dist.py

2018-04-29 Thread Robert Bricheno
New submission from Robert Bricheno : PEP 566 added the metadata fields 'Description-Content-Type' and 'Provides-Extra': https://www.python.org/dev/peps/pep-0566/ http://setuptools.readthedocs.io/en/latest/setuptools.html#metadata Currently dist.py in CPython distutils will warn if they are se

[issue33386] IDLE: Double clicking only recognizes ascii chars as identifiers

2018-04-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: #21474 has the solution, which I plan to apply today. -- keywords: +pep3121 resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Idle: updata fixwordbreaks() for unicode identifiers title: Double clicking to select an ide

[issue33388] Support PEP 566 metadata in dist.py

2018-04-29 Thread Robert Bricheno
Change by Robert Bricheno : -- keywords: +patch pull_requests: +6339 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33012] Invalid function cast warnings with gcc 8 for METH_NOARGS

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 55edd0c185ad2d895b5d73e47d67049bc156b654 by Serhiy Storchaka (Siddhesh Poyarekar) in branch 'master': bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030) https://github.com/python/cpython/commit/55edd0c185ad2d89

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-04-29 Thread miss-islington
miss-islington added the comment: New changeset cebce2e8d15db101435194f79be31b5d80455bb0 by Miss Islington (bot) in branch '3.7': bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223) https://github.com/python/cpython/commit/cebce2e8d15db101435194f79be31b5d80455bb0

[issue33256] module is not displayed by cgitb.html

2018-04-29 Thread miss-islington
miss-islington added the comment: New changeset 736f17fb8d8b105567d56317f9c0b4c577ce4105 by Miss Islington (bot) in branch '3.7': bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442) https://github.com/python/cpython/commit/736f17fb8d8b105567d56317f9c0b4

[issue33256] module is not displayed by cgitb.html

2018-04-29 Thread miss-islington
miss-islington added the comment: New changeset ef91552cfb4b45f75b415dd43fb6a21795c8dbee by Miss Islington (bot) in branch '3.6': bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442) https://github.com/python/cpython/commit/ef91552cfb4b45f75b415dd43fb6a2

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-04-29 Thread miss-islington
miss-islington added the comment: New changeset 9a039d5679a5838c876ff607ce2f5d8dc0fb307a by Miss Islington (bot) in branch '3.6': bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223) https://github.com/python/cpython/commit/9a039d5679a5838c876ff607ce2f5d8dc0fb307a

[issue32608] Incompatibilities with the socketserver and multiprocessing packages

2018-04-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi Michael, sorry, I haven't had a chance yet. I'll try to make some time soon, I hope you don't mind the delay :-S -- ___ Python tracker ___

[issue33330] Better error handling in PyImport_Cleanup()

2018-04-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c1a6832f50b36ffec299e6e6038535904e2b158d by Serhiy Storchaka in branch 'master': bpo-0: Write exceptions occurred in PyImport_Cleanup() to stderr. (GH-6606) https://github.com/python/cpython/commit/c1a6832f50b36ffec299e6e6038535904e2b158d

[issue33374] generate-posix-vars failed when building Python 2.7.14 on Linux

2018-04-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 0b91f8a668201fc58fa732b8acc496caedfdbae0 by Benjamin Peterson (Florian Weimer) in branch '2.7': Indicate that _PyGC_Head is only 8-byte aligned. (closes bpo-33374) https://github.com/python/cpython/commit/0b91f8a668201fc58fa732b8acc496caedfdba

[issue33389] argparse redundant help string

2018-04-29 Thread Stefan Seefeld
New submission from Stefan Seefeld : I'm using Python's `argparse` module to define optional arguments. I'm calling the `argparse.add_argument` method to add both short and long arguments, but I notice that the generated help message lists some information twice. For example: ``` argparse.add_a

[issue33390] matmul @ operator precedence

2018-04-29 Thread fabrice salvaire
New submission from fabrice salvaire : I use the new matmul @ operator to implement units, for example 1@u_s for 1 second ( see alpha state implementation at https://github.com/FabriceSalvaire/PySpice/tree/master/PySpice/Unit ). It looks cool, but unfortunately 10@u_s / 2@u_s is actually inter

[issue32533] SSLSocket read/write thread-unsafety

2018-04-29 Thread Alfred Krohmer
Alfred Krohmer added the comment: Is there anything on the roadmap to fix this? This is a pretty severe bug given that this breaks multi-threaded OpenSSL while the documentation says it's thread-safe. -- nosy: +devkid ___ Python tracker

[issue21474] Idle: updata fixwordbreaks() for unicode identifiers

2018-04-29 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +6341 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-04-29 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue33378] Add Korean to the language switcher

2018-04-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +6342 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33351] Support compiling with clang-cl on Windows

2018-04-29 Thread Steve Dower
Steve Dower added the comment: Feel free to start creating patches so we can get an idea of what the changes would look like. Hopefully it's not that dramatic. Be very careful making performance claims without benchmarks to back it up, and ideally against multiple sets of hardware (MSVC is de

[issue32533] SSLSocket read/write thread-unsafety

2018-04-29 Thread Steve Dower
Steve Dower added the comment: We don't have a roadmap, just volunteers. When someone is sufficiently motivated to work on it, it will happen. (You're welcome to try and motivate people with reason, pleading, money and/or abuse, though I don't recommend the last one :) Money doesn't work eith

[issue33390] matmul @ operator precedence

2018-04-29 Thread Eric V. Smith
Eric V. Smith added the comment: Operator precedence cannot change without breaking existing code. -- nosy: +eric.smith type: behavior -> enhancement versions: +Python 3.8 -Python 3.5 ___ Python tracker _

[issue32362] multiprocessing.connection.Connection misdocumented as multiprocessing.Connection

2018-04-29 Thread bbayles
Change by bbayles : -- pull_requests: +6343 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue33390] matmul @ operator precedence

2018-04-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: Precedence issues when dealing with units is unavoidable, I think. The units program on Linux/Unix has similar issues, and they write their own parser and choose their own precedence. https://www.gnu.org/software/units/manual/html_node/Operators.html As Eri

[issue33351] Support compiling with clang-cl on Windows

2018-04-29 Thread Ethan Smith
Ethan Smith added the comment: > Feel free to start creating patches so we can get an idea of what the changes > would look like. Hopefully it's not that dramatic. Okay, will do. I have a few smaller patches to start with. Clang-cl tries to be as compatible as possible with cl, so I don't ex

[issue33385] setdefault() with a single argument doesn't work for dbm.gdbm and dmb.ndbm objects

2018-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Option 2 seems perfectly reasonable here as a way of preventing bugs (working, correct code wouldn't be using the existing default of None). Option 1 is problematic because of the variance from Mutable Mapping, because breaking symmetry with get(), and bec

[issue33380] Update module attribute on namedtuple methods for introspection.

2018-04-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am not sure I can see any value in pushing the __module__ attribute down into the methods and think it is reasonable for them to report their origin as being in the collections module. -- ___ Python tracker

[issue33380] Update module attribute on namedtuple methods for introspection.

2018-04-29 Thread pmpp
pmpp added the comment: I see that as a good fix, obviously Point definition belongs to __main__ in the sample, like would any other subclass defined there eg if "some" class is defined in awe.py module : >>> import awe >>> class my(awe.some):pass ... >>> my.__module__ '__main__' --