[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue37165] Convert _collections._count_elements() to the Argument Clinic

2019-06-05 Thread Raymond Hettinger
New submission from Raymond Hettinger : This lets _count_elements use METH_FASTCALL. -- components: Library (Lib) messages: 344759 nosy: rhettinger priority: normal severity: normal status: open type: performance versions: Python 3.8, Python 3.9 ___

[issue37165] Convert _collections._count_elements() to the Argument Clinic

2019-06-05 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +13725 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13848 ___ Python tracker __

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Steve Dower
Steve Dower added the comment: > So it's really FD_SETSIZE that matters, and it's a compile-time constant. The only way this constant can matter is if the array has to end with an empty slot, which doesn't appear to be the case. The pre-compiled function can't tell how you compiled the code

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-05 Thread Tim Hatch
New submission from Tim Hatch : inspect.findsource() can trigger IndexError when co_firstlineno is larger than len(linecache.getlines()). If you have a situation where the file that linecache finds doesn't match the imported module, then you're not guaranteed that co_firstlineno on the code

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-05 Thread Tim Hatch
Change by Tim Hatch : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue33725] Python crashes on macOS after fork with no exec

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1e77ab0a35cf95318bb4893f7253a30f73201163 by Victor Stinner in branch 'master': bpo-33725, multiprocessing doc: rephase warning against fork on macOS (GH-13841) https://github.com/python/cpython/commit/1e77ab0a35cf95318bb4893f7253a30f73201163 -

[issue33725] Python crashes on macOS after fork with no exec

2019-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +13726 pull_request: https://github.com/python/cpython/pull/13849 ___ Python tracker ___ __

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue33725] Python crashes on macOS after fork with no exec

2019-06-05 Thread miss-islington
miss-islington added the comment: New changeset d74438b633184bbd8d775d7118d6f12f6f825a96 by Miss Islington (bot) in branch '3.8': bpo-33725, multiprocessing doc: rephase warning against fork on macOS (GH-13841) https://github.com/python/cpython/commit/d74438b633184bbd8d775d7118d6f12f6f825a96

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thank you very much, everyone, for sharing your comments, views and concerns and thanks to the steering council for helping to reach a conclusion. I have updated PR13743 to only modify the functions that fall into the second point of Brett's message

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-05 Thread SilentGhost
SilentGhost added the comment: 3.6 is in security-only mode, this doesn't look like a security issue to me -- nosy: +SilentGhost, yselivanov versions: +Python 3.9 -Python 3.6 ___ Python tracker _

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Carol Willing
Carol Willing added the comment: New changeset 54edb04aa688c8247570b4f59b5145e3fa417576 by Carol Willing (Pablo Galindo) in branch 'master': bpo-37134: Add PEP570 notation to the documentation (GH-13743) https://github.com/python/cpython/commit/54edb04aa688c8247570b4f59b5145e3fa417576 -

[issue37167] Cannot build Windows python_d.exe in master branch

2019-06-05 Thread Terry J. Reedy
New submission from Terry J. Reedy : In master, pcbuild/build -e -d (the 2nd run) gave the errors in build_errors.txt. Many or most were like f:\dev\3x\externals\xz-5.2.2\src\liblzma\common\block_encoder.h(1): error C2018 : unknown character '0x2' [F:\dev\3x\PCbuild\liblzma.vcxproj] >chkdsk f

[issue37129] Add RWF_APPEND flag

2019-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- nosy: +YoSTEALTH ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue37167] Cannot build Windows python_d.exe in master branch

2019-06-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I looked more carefully and all the errors were for files in the external xz-5.2.2 directory. I deleted it to force a fresh download and a rebuild worked fine. Sorry for the noise. -- resolution: -> not a bug stage: needs patch -> resolved status:

[issue37130] pathlib.with_name() doesn't like unnamed files.

