[issue36359] contextvars documentation unclear on thread-locality

2019-03-19 Thread Hameer Abbasi
New submission from Hameer Abbasi : The documentation here: https://docs.python.org/3/library/contextvars.html does not mention anything about context-variables being thread-local or not. It should definitely make that more clear. I was told by Freenode user njs (I strongly suspect its Nathan

[issue36085] Enable better DLL resolution

2019-03-19 Thread Ralf Gommers
Change by Ralf Gommers : -- nosy: +ralf.gommers ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue36358] bool type does not support True or False as command line argv

2019-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this is expected. bool('False') is True. You can write your own converter which returns True for 'True', False for 'False' and raise an exception otherwise. But it is more common to add a pair of options without arguments --foo/--no-foo, or --with-fo

[issue36309] Remove tempfile.mktemp()

2019-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Taking to the account the widespread use of mktemp(), I think it needs more than one release for deprecation. This should be discussed on the Python-Dev mailing list first. -- nosy: +serhiy.storchaka ___ Python

[issue36344] install_certificates.command too complicated, copy from pip's dir instead

2019-03-19 Thread Dmitrii Pasechnik
Dmitrii Pasechnik added the comment: The script install_certificates.command depends upon pip, it calls pip to install certifi. Thus it's no less "optional" than pip. And pip is only functional, and it able to do the installation in question, due to it including the certificate in question.

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: just for me, btharper, which system do you use? because I have a fedora 29 and when I try to compile with these flags, getaddrinfo is not found. -- nosy: +matrixise ___ Python tracker

[issue34160] ElementTree not preserving attribute order

2019-03-19 Thread Julien Palard
Julien Palard added the comment: > Actually, it is really easy to fix By answering this, it looks like you're currently going this way, and obviously you'll succeed fixing docutils, this still mean voluntarily leaving some (or many?) other code broken (open source and closed source), how tha

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-19 Thread Inada Naoki
Inada Naoki added the comment: New changeset 09e5877cb1191fe09af7a2139780d377bdf19092 by Inada Naoki in branch '3.7': bpo-36307: Travis: upgrade to Xenial environment (GH-12356) https://github.com/python/cpython/commit/09e5877cb1191fe09af7a2139780d377bdf19092 -- ___

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok, found I have to disable ipv6 and install libasan ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi ===

[issue36343] Certificate added to Win Store not available

2019-03-19 Thread Christian Herdtweck
Christian Herdtweck added the comment: A colleage motivated me to add some example data. Attached you will find a small sample program listing the certificates and trying to connect to my machine. Output of the program: Text "fake" nowhere to be found :-( Traceback (most recent call last):

[issue36346] Prepare for removing the legacy Unicode C API

2019-03-19 Thread Inada Naoki
Inada Naoki added the comment: I'm not sure we need two options. Does USE_UNICODE_WCHAR_CACHE=0 really helps preparing to the removal? -- ___ Python tracker ___ __

[issue36343] Certificate added to Win Store not available

2019-03-19 Thread Christian Herdtweck
Christian Herdtweck added the comment: Certificates (fake CA and the signed certificate) as well as 2 screenshots from the import process -- Added file: https://bugs.python.org/file48220/python-cert-problem.zip ___ Python tracker

[issue36360] undef HAVE_STROPTS_H in pyconfig.h.in is ignored

2019-03-19 Thread Shady Atef
New submission from Shady Atef : I have `#undef HAVE_STROPTS_H` inside pyconfig.h.in, but after configuration it's commented out in pyconfig.h. Leading into compilation error as stropts.h is not found. It seems like the configuration phase ignores the #undef directive for a reason. These are

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-19 Thread Inada Naoki
Inada Naoki added the comment: New changeset 0f68d4af3b9410821ee67cbb5a445b341d5c82e4 by Inada Naoki in branch '2.7': bpo-36307: Travis: upgrade to Xenial environment (GH-12356) https://github.com/python/cpython/commit/0f68d4af3b9410821ee67cbb5a445b341d5c82e4 -- ___

[issue36307] Upgrade Travis CI config to Xenial from near-EoL Trusty and remove obsolete sudo: false key

2019-03-19 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue31904] Python should support VxWorks RTOS

2019-03-19 Thread Hongchang Liu
Change by Hongchang Liu : -- pull_requests: +12382 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36361] generate correct pyconfig.h when cross-compiling

2019-03-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : 'configure' cache values are set to pessimistic defaults when cross-compiling. One of the most significant, ac_cv_computed_gotos, is set to 'no' in that case. When ac_cv_computed_gotos is set to 'yes' on platforms that support it, it brings a 15-20 % gain

