[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2019-12-02 Thread Micky Yun Chan
Micky Yun Chan added the comment: Hi I created a new pull request on Github -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2019-12-02 Thread Micky Yun Chan
Change by Micky Yun Chan : -- keywords: +patch pull_requests: +16928 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17447 ___ Python tracker ___

[issue38959] Parboil -- OpenMP CUTCP performance regression when upgrade from python 2.7.15 to 2.7.17

2019-12-02 Thread Jiebin
Change by Jiebin : Added file: https://bugs.python.org/file48752/test-definition.xml ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38959] Parboil -- OpenMP CUTCP performance regression when upgrade from python 2.7.15 to 2.7.17

2019-12-02 Thread Jiebin
Change by Jiebin : Added file: https://bugs.python.org/file48751/downloads.xml ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38959] Parboil -- OpenMP CUTCP performance regression when upgrade from python 2.7.15 to 2.7.17

2019-12-02 Thread Jiebin
Jiebin added the comment: In Clear Linux, You can produce by the following steps. 1, sudo swupd bundle-add os-testsuite-phoronix 2, phoronix-test-suite run parboil-1.2.1 3, select the option OpenMP CUTCP Or download it from the source code. Refer the file attached. -- Added file:

[issue38959] Parboil -- OpenMP CUTCP performance regression when upgrade from python 2.7.15 to 2.7.17

2019-12-02 Thread Jiebin
New submission from Jiebin : When we replace the rpm package from 2.7.15 to 2.7.17. The benchmark Parboil -- OpenMP CUTCP shows regression. Steps to reproduce the regression. You can reproduce the issue by phoronix test suite or run it from the source code. Benchmarks indicators

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2019-12-02 Thread Micky Yun Chan
Micky Yun Chan added the comment: Hi, if it's possible can I take this issue? -- nosy: +Micky Yun Chan ___ Python tracker ___ ___

[issue38950] argparse uses "optional arguments" for "keyword arguments"

2019-12-02 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38950] argparse uses "optional arguments" for "keyword arguments"

2019-12-02 Thread paul j3
paul j3 added the comment: This related to an old issue https://bugs.python.org/issue9694 argparse required arguments displayed under "optional arguments" argparse defines two initial argument groups, titled 'positional arguments' and 'optional arguments'. Alternatives have been

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2019-12-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-12-02 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +16927 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/17446 ___ Python tracker ___

[issue38957] Cannot compile with libffi from source on Windows

2019-12-02 Thread Ashley Whetter
Ashley Whetter added the comment: Ah you're right. I was trying to install in the same way as previous versions. I didn't realise that calling prepare_*.bat was a separate step now. Sorry about that. -- stage: -> resolved status: open -> closed

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +16926 pull_request: https://github.com/python/cpython/pull/17445 ___ Python tracker ___

[issue38270] Tests: Avoid MD5 or check for MD5 availablity

2019-12-02 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38941] xml.etree.ElementTree.Element inconsistent warning for bool

2019-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: I doubt effbot will respond. :-) I think the first order of business is to add the same FutureWarning to the C version of the code, and to reset the clock on the deprecation. In terms of the final stages, why wouldn't we want it to just always raise?

[issue38957] Cannot compile with libffi from source on Windows

2019-12-02 Thread Steve Dower
Steve Dower added the comment: The intent is that you'd build from source and then copy the binaries into the libffi directory (the *real* intent is that very few people should have to build libffi from source). Can you tell us a bit more about what you were trying to achieve when you ran

[issue38958] asyncio REPL swallows KeyboardInterrupt while editing

2019-12-02 Thread Io Mintz
New submission from Io Mintz : "python3 -m asyncio" swallows KeyboardInterrupt while editing a line. Problem steps: == - run python -m asyncio - press ^C Expected behavior (normal CPython REPL, as well as python -m code):

[issue38941] xml.etree.ElementTree.Element inconsistent warning for bool

2019-12-02 Thread Philip Rowlands
Philip Rowlands added the comment: I went digging through the archives, made more interesting as elementtree was imported into the standard library. AFAICT, the FutureWarning for __bool__ (or __nonzero__ in py2) appeared circa 2007-06 in version 1.3a2:

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 2.7, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue38957] Cannot compile with libffi from source on Windows

2019-12-02 Thread Ashley Whetter
New submission from Ashley Whetter : get_externals.bat downloads and extracts libffi to a versioned directory (much like the other external libraries). See https://github.com/python/cpython/blob/v3.8.0/PCbuild/get_externals.bat#L55 However the binary release is downloaded to an unversioned

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: (Now waiting for 2.7 backport by stealthcopter.) -- ___ Python tracker ___ ___

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread Ned Deily
Ned Deily added the comment: New changeset 30afc91f5e70cf4748ffac77a419ba69ebca6f6a by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (GH-17418) (GH-17444)

[issue38956] argparse.BooleanOptionalAction should not add the default value to the help string by default

