[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

[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

[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 ___

[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

[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

[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 ___

[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

[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

[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:

[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

[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 ___ ___

[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 --

[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=]

[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:

[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:

[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 ___ ___

[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

[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:

[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.

[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:

[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:

[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 --

[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

[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 --

[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:

[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 ___ ___

[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:

[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 ___

[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

[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

[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:

[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
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
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 --

[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

[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

[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
Change by Inada Naoki : -- pull_requests: +12389 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[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 ___

[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 ___ ___

[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:

[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

[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

[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 ___

[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 ___ ___

[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:

[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:

[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:

[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
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

[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

[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)

[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

[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 ___ ___

[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
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

[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 ___ ___

[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
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 %

[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:

[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 ___ ___

[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 --

[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

[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

[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: 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):

[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

[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 --

[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

[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

[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

[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

[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

[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:

[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

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

2019-03-19 Thread Abhinav Gupta
New submission from Abhinav Gupta : If I have a type=bool argument in argparser and I provide the value for it using command-line, it always evaluates to True. Is this expected? Is there no alternative to using '' for False and any other string for True? -- components: Library (Lib)

[issue35859] Capture behavior depends on the order of an alternation

2019-03-19 Thread Ma Lin
Ma Lin added the comment: I guess PR12427 is mature enough for review, I have been working on it these days. You may review these commits one by one, commit message is review guide. https://github.com/python/cpython/pull/12427/commits Maybe you will need two or three days to understand it,

[issue35859] Capture behavior depends on the order of an alternation

2019-03-19 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +12381 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2