[issue36360] undef HAVE_STROPTS_H in pyconfig.h.in is ignored

2019-03-19 Thread Shady Atef
Shady Atef added the comment: I've found out that I run ./configure on different machine than the one I run compile. A side note: make clean don't remove files generated by the configuration script. make distclean does the required cleaning task. -- resolution: -> not a bug stage:

[issue36361] generate correct pyconfig.h when cross-compiling

2019-03-19 Thread Xavier de Gaye
Change by Xavier de Gaye : -- keywords: +patch pull_requests: +12383 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue36362] Detected unused variables with --with-address-sanitizer

2019-03-19 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : I am going to publish my PR. -- components: Interpreter Core messages: 338337 nosy: matrixise priority: normal severity: normal status: open title: Detected unused variables with --with-address-sanitizer versions: Python 3.8

[issue36362] Detected unused variables in import.c and HAVE_DYNAMIC_LOADING=False with --with-address-sanitizer

2019-03-19 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- title: Detected unused variables with --with-address-sanitizer -> Detected unused variables in import.c and HAVE_DYNAMIC_LOADING=False with --with-address-sanitizer ___ Python tracker

[issue36362] Detected unused variables with --with-address-sanitizer

2019-03-19 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12384 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: your PR seems to be fine. but I continue to get two refleaks with valgrind but don't worry, @vstinner is working on these refleaks. ==5440== 64 bytes in 1 blocks are possibly lost in loss record 1 of 2 ==5440==at 0x483880B: malloc (vg_replace_malloc.c:30

[issue18368] PyOS_StdioReadline() leaks memory when realloc() fails

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset d9c6564f90ead067c2e288f01825684821b7a129 by Victor Stinner (stratakis) in branch '2.7': [2.7] bpo-18368: Fix memory leaks in PyOS_StdioReadline() when realloc() fails (GH-12334) https://github.com/python/cpython/commit/d9c6564f90ead067c2e288f01

[issue36346] Prepare for removing the legacy Unicode C API

2019-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I wrote this PR just to see how much code should be changed after removing the wchar_t cache, and what be performance impact. Get it, experiment with it, run tests and benchmarks. I think we could set USE_UNICODE_WCHAR_CACHE to 0 by default. If this will c

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset e130a07eb20c4b655d182d5d10d778c7584efe55 by Victor Stinner (btharper) in branch 'master': bpo-36356: Fix memory leak in _PyPreConfig_Read() (GH-12425) https://github.com/python/cpython/commit/e130a07eb20c4b655d182d5d10d778c7584efe55 --

[issue36333] memory leaks detected with valgrind for python -V

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 943395fab925a11ea90d078e771cdfc4443e8c34 by Victor Stinner (Stéphane Wirtel) in branch 'master': bpo-36333: Fix leak _PyRuntimeState_Fini (GH-12400) https://github.com/python/cpython/commit/943395fab925a11ea90d078e771cdfc4443e8c34 -- _

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12385 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36333] memory leaks detected with valgrind for python -V

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12386 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12387 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31199] configure checks fail confusingly under --with-address-sanitizer if libasan is missing

2019-03-19 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12388 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36346] Prepare for removing the legacy Unicode C API

2019-03-19 Thread Inada Naoki
Inada Naoki added the comment: FYI, I had created PR 12340 which removes use of deprecated API in ctypes. -- ___ Python tracker ___ ___

[issue36346] Prepare for removing the legacy Unicode C API

2019-03-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: One thing to keep in mind: HAVE_UNICODE_WCHAR_CACHE == 1 and HAVE_UNICODE_WCHAR_CACHE == 0 have a different ABI due to a different struct layout. This should probably affect the ABI tag for extension modules. -- nosy: +ronaldoussoren __

[issue12771] 2to3 -d adds extra whitespace

2019-03-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: PS2 = "... " is defined with a trailing space which is not stripped for empty lines with only PS2 in the doctest. A patch would be to strip the trailing space in PS2 for empty lines and a unittest would be as below. There are no test cases for this

[issue13668] mute ImportError in __del__ of _threading_local module

2019-03-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: As noted in msg221878 the import statement was removed and the original report is not reproducible in latest 2.7. Marking this as out of date. Thanks for the details. -- nosy: +xtreak resolution: -> out of date stage: -> resolved status:

[issue29717] `loop.add_reader` and `<

2019-03-19 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +asvetlov -gvanrossum versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-l

[issue31199] configure checks fail confusingly under --with-address-sanitizer if libasan is missing

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Paulo, Could you try with the associated PR (12433)? Thank you, -- nosy: +matrixise, twouters ___ Python tracker ___ ___

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-19 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12389 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list maili

[issue36309] Remove tempfile.mktemp()

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @Serhiy I have posted on the Python-dev mailing list. https://mail.python.org/pipermail/python-dev/2019-March/156721.html -- nosy: +matrixise ___ Python tracker __

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-19 Thread Inada Naoki
Inada Naoki added the comment: New changeset 29198ea1c6d58f87389136b0ac0b8b2318dbac24 by Inada Naoki in branch 'master': bpo-8677: use PY_SSIZE_T_CLEAN in sqlite (GH-12434) https://github.com/python/cpython/commit/29198ea1c6d58f87389136b0ac0b8b2318dbac24 -- nosy: +inada.naoki _

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-19 Thread Inada Naoki
Inada Naoki added the comment: Modules/_gdbmmodule.c Modules/socketmodule.c They use '#' without PY_SSIZE_T_CLEAN yet. -- versions: +Python 3.8 -Python 3.2 ___ Python tracker

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset fecc4f2b474f16062514e95a67e66080fd626e14 by Victor Stinner in branch 'master': bpo-36356: Release Unicode interned strings on Valgrind (#12431) https://github.com/python/cpython/commit/fecc4f2b474f16062514e95a67e66080fd626e14 -- _

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset a712679a2befaacdc05f788d6ea50f72a561 by Victor Stinner in branch 'master': bpo-36333, bpo-36356: Fix _PyEval_FiniThreads() (GH-12432) https://github.com/python/cpython/commit/a712679a2befaacdc05f788d6ea50f72a561 -- ___

[issue36333] memory leaks detected with valgrind for python -V

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset a712679a2befaacdc05f788d6ea50f72a561 by Victor Stinner in branch 'master': bpo-36333, bpo-36356: Fix _PyEval_FiniThreads() (GH-12432) https://github.com/python/cpython/commit/a712679a2befaacdc05f788d6ea50f72a561 -- ___

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12390 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36363] Wrong type when missname dataclass attribute with existing variable name

2019-03-19 Thread Bastien Sevajol
New submission from Bastien Sevajol : Hello, For following code: ``` import dataclasses import typing from datetime import datetime @dataclasses.dataclass class Foo: datetime: typing.Optional[datetime] = None print(dataclasses.fields(Foo)[0].type) ``` `datetime` `Foo` attribute have `

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also PC/winreg.c. In this case winreg.SetValue() needs a length of size DWORD instead of ssize_t. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to emit a deprecation warning, maybe at runtime, when PY_SSIZE_T_CLEAN is not defined? -- ___ Python tracker ___ ___

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12391 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36309] Remove tempfile.mktemp()

2019-03-19 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12392 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36363] Wrong type when missname dataclass attribute with existing variable name

2019-03-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset f5f336a819a3d881bb217bf8f9b5cacba03a4e45 by Victor Stinner in branch 'master': bpo-36356: pymain_free() calls _PyRuntime_Finalize() (GH-12435) https://github.com/python/cpython/commit/f5f336a819a3d881bb217bf8f9b5cacba03a4e45 -- __

[issue36357] Build 32bit Python on Windows with SSE2 instruction set

2019-03-19 Thread Ma Lin
Change by Ma Lin : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 935250d6f3ac7ba91e1ea8e6ca63aaf7f605e291 by Victor Stinner in branch '3.7': bpo-36356: pymain_free() calls _PyRuntime_Finalize() (GH-12436) https://github.com/python/cpython/commit/935250d6f3ac7ba91e1ea8e6ca63aaf7f605e291 -- _

[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2019-03-19 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +12393 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2019-03-19 Thread Ma Lin
Change by Ma Lin : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2019-03-19 Thread Ma Lin
Ma Lin added the comment: It seems SSE2 can be re-enabled for 3.8 branch. > Starting with the March 2018 Windows 7 updates, > security patches will only install on SSE2 or higher > computing devices. This change only affects a small # > of users on 15-20 year old legacy PCs. https://blogs.msm

[issue36364] errors in multiprocessing.shared_memory examples

2019-03-19 Thread Pierre Glaser
New submission from Pierre Glaser : The examples of the new shared_memory module using SharedMemoryManager try to import the class from multiprocessing.shared_memory instead of multiprocessing.managers, making them fail. -- assignee: docs@python components: Documentation files: 0001-D

[issue36364] errors in multiprocessing.shared_memory examples

2019-03-19 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +12394 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36365] Objects/structseq.c: warning: 'strncpy' specified bound depends on the length of the source argument

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12395 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36363] Wrong type when missname dataclass attribute with existing variable name

