[issue37837] add internal _PyLong_FromUnsignedChar() function

2019-08-27 Thread Greg Price
Greg Price added the comment: Ah OK, that makes sense of it then :) > But the most important thing is that using PyLong_FromUnsignedLong() instead > of _PyLong_FromUnsignedChar() on top of GH-15192 is producing the same > results: striter_next() uses small_ints[] directly. However that's not

[issue37962] Improve ISO 8601 timezone support in the datetime.fromisoformat() method

2019-08-27 Thread Zeth
Zeth added the comment: Did you read the attached PR? For three lines longer, the method becomes more generally useful now. As pointed out in the other thread that you pointed to, Javascript can parse Python's seralised datetime object but Python cannot parse Javascript's due to the fact th

[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-08-27 Thread Christian Heimes
Christian Heimes added the comment: 3.7 to 3.9 are fixed. Benjamin, do you want the fix in 2.7? -- priority: release blocker -> high ___ Python tracker ___ __

[issue37440] httplib should enable post-handshake authentication for TLS 1.3

2019-08-27 Thread Christian Heimes
Christian Heimes added the comment: 3.7 to 3.9 are fixed. Benjamin, do you want the fix in 2.7? -- priority: release blocker -> high ___ Python tracker ___ __

[issue6331] Add unicode script info to the unicode database

2019-08-27 Thread Greg Price
Change by Greg Price : -- nosy: +Greg Price ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue37966] is_normalized is much slower at "no" than the standard's algorithm

2019-08-27 Thread Greg Price
Greg Price added the comment: Fix posted, as GH-15558. Adding cc's for the folks in the thread on #32285, where this function was originally added. -- components: +Unicode nosy: +Maxime Belanger, benjamin.peterson, ezio.melotti, steven.daprano, vstinner title: is_normalized is much

[issue36582] collections.UserString encode method returns a string

2019-08-27 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36582] collections.UserString encode method returns a string

2019-08-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2cb82d2a88710b0af10b9d9721a9710ecc037e72 by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-36582: Make collections.UserString.encode() return bytes, not str (GH-13138) (GH-15557) https://github.com/python/cpython/commit/2cb82d

[issue37966] is_normalized is much slower than the standard's algorithm

2019-08-27 Thread Greg Price
Change by Greg Price : -- keywords: +patch pull_requests: +15231 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15558 ___ Python tracker ___ _

[issue36582] collections.UserString encode method returns a string

2019-08-27 Thread Raymond Hettinger
Change by Raymond Hettinger : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue36582] collections.UserString encode method returns a string

2019-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +15230 pull_request: https://github.com/python/cpython/pull/15557 ___ Python tracker ___ __

[issue36582] collections.UserString encode method returns a string

2019-08-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2a16eea71f56c2d8f38c295c8ce71a9a9a140aff by Raymond Hettinger (Daniel Fortunov) in branch 'master': bpo-36582: Make collections.UserString.encode() return bytes, not str (GH-13138) https://github.com/python/cpython/commit/2a16eea71f56c2d8f38c

[issue34651] Disallow fork in a subinterpreter.

2019-08-27 Thread Miro Hrončok
Miro Hrončok added the comment: The problem with subprocess.Popen has been fixed in https://bugs.python.org/issue37951 -- ___ Python tracker ___ __

[issue37966] is_normalized is much slower than the standard's algorithm

2019-08-27 Thread Greg Price
New submission from Greg Price : In 3.8 we add a new function `unicodedata.is_normalized`. The result is equivalent to `str == unicodedata.normalize(form, str)`, but the implementation uses a version of the "quick check" algorithm from UAX #15 as an optimization to try to avoid having to cop

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Kubilay Kocak
Kubilay Kocak added the comment: Possibly, but unlikely as the system had been freshly installed and rebooted before the worker was restarted. The worker processes, however, had not been stopped prior to, or during the upgrade, so it's possible that the worker had an inconsistent build state

[issue37965] CCompiler has_function displays warning

2019-08-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: seems like a good patch. Can you submit a PR? -- nosy: +benjamin.peterson ___ Python tracker ___ _

[issue35028] Off by one error in cgi.FieldStorage(max_num_fields)