2019-12-02 Thread Antony Lee
New submission from Antony Lee : https://bugs.python.org/issue8538 recently added to Py3.9 a much welcome addition to argparse, namely the capability to generate --foo/--no-foo flag pairs. A small issue with the implementation is that it *always* appends the default value to the help string

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread miss-islington
miss-islington added the comment: New changeset 8859fc629474ab1ca7eb2e67aec538097c327e58 by Miss Islington (bot) in branch '3.8': bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (GH-17418)

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread miss-islington
miss-islington added the comment: New changeset 87f2d261ee1c63ed39517355833d087c5a78b4bf by Miss Islington (bot) in branch '3.7': bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (GH-17418)

[issue1875] "if 0: return" not raising SyntaxError

2019-12-02 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +16924 pull_request: https://github.com/python/cpython/pull/17443 ___ Python tracker ___

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +16925 pull_request: https://github.com/python/cpython/pull/17444 ___ Python tracker ___

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +16923 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17442 ___ Python tracker ___

[issue38945] Remove newline characters from uu encoding methods

2019-12-02 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset a62ad4730c9b575f140f24074656c0257c86a09a by Guido van Rossum (Matthew Rollings) in branch 'master': bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (#17418)

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2019-12-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > @pablogsal should we add Lib/test/test_grammar by default to every test? Also > if this is still needed @Daniel.Cioata do you still want to prepare another > patch for current version? I think is a good idea, let me check how complete is the

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2019-12-02 Thread Vinay Sajip
Vinay Sajip added the comment: > You can't. Tools like `pipenv shell` and `conda shell` end up with a new > shell running instead of changing the current shell in-place. Indeed. I raised it because of what you said earlier: > and so maybe proposing a simple `venv --activate ` that does

[issue36470] dataclasses.replace raises an exception if InitVar with default argument is not provided.

2019-12-02 Thread PCManticore
Change by PCManticore : -- keywords: +patch pull_requests: +16922 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17441 ___ Python tracker ___

[issue38920] Audit events for unhandled exceptions

2019-12-02 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38955] Non indemnpotent behavior of asyncio.get_event_loop and asyncio.run sequence.

2019-12-02 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : Hi, Not sure if this a bug, or an intended feature. I got surprise by the following behavior. from asyncio import run, sleep, get_event_loop print(get_event_loop()) # return the current eventloop run(sleep(0))

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2019-12-02 Thread Batuhan
Batuhan added the comment: @pablogsal should we add Lib/test/test_grammar by default to every test? Also if this is still needed @Daniel.Cioata do you still want to prepare another patch for current version? -- nosy: +BTaskaya, pablogsal ___

[issue31842] pathlib: "Incorrect function" during resolve()

2019-12-02 Thread Eryk Sun
Eryk Sun added the comment: > When strict is "false", pathlib should not fail if the network > share is inaccessible. A redirected filesystem (i.e. a share, whether local or remote) that's physically inaccessible should fail with a FileNotFoundError -- due to underlying errors such as

[issue38924] pathlib paths .normalize()

2019-12-02 Thread Ionuț Ciocîrlan
Ionuț Ciocîrlan added the comment: Brett and Serhiy, you do realise there are no symlinks to resolve on PurePaths, right? > os.path.normpath() is broken by design. Why don't you deprecate it then? Sounds like the reasonable thing to do, no? So many innocent souls endangered by this evil

[issue38948] os.path.ismount() returns False for current working drive