2019-03-19 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36364] errors in multiprocessing.shared_memory examples

2019-03-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36365] Objects/structseq.c: warning: 'strncpy' specified bound depends on the length of the source argument

2019-03-19 Thread STINNER Victor
New submission from STINNER Victor : Warning seen on Fedora 29 with GCC 8.3.1 20190223 (Red Hat 8.3.1-2): Objects/structseq.c: In function 'structseq_repr': Objects/structseq.c:187:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] st

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset dcf617152e1d4c4a5e7965733928858a9c0936ca by Victor Stinner in branch 'master': bpo-36236: Handle removed cwd at Python init (GH-12424) https://github.com/python/cpython/commit/dcf617152e1d4c4a5e7965733928858a9c0936ca -- __

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: Can someone please on macOS to confirm that the bug is fixed? -- ___ Python tracker ___ ___ Pytho

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: At least, "./python -V" no longer leaks at commit dcf617152e1d4c4a5e7965733928858a9c0936ca. $ ./configure --with-valgrind $ make $ valgrind ./python -V ==9553== Memcheck, a memory error detector ==9553== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Sewar

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12396 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36236] Python crash on macOS when CWD is invalid

2019-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It seems to work: ❯ uname -a Darwin C02VL073HTDG 18.2.0 Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64 x86_64 ❯ pwd /tmp/check /tmp/check ❯ rm -rf ../check /tmp/check ❯ ~/github/cpython/python.exe -m

[issue36347] Add the constant READWRITE for PyMemberDef

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @Serhiy I have updated my branch with your recommendation. 1. rename READONLY, etc... to PY_READONLY. Why the PY_ prefix, because there was a renaming for WRITE_RESTRICTED to PY_WRITE_RESTRICTED. in that case, I wanted to keep the same change. 2. Updated t

[issue36347] Renaming the constants for the .flags of PyMemberDef

2019-03-19 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- title: Add the constant READWRITE for PyMemberDef -> Renaming the constants for the .flags of PyMemberDef ___ Python tracker ___

[issue36363] Wrong type when missname dataclass attribute with existing variable name

2019-03-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I am not sure this is a problem with dataclasses. dataclasses acts upon information from cls.__dict__.get('__annotations__', {}) at [0] and sets the type attribute for the field. Seems like using a valid identifier (class or function) used as class

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-19 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: On my system with openssl 1.1.1b, by reducing the PAYLOAD_SIZE the test passes successfully. It starts failing when it's bigger than 1024 * 95 -- ___ Python tracker ___

[issue36308] Fix warning in _PyPathConfig_ComputeArgv0

2019-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This issue is already been handled in https://github.com/python/cpython/pull/12441 -- nosy: +pablogsal ___ Python tracker ___ ___

[issue36308] Fix warning in _PyPathConfig_ComputeArgv0

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Yep, Victor has started the refactoring/cleaning after my PR, but I close this one and the issue. -- stage: -> resolved status: open -> closed ___ Python tracker _

[issue36366] Patcher stop method should be idempotent

2019-03-19 Thread Samuel Freilich
New submission from Samuel Freilich : Currently, it's an error to call the stop() method of a patcher object created by mock.patch repeatedly: >>> patch = mock.patch.object(Foo, 'BAR', 'x') >>> patch.start() 'x' >>> patch.stop() >>> patch.stop() RuntimeError: stop called on unstarted patcher

[issue36366] Patcher stop method should be idempotent

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @Samuel, 1. What's the version of Python? 2. Could you provide a script with an example? Thank you -- nosy: +matrixise ___ Python tracker _

[issue35866] concurrent.futures deadlock

2019-03-19 Thread cagney
Change by cagney : -- nosy: +cagney ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue36366] Patcher stop method should be idempotent

2019-03-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, mariocj89, michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36308] Fix warning in _PyPathConfig_ComputeArgv0

2019-03-19 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: That was funny to use gdb and valgrind for the debugging session. Now I can help you for the refleaks ;-) -- ___ Python tracker ___

[issue35809] test_concurrent_futures.ProcessPoolForkExecutorDeadlockTest fails intermittently on Travis and passes in verbose mode

2019-03-19 Thread cagney
Change by cagney : -- nosy: +cagney ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue36308] Fix warning in _PyPathConfig_ComputeArgv0

2019-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the time detecting this, opening this issue and the PR (and all the others), Stéphane! :) -- ___ Python tracker ___ ___

[issue35866] concurrent.futures deadlock