2019-08-27 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-08-27 Thread Christian Heimes
Christian Heimes added the comment: Thanks Victor and Gregory! I'm reducing the severity from release blocker to high and keep the ticket in pending to give Eric a change to review the commits. -- priority: release blocker -> high resolution: -> fixed stage: patch review -> commit r

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-08-27 Thread miss-islington
miss-islington added the comment: New changeset 03c52f2f63a8abeb4afb75e9da46c7d6c0a8afd5 by Miss Islington (bot) in branch '3.8': bpo-37951: Lift subprocess's fork() restriction (GH-15544) https://github.com/python/cpython/commit/03c52f2f63a8abeb4afb75e9da46c7d6c0a8afd5 -- nosy: +mi

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +15229 pull_request: https://github.com/python/cpython/pull/15554 ___ Python tracker ___ __

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-08-27 Thread Christian Heimes
Christian Heimes added the comment: New changeset 98d90f745d35d5d07bffcb46788b50e05eea56c6 by Christian Heimes in branch 'master': bpo-37951: Lift subprocess's fork() restriction (GH-15544) https://github.com/python/cpython/commit/98d90f745d35d5d07bffcb46788b50e05eea56c6 -- ___

[issue37965] CCompiler has_function displays warning

2019-08-27 Thread Maarten
New submission from Maarten : When using the `has_function` method of a CCompiler object, the compiler will emit a warning because the main function has no return type specified. https://github.com/python/cpython/blob/8c9e9b0cd5b24dfbf1424d1f253d02de80e8f5ef/Lib/distutils/ccompiler.py#L784-L786

[issue35964] shutil.make_archive (xxx, tar, root_dir) is adding './' entry to archive which is wrong

2019-08-27 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2019-08-27 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue24505] shutil.which wrong result on Windows

2019-08-27 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue37894] [win] shutil.which can not find the path if 'cmd' include directory path and not include extension name

2019-08-27 Thread Роман Донченко
Change by Роман Донченко : -- nosy: +SpecLad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue37954] Multiple tests are leaking references in AMD64 Windows8.1 Refleaks 3.x and x86 Gentoo Refleaks 3.x buildbots

2019-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thank you very much, Steve! This was indeed a bit tricky :) The last refleak buildbot is green again, so closing this. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Pyth

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2019-08-27 Thread Paul Ganssle
Paul Ganssle added the comment: > Defining isoformat() and fromisoformat() as functional inverses is misguided. > Indeed, it's not even true: `isoformat()` is not the inverse of `fromisoformat()`, that doesn't work because there are multiple strings that isoformat() can create from any given

[issue37827] IDLE Shell: add a terminal mode that responds to \a, \b, and \r

2019-08-27 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue37936] gitignore file is too broad

2019-08-27 Thread miss-islington
miss-islington added the comment: New changeset 2f0440e6dba248ff1e2b46c063adfd8fcb923a34 by Miss Islington (bot) in branch '3.7': bpo-37936: Remove some .gitignore rules that were intended locally. (GH-15542) https://github.com/python/cpython/commit/2f0440e6dba248ff1e2b46c063adfd8fcb923a34

[issue37936] gitignore file is too broad

2019-08-27 Thread miss-islington
miss-islington added the comment: New changeset caf7a30efecef21def997ab214dc6c1604d90a84 by Miss Islington (bot) in branch '3.8': bpo-37936: Remove some .gitignore rules that were intended locally. (GH-15542) https://github.com/python/cpython/commit/caf7a30efecef21def997ab214dc6c1604d90a84

[issue37936] gitignore file is too broad

2019-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +15228 pull_request: https://github.com/python/cpython/pull/15553 ___ Python tracker ___ __

[issue37936] gitignore file is too broad

2019-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +15227 pull_request: https://github.com/python/cpython/pull/15552 ___ Python tracker ___ __

[issue37936] gitignore file is too broad

2019-08-27 Thread miss-islington
miss-islington added the comment: New changeset 8c9e9b0cd5b24dfbf1424d1f253d02de80e8f5ef by Miss Islington (bot) (Greg Price) in branch 'master': bpo-37936: Remove some .gitignore rules that were intended locally. (GH-15542) https://github.com/python/cpython/commit/8c9e9b0cd5b24dfbf1424d1f253

[issue37827] IDLE Shell: add a terminal mode that responds to \a, \b, and \r