2019-06-05 Thread N.P. Khelili
N.P. Khelili added the comment: The idea in my last post was quite bad, setting name to None breaks a lot of functions that expect name to be a string. Path('.').parent and Path('..').parent both return '.'. Even if it is not stupid (regarding them as special dirs pointing to somewhere else b

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Guido van Rossum
Guido van Rossum added the comment: IIUC sum() should also have a slash in the middle. -- nosy: +gvanrossum ___ Python tracker ___

[issue37166] inspect.findsource doesn't handle shortened files gracefully

2019-06-05 Thread Michael Bejda
Change by Michael Bejda : -- keywords: +patch pull_requests: +13727 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13850 ___ Python tracker ___ __

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-05 Thread Phil Frost
New submission from Phil Frost : We've observed instances of Decimal divisions being incorrect a few times per day in a web application serving millions of requests daily. I've been unable to reproduce the issue but have been investigating core dumps which suggest either some issue in the C P

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-05 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +facundobatista, mark.dickinson, rhettinger, skrah ___ Python tracker ___ ___ Python-bugs-list mai

[issue35551] Encoding and alias issues

2019-06-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset c4c15ed7a2c7c2a1983e88b89c244d121eb3e512 by Cheryl Sabella (Ashwin Ramaswami) in branch 'master': bpo-35551: encodings update (GH-11446) https://github.com/python/cpython/commit/c4c15ed7a2c7c2a1983e88b89c244d121eb3e512 -- nosy: +cheryl

[issue35551] Encoding and alias issues

2019-06-05 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-05 Thread Phil Frost
Phil Frost added the comment: I should note that while we do observe this issue with Decimal, my troubleshooting so far indicates the logic in decimal.py is fine. It seems instead the instructions in decimal.py aren't being correctly executed. I'm not sure if the problem is limited to only D

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +13728 pull_request: https://github.com/python/cpython/pull/13851 ___ Python tracker ___ ___

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-06-05 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: Only deleting from the local filesystem seems reasonable to me. In the context of a temporary directory tree, I don't see a semantic difference between "unmounting a mount point" and "removing a subdirectory entry" -- i.e. they both remove the offending s

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-06-05 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: (correcting typos) What would be the appropriate behavior when unmount_func() fails (e.g. for a permission error)? Right now, any exceptions other than IsADirectoryError, PermissionError, and FileNotFoundError are passed on to the caller. -- ___

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-05 Thread Stefan Krah
Stefan Krah added the comment: Thank you for the detailed report. So, in an attempt to summarize, this is the crucial passage: >>> ideal_exp = -1 >>> exp = -29 >>> coeff = 15 >>> division_counter = 0 >>> while exp < ideal_exp and coeff % 10 == 0: ... coeff //= 1

[issue37165] Convert _collections._count_elements() to the Argument Clinic

2019-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset e985804207473796a1326585b3e1b9e18c764345 by Raymond Hettinger in branch 'master': bpo-37165: Convert _count_elements to the argument clinic (GH-13848) https://github.com/python/cpython/commit/e985804207473796a1326585b3e1b9e18c764345 ---

[issue37165] Convert _collections._count_elements() to the Argument Clinic

2019-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +13729 pull_request: https://github.com/python/cpython/pull/13853 ___ Python tracker ___ __

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c4c421d619baf2ff2f7e09f55b7ae22b8f863c7b by Pablo Galindo in branch 'master': bpo-37134: Use PEP570 syntax for sum() (GH-13851) https://github.com/python/cpython/commit/c4c421d619baf2ff2f7e09f55b7ae22b8f863c7b -- __

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +13730 pull_request: https://github.com/python/cpython/pull/13854 ___ Python tracker ___ __

[issue37165] Convert _collections._count_elements() to the Argument Clinic

2019-06-05 Thread miss-islington
miss-islington added the comment: New changeset 21ce2454de57caaa532d11d76544632608f4b86b by Miss Islington (bot) in branch '3.8': bpo-37165: Convert _count_elements to the argument clinic (GH-13848) https://github.com/python/cpython/commit/21ce2454de57caaa532d11d76544632608f4b86b --

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread miss-islington
miss-islington added the comment: New changeset 23f41a64ea668296fa89e25f3cfa11f63026ecac by Miss Islington (bot) in branch '3.8': bpo-37134: Use PEP570 syntax for sum() (GH-13851) https://github.com/python/cpython/commit/23f41a64ea668296fa89e25f3cfa11f63026ecac -- nosy: +miss-isling

[issue37169] test_pyobject_is_freed_free fails with 3.8.0beta1

2019-06-05 Thread Matej Cepl
New submission from Matej Cepl : When building openSUSE package for Python-3.8.0b1 (on x86_64 build system with the latest openSUSE/Tumbleweed) in the package which previously worked all the way up to 3.8.0.a4, I get this test failing: [ 5771s]

[issue35669] tar symlink

2019-06-05 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue33010] os.path.isdir() returns True for broken directory symlinks or junctions

