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

[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

[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

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

[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

[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

[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

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

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

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

[issue35669] tar symlink

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

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

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

[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
Change by miss-islington : -- pull_requests: +13730 pull_request: https://github.com/python/cpython/pull/13854 ___ 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 --

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

[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

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

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

[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

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

[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

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

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

[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

[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

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

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

[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

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

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

[issue37129] Add RWF_APPEND flag

2019-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- nosy: +YoSTEALTH ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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

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

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

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

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

[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

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

[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

[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

[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

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

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

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The actual number of descriptors is passed in Yes, but: """The nfds parameter is included only for compatibility with Berkeley sockets.""" ... according to https://docs.microsoft.com/en-us/windows/desktop/api/Winsock2/nf-winsock2-select So it's really

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Eryk Sun
Eryk Sun added the comment: > It doesn't have to. The actual number of descriptors is passed in, and To clarify, this is the fd_count in each fd_set, i.e. Winsock uses a counted SOCKET array instead of the bitmask that's found on other platforms. Winsock select() ignores nfds [1]. If

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my understanding Steve is right. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37068] Emit SyntaxWarning for f-strings without expressions ?

2019-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Adding my agreement that this is a feature, not a bug. -- nosy: +rhettinger ___ Python tracker ___

[issue37162] new importlib dependencies csv, email and zipfile

2019-06-05 Thread Brett Cannon
Brett Cannon added the comment: The imports are on purpose but they are not required for import to run, just like importlib.resources isn't necessary. -- ___ Python tracker

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Brett Cannon
Brett Cannon added the comment: To help short-circuit this discussion and focus on the desired solution, the steering council came to a decision that can be seen at https://github.com/python/steering-council/issues/12#issuecomment-498874939 : - for Python 3.8 specifically, we think it makes

[issue36839] Support the buffer protocol in code objects

2019-06-05 Thread Brett Cannon
Brett Cannon added the comment: "I'm sorry, I thought "fantasy" was good metaphor." No problem! Saying something is "fantasy" like "it's based on fantasy" -- in North America at least -- is like saying "you're fooling yourself" or "you're delusional". --

[issue37163] dataclasses.replace() fails with the field named "obj"

2019-06-05 Thread Brett Cannon
Brett Cannon added the comment: +1 for Serhiy's suggestion -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list

[issue18299] Change script_helper to use universal_newlines=True in _assert_python

2019-06-05 Thread hai shi
Change by hai shi : -- keywords: +patch pull_requests: +13724 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13847 ___ Python tracker

[issue21315] email._header_value_parser does not recognise in-line encoding changes

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

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-06-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 66c4f3f38b867d8329b28c032bb907fd1a2f22d2 by Barry Warsaw (Abhilash Raj) in branch 'master': bpo-21315: Fix parsing of encoded words with missing leading ws. (#13425)

[issue35551] Encoding and alias issues

2019-06-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: 1. Background for "tactis": https://github.com/python/cpython/commit/4fd73f0465ba11c22f0986d04cf91b387ed22c47 # The codecs for these encodings are not distributed with the # Python core, but are included here for reference, since the # locale

[issue18299] Change script_helper to use universal_newlines=True in _assert_python

2019-06-05 Thread hai shi
hai shi added the comment: >it's a pain to extend the API (I don't want to use yet another __xxx custom >keyword) Adding __xxx in run_python_until_end function would increase the complexity but it looks like a unified function. -- nosy: +shihai1991

[issue37158] Speed-up statistics.fmean()

2019-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I can close it now :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37158] Speed-up statistics.fmean()

2019-06-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Nice! On my computer, I get about 30% speed up. Thanks Raymond. The two PRs are status "merged". Does this mean we can close this ticket or is there more to do? (The git workflow is still a mystery to me.) --

[issue37089] `import Lib.os` works on windows (but shouldn't)

2019-06-05 Thread Steve Dower
Steve Dower added the comment: There are certainly people relying on sys.prefix being in sys.path (for .pth files and embedding), but probably not so many that we couldn't remove it in a major release. It is a bit strange in a venv, where there's typically nothing in the root of the

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Steve Dower
Steve Dower added the comment: > How does select() know the FD_SETSIZE? It doesn't have to. The actual number of descriptors is passed in, and the API presumably assumes that FD_SETSIZE is bigger than that (or else the caller would have crashed writing to invalid memory). I don't see why

[issue34222] Email message serialization enters an infinite loop when folding non-ASCII headers with long words

2019-06-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks for the report, @maxking. -- nosy: +cheryl.sabella ___ Python tracker ___ ___

[issue34222] Email message serialization enters an infinite loop when folding non-ASCII headers with long words

2019-06-05 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces ___ Python tracker

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13722 pull_request: https://github.com/python/cpython/pull/13845 ___ Python tracker ___

[issue37163] dataclasses.replace() fails with the field named "obj"

2019-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I propose to add a deprecation warning in 3.8 and use the PEP 570 syntax in 3.9 (which means a TypeError if obj is passed by keyword argument). -- ___ Python tracker

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: I wrote a proof-of-concept: PR 13845. ... but now I'm confused. How does select() know the FD_SETSIZE? Is it hardcoded in select() ABI? Does this PR work? Or does it make no sense? -- ___ Python tracker

[issue37162] new importlib dependencies csv, email and zipfile

2019-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have not found zipfile here. email is used for parsing METADATA and PKG-INFO. It replaces the rfc822 module. cvs is used for parsing RECORD and SOURCES.txt. Actually using it for for parsing SOURCES.txt is improper as it might contain double quotes or

[issue37134] Use PEP570 syntax in the documentation

2019-06-05 Thread Brian Skinn
Brian Skinn added the comment: First, for anyone interested, there are screenshots and links to docs versions at the SC GH issue (https://github.com/python/steering-council/issues/12#issuecomment-498856524, and following) where we're exploring what the tabbed approach to the PEP570 docs

[issue37152] Add AF_LOCAL alias for AF_UNIX

2019-06-05 Thread Christian Heimes
Christian Heimes added the comment: You are welcome! :) -- resolution: -> rejected stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker

[issue22117] Rewrite pytime.h to work on nanoseconds

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: > Right, but my question was very specifically about a test added for this > issue. This issue is about nanoseconds. I looked again and I found the commit https://hg.python.org/cpython/rev/b0b4c4d365b1 related to this issue. So to reply to your question,

[issue37152] Add AF_LOCAL alias for AF_UNIX

2019-06-05 Thread carlo
carlo added the comment: > I'm -1 to add the alias. It just adds to the confusion. It's also against the > Zen of Python: "There should be one-- and preferably only one --obvious way > to do it." Agreed with the zen of python. This is my first PR / issue, thanks for the fast reply. You

[issue36974] Implement PEP 590

2019-06-05 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +13721 pull_request: https://github.com/python/cpython/pull/13844 ___ Python tracker ___

[issue37116] Use PEP 570 syntax for positional-only parameters

2019-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Separate issues should be open for remaining cases. For example issue37163 is open for dataclasses.replace(). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37116] Use PEP 570 syntax for positional-only parameters

2019-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 142566c028720934325f0b7fe28680afd046e00f by Serhiy Storchaka in branch 'master': [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) https://github.com/python/cpython/commit/142566c028720934325f0b7fe28680afd046e00f

[issue37158] Speed-up statistics.fmean()

2019-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 9ddb77741e041966d64739353393bcba33cc3bdd by Raymond Hettinger (Miss Islington (bot)) in branch '3.8': bpo-37158: Simplify and speed-up statistics.fmean() (GH-13832) (GH-13843)

[issue37164] dict creation with converted zip objects produces inconsistent behavior

2019-06-05 Thread Dane Howard
Dane Howard added the comment: Yes, that seems to be it - in every case I was checking the value of c with `list(c)` and assuming that wouldn't change anything. thanks! -- stage: -> resolved status: open -> closed ___ Python tracker

[issue37162] new importlib dependencies csv, email and zipfile

2019-06-05 Thread Anthony Sottile
Anthony Sottile added the comment: at least for debian, the motivation is to provide a `pythonX.X-minimal` and a `pythonX.X` package -- the former ~mostly just contains the interpreter and the latter includes the stdlib (I'm interested as well, hit this packaging 3.8 for deadsnakes)

[issue37164] dict creation with converted zip objects produces inconsistent behavior

2019-06-05 Thread Paul Moore
Paul Moore added the comment: Works fine for me: Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> a = ['1','2','3'] >>> b = [1,2,3] >>> c = zip(a,b) >>> print(dict(list(c)))

[issue37164] dict creation with converted zip objects produces inconsistent behavior

2019-06-05 Thread Dane Howard
New submission from Dane Howard : confirmed on the following versions: 3.6.3 (Windows 10) 3.7.0 (Debian 9 & Windows 10) 3.7.1 (Debian 9) a dictionary created with the dict() function will not always return the appropriate dictionary object. The following code produces the bug on all stated

[issue37162] new importlib dependencies csv, email and zipfile

2019-06-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: I imagine that importlib.metadata isn’t imported at bootstrap time, only after the import infrastructure is ready. I think an early failure to import one of those dependencies is desirable. What is the reasoning behind deferring the imports and why does it

[issue37149] link to official documentation tkinter failed !!!

2019-06-05 Thread Guilloux
Guilloux added the comment: I have received the answer : Objet: Re: Request about a broken link on your website. Date: 2019-06-05 16:39 De: New Mexico Tech À: xav...@guilloux-fr.net Cc: thomas.guenger...@nmt.edu, webmas...@nmt.edu Hello, Unfortunately infohost.nmt.edu has

[issue37158] Speed-up statistics.fmean()

2019-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 6c01ebcc0dfc6be22950fabb46bdc10dcb6202c9 by Raymond Hettinger in branch 'master': bpo-37158: Simplify and speed-up statistics.fmean() (GH-13832) https://github.com/python/cpython/commit/6c01ebcc0dfc6be22950fabb46bdc10dcb6202c9 --

[issue37158] Speed-up statistics.fmean()

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

[issue35431] Add a function for computing binomial coefficients to the math module

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

[issue37149] link to official documentation tkinter failed !!!

2019-06-05 Thread Guilloux
Guilloux added the comment: I have read Cheryl Sabella's comment. So I have sent this e-mail : Objet: Request about a broken link on your website. Date: 2019-06-05 16:20 De: xav...@guilloux-fr.net À: thomas.guenger...@nmt.edu, webmas...@nmt.edu, h...@nmt.edu Hello, For several

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-05 Thread Demid
Demid added the comment: What if I will add mode check in FileType.__init__? -- ___ Python tracker ___ ___ Python-bugs-list

[issue2771] Test issue

2019-06-05 Thread Ernest W. Durbin III
Ernest W. Durbin III added the comment: test comment -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2019-06-05 Thread Ernest W. Durbin III
Ernest W. Durbin III added the comment: test comment -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-06-05 Thread Steve Dower
Steve Dower added the comment: The reason I'd prefer sys.platform in most cases is because it's a compile-time constant, based on the one that includes/excludes APIs near completely, and most of our tests ought to be switching on these. I personally don't see any need to switch on os.name,

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: I believe the number still can be configurable but requires more work. The idea is: FD_* macroses should be replaced with custom fd_set manipulation functions. on select.select() call we can calculate the number of the highest used socket and use this number

[issue37149] link to official documentation tkinter failed !!!

2019-06-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: This reference was hosted at a university called New Mexico Tech. I've been trying to determine if this server is just offline or if it's being sunsetted. Many google search results still point to infohost.mnt.edu or redirect to that page (not just the

[issue22117] Rewrite pytime.h to work on nanoseconds

2019-06-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Right, but my question was very specifically about a test added for this issue. So asking it here first made sense to me. If nobody would reply, I could still ask somewhere else. In the end, Petr solved the problem anyway, so the question is irrelevant now.

[issue22117] Rewrite pytime.h to work on nanoseconds

2019-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because this reduces the number of people which can notice your comment. Active core developers receive too much messages. Currently I have 473 unread messages from b.p.o (out of 22425) and 299 unread messages from GitHub (out of 20476). And this is only

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Andrei Zene
Andrei Zene added the comment: > Would it be possible to make FD_SETSIZE configurable at runtime, at least on > Windows? IMHO it would be a better approach. That would be awesome, but it doesn't look like it would be possible. As I have already pointed out in my previous comment: > I'm not

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to make FD_SETSIZE configurable at runtime, at least on Windows? IMHO it would be a better approach. -- ___ Python tracker

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Andrei Zene
Andrei Zene added the comment: We would also need this limit to be raised. We are using a server that was implemented using tornado, and tornado uses select.select. > It looks like Modules/selectmodule.c already has the handling for when this > gets large (and we really want to stop

  1   2   >