2019-08-27 Thread Tal Einat
Tal Einat added the comment: Terry, thanks for the detailed writing of your thoughts on the matter and their context. Serhiy's argument (in msg246602) is that different terminals interpret different control characters in different ways, and that we have no way of unifying their behavior. T

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2019-08-27 Thread hai shi
hai shi added the comment: How about use a flag(such USING_OUT_NAMESPACE) to identify we use namespace or not? For example: subnamespace, arg_strings = parser.parse_known_args(arg_strings, None) for key, value in vars(subnamespace).items(): if USING_OUT_NAMESPACE and not hasattr(namespace

[issue37964] F_GETPATH is not available in fcntl.fcntl

2019-08-27 Thread Vinay Sharma
Vinay Sharma added the comment: I have opened a PR, but no reviewers, have been assigned. Could you please look into that ? -- ___ Python tracker ___ _

[issue37964] F_GETPATH is not available in fcntl.fcntl

2019-08-27 Thread Vinay Sharma
Change by Vinay Sharma : -- keywords: +patch pull_requests: +15226 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15550 ___ Python tracker

[issue37964] F_GETPATH is not available in fcntl.fcntl

2019-08-27 Thread Christian Heimes
Christian Heimes added the comment: Since it's a feature request, I have reset the version list to 3.9. -- nosy: +christian.heimes stage: -> needs patch versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue37964] F_GETPATH is not available in fcntl.fcntl

2019-08-27 Thread Vinay Sharma
New submission from Vinay Sharma : F_GETPATH cmd/operator is not present in fcntl module. This is specific to macos and is only available in macos. https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html This can be also be verified using

[issue37963] No URL for docs of pth files

2019-08-27 Thread Thomas Güttler
New submission from Thomas Güttler : if you google for "python pth" you get to the "sites" docs. It would be very nice if you could create a direct URL to the docs of pth files. This makes it easier to point new comers into the right direction if you answer questions at stackoverflow (or other

[issue37962] Improve ISO 8601 timezone support in the datetime.fromisoformat() method

2019-08-27 Thread Paul Ganssle
Paul Ganssle added the comment: This is a duplicate of #35829. The reason that 'Z' is not supported is that `fromisoformat()` is not a general ISO 8601 parser, but rather is intended to be the inverse of `isoformat()`. See the documentation here: https://docs.python.org/dev/library/datetime

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Could this be that the libc was outdated? -- ___ Python tracker ___ ___ Python-bugs-list m

[issue37064] Feature request: option to keep/add flags to pathfix.

2019-08-27 Thread Patrik Kopkan
Change by Patrik Kopkan : -- pull_requests: +15225 pull_request: https://github.com/python/cpython/pull/15548 ___ Python tracker ___ ___

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Kubilay Kocak
Kubilay Kocak added the comment: Ran rebuild (in the BB UI) on that failed build (#1356), and test_os now passes: 0:22:52 load avg: 8.38 [339/419] test_os passed Victor independently logged into the host and ran a from scratch build/test and test_os passes for him too (verifying my from scra

[issue37962] Improve ISO 8601 timezone support in the datetime.fromisoformat() method

2019-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue37962] Improve ISO 8601 timezone support in the datetime.fromisoformat() method

2019-08-27 Thread Zeth
New submission from Zeth : The datetime.datetime.fromisoformat() method unnecessarily rejects datetime strings that are valid under ISO 8601 if timezone uses the UTC designator or it only has hours. In ISO 8601, section 4.2.5.1: "When it is required to indicate the difference between local

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread STINNER Victor
STINNER Victor added the comment: > https://buildbot.python.org/all/#/builders/168/builds/1356 Just to confirm: test_os was run twice and was killed twice by signal 12. 0:00:04 load avg: 3.45 [ 8/419/1] test_os crashed (Exit code -12) ... Re-running failed tests in verbose mode Re-running te

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Kubilay Kocak
Kubilay Kocak added the comment: Hmm... a test checkout of master/default on the host in question has test_copy_file_range{_*} passing: [user@CURRENT-amd64:/usr/home/user/repos/cpython] ./python -m test -vvv test_os |grep range ... test_copy_file_range (test.test_os.FileTests) ... ok test_co

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread STINNER Victor
STINNER Victor added the comment: It would be better if the FreeBSD kernel would return ENOSYS error code rather than killing the process with SIGSYS :-) -- ___ Python tracker __

[issue37957] Allow regrtest to receive a file with test (and subtests) to ignore

2019-08-27 Thread STINNER Victor
STINNER Victor added the comment: FYI in the past, Fedora and RHEL packages skipped multiple tests using downstream patches. Hopefully, we managed to reenable almost all tests. Currently in Fedora, the python3 package use regrtest -x to skip some tests: # Run the upstream test suite # te

[issue33944] Deprecate and remove pth files

2019-08-27 Thread qix-
qix- added the comment: -1 This would make `better_exceptions` irreparably un-ergonomic. https://github.com/qix-/better-exceptions .PTH files are commonly used to install development middleware in order to enhance the development and debugging experience. I recognize the need for security,

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Kubilay Kocak
Kubilay Kocak added the comment: See Also: #26826 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue37157] shutil: add reflink=False to file copy functions to control clone/CoW copies (use copy_file_range)

2019-08-27 Thread Kubilay Kocak
Kubilay Kocak added the comment: See Also: #26826 -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Kubilay Kocak
Kubilay Kocak added the comment: Possibly related: https://reviews.freebsd.org/D20584 - Add a linux compatible copy_file_range(2) syscall https://lists.freebsd.org/pipermail/freebsd-current/2019-July/073747.html -- ___ Python tracker

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Kubilay Kocak
Kubilay Kocak added the comment: @Pablo Upgrade to latest CURRENT revision a few hours ago. Some system software is still updating. I'll push a rebuild on BB once complete. Stand by :) -- ___ Python tracker ___

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: @koobs, did you changed recently the buildbot? -- ___ Python tracker ___ ___ Python-bugs-l

[issue31956] Add start and stop parameters to the array.index()

2019-08-27 Thread Anders Lorentsen
Anders Lorentsen added the comment: As far as I can recall, the patch is generally speaking good to go. A number of discussions arose on various details, however. In any event, I'll take a look at it during the next few days. -- ___ Python tracker

[issue37959] test_os.test_copy_file_range() killed by SIGSYS (12) on FreeBSD CURRENT buildbot

2019-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Oh, FreeBSD, what have you done now. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue37798] Add C fastpath for statistics.NormalDist.inv_cdf()