2019-06-05 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2019-06-05 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue32912] Raise non-silent warning for invalid escape sequences

2019-06-05 Thread Aaron Meurer
Aaron Meurer added the comment: I agree with Raymond that third party libraries are not ready for this. My biggest issue is that the way Python warns about this makes it very difficult for library authors to fix this. Most won't even notice. The problem is the warnings are only shown once,

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Brian Skinn
Brian Skinn added the comment: Brett, to be clear, this sounds like the tabbed solution is not going to be used at this point? If so, I'll pull down the tabbed docs I'm hosting. -- ___ Python tracker __

[issue32884] Adding the ability for getpass to print asterisks when passowrd is typed

2019-06-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: See also #36566. (Thanks Cheryl.) I think the usability improvement for this far outweigh the decrease in security. The days where somebody looking over your shoulder watching you type your password was the major threat are long gone. Hiding the length of

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-06-05 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: Since tempfile.TemporaryDirectory() already returns some exceptions to the caller when it can't figure out how to delete a directory item, I don't see a problem with throwing PermissionError when encountering a mount point. This would preserve the 'rm -rf

[issue35551] Encoding and alias issues

2019-06-05 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +13731 pull_request: https://github.com/python/cpython/pull/13856 ___ Python tracker ___ _

[issue37162] new importlib dependencies csv, email and zipfile

2019-06-05 Thread Matthias Klose
Matthias Klose added the comment: yes, that's for the minimal package. zipfile is found in Lib/importlib/_bootstrap_external.py Again, it's just a question here, having found an unmotivated distutils import before in one of the standard modules. -- resolution: -> not a bug ___

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-05 Thread Tim Peters
Tim Peters added the comment: Also basic: run hardware CPU and memory stress diagnostics, and/or try running the same thing on a different machine. Hardware isn't infallible, and can fail in nearly arbitrary ways. For example, perhaps a smidgen of silicon has gone flaky, so that one time

[issue35551] Encoding and alias issues

2019-06-05 Thread Inada Naoki
Inada Naoki added the comment: New changeset cb65202520e7959196a2df8215692de155bf0cc8 by Inada Naoki in branch 'master': bpo-35551: remove mac_centeuro encoding (GH-13856) https://github.com/python/cpython/commit/cb65202520e7959196a2df8215692de155bf0cc8 -- _

[issue37170] Wrong return value from PyLong_AsUnsignedLongLongMask on PyErr_BadInternalCall

2019-06-05 Thread Antti Haapala
New submission from Antti Haapala : Hi, while checking the longobject implementation for a Stack Overflow answer, I noticed that the functions `_PyLong_AsUnsignedLongLongMask` and `PyLong_AsUnsignedLongLongMask` erroneously return `(unsigned long)-1` on error when bad internal call is thrown.

[issue37170] Wrong return value from PyLong_AsUnsignedLongLongMask on PyErr_BadInternalCall

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: -1 is documented: https://docs.python.org/dev/c-api/long.html#c.PyLong_AsUnsignedLongLongMask It's not a bug but a deliberate behavior. See also the general behavior described at: https://docs.python.org/dev/c-api/long.html#integer-objects -- nosy:

[issue37168] Decimal divisions sometimes 10x or 100x too large

2019-06-05 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

<    1   2