2019-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This seem related to https://bugs.python.org/issue35809 -- nosy: +pablogsal ___ Python tracker ___ ___

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : In tokenizer.c we have those lines of code [0]: if (final_length < needed_length && final_length) /* should never fail */ buf = PyMem_REALLOC(buf, final_length); return buf; If however that realloc fails, the memory allocated initially for bu

[issue35866] concurrent.futures deadlock

2019-03-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Could you use gdb/lldb to attach to the process hanging and give us a stack trace? -- ___ Python tracker ___

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12397 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36366] Patcher stop method should be idempotent

2019-03-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: When mock.patch is creates a patch object and patch.start calls __enter__ that sets is_local. On stop __exit__ is called where a check is done is to make sure is_local attribute is present and then cleanup is done along with deleting calling del se

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread Ben Harper
Ben Harper added the comment: I'm on Ubuntu 18.10/amd64 compiling with Ubuntu's GCC 8.2.0, I know there's some libraries that are missing dependencies (including bz2 and sqlite) so I may have missed the ipv6 dependencies as well. My eventual goal was to be able to build a pgo optimized build

[issue36368] server process of shared_memory shuts down if KeyboardInterrupt

2019-03-19 Thread Pierre Glaser
New submission from Pierre Glaser : When starting a SharedMemoryManager in an interactive session, any KeyboardInterrupt event will be transmitted to the (sub)process running the shared memory server, which causes the Manager to be unusable thereafter: >>> from multiprocessing.managers import

[issue36263] test_hashlib.test_scrypt() fails on Fedora 29

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: Update: my OpenSSL PR https://github.com/openssl/openssl/pull/8483 has been merged and new a new OpenSSL package for Fedora is being tested: https://bugzilla.redhat.com/show_bug.cgi?id=1688284 -- ___ Python tracke

[issue36215] Should AppVeyor run compile Python in debug mode?

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: > Doubling CI time would be painful. How often are buildbot failure due to the > build or test-arg differences, as opposed to system differences? Yeah, you're right. Such issue is really rare, so I'm ok to leave the pre-commit CI as it is ;-) -- re

[issue35752] test_buffer fails on ppc64le: memoryview pack_single() is miscompiled

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: The root issue was a bug in GCC which has been fixed. Fedora Rawhide got the new fixed GCC and so I close the issue. -- resolution: -> third party stage: patch review -> resolved status: open -> closed ___ Python

[issue36348] test_imaplib.RemoteIMAP_STARTTLSTest.test_logout() fails randomly

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-35462. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35462] test_imaplib.test_enable_UTF8_True_append() failed on AMD64 FreeBSD 10-STABLE Non-Debug 3.7

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-36348. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35388] _PyRuntime_Initialize() called after Py_Finalize() does nothing

2019-03-19 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12398 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue35388] _PyRuntime_Initialize() called after Py_Finalize() does nothing

2019-03-19 Thread STINNER Victor
STINNER Victor added the comment: PR 12443 fix the issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36363] Wrong type when missname dataclass attribute with existing variable name

2019-03-19 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: class Spam: bar: typing.Optional[bar] = str class Spaz: bar: typing.Optional[bar] = None print(Spam.__annotations__) print(Spaz.__annotations__) {'bar': typing.Union[str, NoneType]} {'bar': } In Spam bar has str assigned to it and seems li

[issue34160] ElementTree not preserving attribute order

2019-03-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > how that's acceptable? For docutils, we'll most likely propose some variant of Stéphane Wirtel's script to test semantic equivalence for docutils. For other cases, Serhiy is working on a C14N canonicalization tool which is specifically designed for the

[issue36363] Wrong type when missname dataclass attribute with existing variable name

2019-03-19 Thread Guido van Rossum
Guido van Rossum added the comment: A simpler example shows it has nothing to do with annotations -- it is simply behavior of the typing module. >>> import typing >>> typing.Optional[str] typing.Union[str, NoneType] >>> typing.Optional[None] >>> I don't think there's a bug here, and I am c

[issue36356] Failure to build with address sanitizer

2019-03-19 Thread Ben Harper
Change by Ben Harper : -- pull_requests: +12399 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue36369] test_weakref super slow on RPi Zero

2019-03-19 Thread Thomas Knox
New submission from Thomas Knox : When building Python 3.7.2 on a Raspberry Pi Zero W, it takes over 6 hours to run test_weakref, and almost 15 hours total to run through all the tests. 14:28:14 load avg: 1.00 [396/416] test_weakset -- test_weakref passed in 6 hour 24 min Does it really need

  1   2   >