2019-08-27 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +15223 pull_request: https://github.com/python/cpython/pull/15546 ___ Python tracker ___ _

[issue37957] Allow regrtest to receive a file with test (and subtests) to ignore

2019-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Tests that fail on some platforms can be marked to skip in code. One of the use cases of this feature is for people to package Python at distributions or companies and want to run the test suite without modifying the code or applying patches. -

[issue37961] Tracemalloc traces do not include original stack trace length

2019-08-27 Thread Julien Danjou
Change by Julien Danjou : -- keywords: +patch pull_requests: +15222 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15545 ___ Python tracker ___ __

[issue37961] Tracemalloc traces do not include original stack trace length

2019-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue37961] Tracemalloc traces do not include original stack trace length

2019-08-27 Thread Julien Danjou
New submission from Julien Danjou : When using the tracemalloc module, the maximum number of frames that are captured is specified at startup via a value to the `start` method. However, if the number of frames is truncated, there's no way to know the original length of the stack traces.

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-08-27 Thread Christian Heimes
Christian Heimes added the comment: I have created a PR that implements Greg's proposal https://bugs.python.org/issue34651#msg325302 -- type: -> behavior ___ Python tracker

[issue37951] Disallow fork in a subinterpreter broke subprocesses in mod_wsgi daemon mode

2019-08-27 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +15221 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15544 ___ Python tracker ___

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +15220 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15543 ___ Python tracker ___

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : __repr__() implementations of buffered and text streams try to include the value of "name" and "mode" attributes in the result. But they silence too wide range of exceptions (all subclasses of Exception) when try to get these values. This includes such e

[issue37960] repr() of buffered and text streams silences too many exceptions

2019-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +benjamin.peterson, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue37935] Improve performance of pathlib.scandir()

2019-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think using the timeit module is enough. For more precise benchmarking you may need to use the pyperf module, but I think this is not a case. For example, something like: ./python -m timeit -s "from pathlib import Path; p = Patch('...')" "for x in p

[issue37905] Improve docs for NormalDist

2019-08-27 Thread Christoph Deil
Christoph Deil added the comment: Thank you, Raymond! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36205] Python 3.7 and 3.8 process_time is not reported correctly when built on older macOS versions

2019-08-27 Thread STINNER Victor
STINNER Victor added the comment: On PR 12287, Ned Deily wrote: > I still think it would be better to have a test for this case since the > problem embarrassingly went undetected for quite some time. But I'll let some > one else deal with it if they care to. test_time already contains a func

[issue36205] Python 3.7 and 3.8 process_time is not reported correctly when built on older macOS versions

2019-08-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: @raymond, as to your question in msg350586: The release installers are generally build on the oldest release of the OS targeted by the installer. That's to ensure that the binaries actually work there. It should be possible to build on newer releases, but t