2019-12-02 Thread Steve Dower
Steve Dower added the comment: ntpath.ismount() is using a name-only check here, it never tries to resolve the path if splitdrive() returns (anything, one_of("", "/", "\\")) Now it's not clear whether handling "" is intended there, but that's certainly the difference (Python 2 required

[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2019-12-02 Thread Steve Dower
Steve Dower added the comment: Traditionally we handle exceptions in os.path.is* functions and return False. -- keywords: +easy, newcomer friendly stage: -> test needed type: -> behavior versions: +Python 3.8, Python 3.9 ___ Python tracker

[issue38924] pathlib paths .normalize()

2019-12-02 Thread Brett Cannon
Brett Cannon added the comment: I'm going with Serhiy's recommendation and closing this. Sorry, Ionuț. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2019-12-02 Thread Brett Cannon
Brett Cannon added the comment: > If venv is run in a child process of the shell, how does it set those > variables in the parent shell? You can't. Tools like `pipenv shell` and `conda shell` end up with a new shell running instead of changing the current shell in-place. --

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: All Fedora tests are successful, so I will de-escalate the priority of the issue. Thank you very much Christian and Tomas Orsava! -- priority: critical -> normal ___ Python tracker

[issue22640] Add silent mode for py_compile

2019-12-02 Thread Gregory Shevchenko
Change by Gregory Shevchenko : -- pull_requests: +16921 pull_request: https://github.com/python/cpython/pull/17134 ___ Python tracker ___

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread miss-islington
miss-islington added the comment: New changeset 1f4f28cbf3ca4c7f85b41b1f7b9455a375415cc0 by Miss Islington (bot) in branch '3.7': bpo-38815: Accept TLSv3 default in min max test (GH-) (GH-17437) https://github.com/python/cpython/commit/1f4f28cbf3ca4c7f85b41b1f7b9455a375415cc0

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread miss-islington
miss-islington added the comment: New changeset 9e728806d03fff8fa9e75159e567b2b4e040971b by Miss Islington (bot) in branch '3.8': bpo-38815: Accept TLSv3 default in min max test (GH-) (GH-17437) https://github.com/python/cpython/commit/9e728806d03fff8fa9e75159e567b2b4e040971b

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Testing for the latest PR happening here: https://buildbot.python.org/all/#/builders?tags=%2Bstable=%2Bcustom -- ___ Python tracker

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +16920 pull_request: https://github.com/python/cpython/pull/17439 ___ Python tracker ___

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread miss-islington
Change by miss-islington : -- pull_requests: +16919 pull_request: https://github.com/python/cpython/pull/17438 ___ Python tracker ___

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread miss-islington
miss-islington added the comment: New changeset 34864d1cffdbfc620f8517dab9a68ae9a37b8c53 by Miss Islington (bot) (torsava) in branch 'master': bpo-38815: Accept TLSv3 default in min max test (GH-) (GH-17437)

[issue38952] asyncio cannot handle Python3 IPv4Address

2019-12-02 Thread Max Coplan
Max Coplan added the comment: Well I’ve submitted a fix for it. It isn’t perfect. Well, while it doesn’t look perfect, it actually worked with everything I’ve thrown at it, and seems to be a very robust and sufficient fix. -- ___ Python tracker

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread Tomas Orsava
Change by Tomas Orsava : -- keywords: +patch pull_requests: +16917 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17437 ___ Python tracker ___

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread Christian Heimes
Christian Heimes added the comment: Tomas Orsava is going to provide a PR within the next hour. -- ___ Python tracker ___ ___

[issue27873] multiprocessing.pool.Pool.map should take more than one iterable

2019-12-02 Thread AnLong
Change by AnLong : -- pull_requests: +16916 pull_request: https://github.com/python/cpython/pull/17436 ___ Python tracker ___ ___

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Raising the priority to 'critical' as this is masking all other problems on a significant number of buildbots. Christian, could you take a look? -- nosy: +pablogsal priority: normal -> critical ___ Python

[issue38815] test_ssl: test_min_max_version() fails on FreeBSD and Fedora

2019-12-02 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-38954 as duplicate of this issue. Copy of its message: --- This issue is probably duplicate of some other, but I decided to make one new one due to the fact that this affect all Fedora build bots. test test_ssl failed test_timeout_connect_ex

[issue38954] test_ssl fails in all Fedora buildbots

2019-12-02 Thread STINNER Victor
STINNER Victor added the comment: I suggest to reuse bpo-38815. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_ssl: test_min_max_version() fails on AMD64 FreeBSD Shared 3.x ___ Python tracker

[issue38954] test_ssl fails in all Fedora buildbots

2019-12-02 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : This issue is probably duplicate of some other, but I decided to make one new one due to the fact that this affect all Fedora build bots. test test_ssl failed test_timeout_connect_ex (test.test_ssl.NetworkedTests) ... ok

[issue38815] test_ssl: test_min_max_version() fails on AMD64 FreeBSD Shared 3.x

2019-12-02 Thread STINNER Victor
STINNER Victor added the comment: Previous attempt: https://github.com/python/cpython/pull/11508#issuecomment-453186969 Old Fedora issue, worked around in the Fedora buildbot configuration: bpo-35045. -- ___ Python tracker

[issue38815] test_ssl: test_min_max_version() fails on AMD64 FreeBSD Shared 3.x

2019-12-02 Thread STINNER Victor
STINNER Victor added the comment: Debian and Fedora are already using OPENSSL_CONF=/non-existing-file workaround. IMHO test_ssl should be fixed instead. test_ssl should not make assumptions on min/max TLS version. -- ___ Python tracker

[issue38815] test_ssl: test_min_max_version() fails on AMD64 FreeBSD Shared 3.x

2019-12-02 Thread STINNER Victor
STINNER Victor added the comment: Similar issue in Fedora: https://src.fedoraproject.org/rpms/python3/pull-request/155 -- ___ Python tracker ___

[issue38953] Untokenize and retokenize does not round-trip

2019-12-02 Thread Zac Hatfield-Dodds
New submission from Zac Hatfield-Dodds : I've been working on a tool called Hypothesmith - https://github.com/Zac-HD/hypothesmith - to generate arbitrary Python source code, inspired by CSmith's success in finding C compiler bugs. It's based on the grammar but ultimately only generates

[issue31807] unitest.mock: Using autospec=True conflicts with 'wraps'

2019-12-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: