[issue37160] thread native id netbsd support

2019-06-05 Thread David Carlier
Change by David Carlier : -- components: Interpreter Core nosy: David Carlier priority: normal pull_requests: 13714 severity: normal status: open title: thread native id netbsd support versions: Python 3.9 ___ Python tracker

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: Oh, I already created https://bugs.python.org/issue37157 Can we move the discussion there? -- ___ Python tracker ___ ___

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: issue37157 is for reflink / CoW copy, this one is not. -- ___ Python tracker ___ ___ Python-bu

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2019-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Mark, I think you can reopen the PR and merge it in 3.9 now. As for my proposition to use the FutureWarning first, I think it is not necessary. The behavior change is very subtle and will affects only int subclasses with overridden __index__. Similar chang

[issue36894] test_multiprocessing_spawn regression on Windows

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35537] use os.posix_spawn in subprocess

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: Python 3.8 beta 1 is released with this feature. I documented the change. Thnaks everybody who was involved to make this possible. I close the issue. Open new issues for follow-up. -- resolution: -> fixed stage: patch review -> resolved status: open

[issue37138] PEP 590 method_vectorcall calls memcpy with NULL src

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

[issue26836] Add memfd_create to os module

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: It seems like this issue can now be closed, no? -- nosy: +vstinner ___ Python tracker ___ ___ Pyt

[issue37098] test_memfd_create() test failure

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

[issue26836] Add memfd_create to os module

2019-06-05 Thread Christian Heimes
Christian Heimes added the comment: Yes, the feature is implemented and buildbots are green. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-06-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: I prefer postponing to think about it until all required 3.8 tasks are done :) -- ___ Python tracker ___

[issue37154] test_utf8_mode: test_env_var() fails on AMD64 Fedora Rawhide Clang Installed 3.7

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: The locales disappeared from this buildbot because of a recent glibc change and it's a glibc bug (it's being fixed). https://bugzilla.redhat.com/show_bug.cgi?id=1716710 -- ___ Python tracker

[issue37011] pdb: restore original tracing function instead of sys.settrace(None)

2019-06-05 Thread daniel hahler
daniel hahler added the comment: Just for reference: I've just spent quite some time debugging missing coverage with pytest, and it turned out that part of it is because of this issue. Most of the pdb related tests run in a subprocess (via pexpect), but not all of them. I am using a wrapper

[issue37154] test_utf8_mode: test_env_var() fails on AMD64 Fedora Rawhide Clang Installed 3.7

2019-06-05 Thread Florian Weimer
Florian Weimer added the comment: Just to be clear: glibc-all-langpacks normally contains the data from glibc-langpack-en, but a packaging bug caused removal of the /usr/lib/locale/locale-archive file during upgrades. This only applies to upgrades. New installations are fine. Details here

[issue34767] Optimize asyncio.Lock

2019-06-05 Thread miss-islington
miss-islington added the comment: New changeset 9aa78566fbeeb8cdaa669ad22f92cf63765f4135 by Miss Islington (bot) (Zackery Spytz) in branch 'master': bpo-34767: Do not always create a collections.deque() in asyncio.Lock() (GH-13834) https://github.com/python/cpython/commit/9aa78566fbeeb8cdaa6

[issue34767] Optimize asyncio.Lock

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

[issue34767] Optimize asyncio.Lock

2019-06-05 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue37005] bz2 module doesn't write end-of-stream marker

2019-06-05 Thread Dobatymo
Change by Dobatymo : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: > issue37157 is for reflink / CoW copy, this one is not. Oh sorry, it seems like I misunderstood copy_file_range(). So it doesn't use/support CoW? -- ___ Python tracker __

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

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: cow.diff: I'm not sure that attempt to call unlink() if FICLONE fails is a good idea. unlink() can raise a new exception which can be confusing. IMHO it's up to the caller to deal with that. Said differently, I dislike the *fallback* parameter of reflink().

[issue37159] Use copy_file_range() in shutil.copyfile() (server-side copy)

2019-06-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Nope, it doesn't (see man page). We can simply use FICLONE (cp does the same). -- ___ Python tracker ___ _

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

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: > This initial patch provides a callback=None parameter in case the CoW > operation fails because not supported by the underlying filesystems but this > is debatable because we can get different errors depending on the platform > (which is not good). As such

[issue34767] Optimize asyncio.Lock

2019-06-05 Thread miss-islington
miss-islington added the comment: New changeset 87a865ec15fa899a1f12be81f41a4c5e649a2833 by Miss Islington (bot) in branch '3.8': bpo-34767: Do not always create a collections.deque() in asyncio.Lock() (GH-13834) https://github.com/python/cpython/commit/87a865ec15fa899a1f12be81f41a4c5e649a28

[issue34767] Optimize asyncio.Lock

2019-06-05 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Zackery! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue26836] Add memfd_create to os module

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

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

2019-06-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > I'm not sure that attempt to call unlink() if FICLONE fails is a good idea Agreed. > I dislike the *fallback* parameter of reflink(). Me too. A specific exception is better. > Why not exposing clonefile() as os.clonefile() but os._clonefile()? Mmm...

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2019-06-05 Thread miss-islington
miss-islington added the comment: New changeset f62a372928fbf6a2ba722f12f069b75ca6ad16fb by Miss Islington (bot) in branch '3.7': bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598) https://github.com/python/cpython/commit/f62a372928fbf6a2ba722f12f069b75ca6ad16fb --

[issue26836] Add memfd_create to os module

2019-06-05 Thread miss-islington
miss-islington added the comment: New changeset ccf0efbb21f6bbf6efd5f8cb560fed11079ce1a2 by Miss Islington (bot) (Victor Stinner) in branch 'master': bpo-26836: Document os.memfd_create() name parameter (GH-13838) https://github.com/python/cpython/commit/ccf0efbb21f6bbf6efd5f8cb560fed11079ce1

[issue26836] Add memfd_create to os module

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

[issue37034] Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call

2019-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a bug. I intentionally committed the simpler code, but forgot to fix it later. -- type: -> behavior versions: +Python 3.9 ___ Python tracker

[issue37161] Pre-populate user editable text in input()

2019-06-05 Thread Steven D'Aprano
New submission from Steven D'Aprano : When asking for user input, it is often very helpful to be able to pre-populate the user's input string and allow them to edit it, rather than expecting them to re-type the input from scratch. I propose that the input() built-in take a second optional arg

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

2019-06-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Adding a new patch (still a PoC, will create a PR when I have something more solid). -- Added file: https://bugs.python.org/file48393/cow2.diff ___ Python tracker __

[issue37162] new importlib dependencies csv, email and zipfile

2019-06-05 Thread Matthias Klose
New submission from Matthias Klose : compared to 3.8 alpha4, beta1's importlib has three new dependencies csv, email and zipfile. Is this intended, or should the toplevel imports in importlib.metadata be moved into the functions where these are once used? -- components: Library (Lib)

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

2019-06-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> from dataclasses import * >>> @dataclass ... class D: ... obj: object ... >>> replace(D(123), obj='abc') Traceback (most recent call last): File "", line 1, in TypeError: replace() got multiple values for argument 'obj' -- components: L

[issue26836] Add memfd_create to os module

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset b496c2672131ea51a55b5a414aeda271562f18d3 by Victor Stinner (Miss Islington (bot)) in branch '3.8': bpo-26836: Document os.memfd_create() name parameter (GH-13838) (GH-13839) https://github.com/python/cpython/commit/b496c2672131ea51a55b5a414aeda2

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

2019-06-05 Thread Michael Felt
Michael Felt added the comment: On 05/06/2019 07:07, Tal Einat wrote: > Tal Einat added the comment: > > Michael, your willingness to help, and the work on this issue and PR, are > greatly appreciated! > > Reading through the discussion here again, and the one referenced by Ned, I > tend to

[issue37162] new importlib dependencies csv, email and zipfile

2019-06-05 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-06-05 Thread Eric V. Smith
Eric V. Smith added the comment: Possibly a use for positional-only parameters. Backward compatibility is the question, of course. -- ___ Python tracker ___ _

[issue37034] Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: > This is a bug. I intentionally committed the simpler code, but forgot to fix > it later. I suggest to also apply the fix to 3.8 in that case. -- ___ Python tracker _

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

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: I'm curious: is it possible to query the filesystem to check if a copied is copied using CoW? I guess that it's possible, it will be non portable. So I guess that it's better to avoid checking that in unit tests. vstinner@apu$ dd if=/dev/urandom of=urandom b

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

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 STINNER Victor
Change by STINNER Victor : -- pull_requests: +13718 pull_request: https://github.com/python/cpython/pull/13841 ___ Python tracker ___ __

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

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: > Thanks Victor. I don’t think “reliable” is strong enough, since this will > definitely lead to core dumps under certain conditions. What about: (...) That sounds better: I wrote PR 13841. -- ___ Python tracker

[issue36935] bpo-35813 introduced usage of the deprecated PyErr_SetFromWindowsErrWithUnicodeFilename() function

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

[issue22117] Rewrite pytime.h to work on nanoseconds

2019-06-05 Thread STINNER Victor
STINNER Victor added the comment: @Jeroen Demeyer: Both mentionned PRs are merged, so I understand that you found your answer. Commenting closed issues is not the most efficient way to get an answer ;-) -- ___ Python tracker

[issue22117] Rewrite pytime.h to work on nanoseconds

2019-06-05 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Commenting closed issues is not the most efficient way to get an answer ;-) Serious question: why is that? I got an email from bugs.python.org with your comment, so why should commenting on closed issues be any worse than commenting on open issues? Especia

[issue28708] Low FD_SETSIZE limit on Windows

2019-06-05 Thread Andrei Zene
Change by Andrei Zene : -- keywords: +patch pull_requests: +13719 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13842 ___ 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 allocat

[issue36675] Doctest directives and comments missing from code samples

2019-06-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: ;tldr; There is a global configuration flag to show all the doctest directives for all the docs that are built. The default is to suppress the doctest directives. If a global setting isn't desired, then each doctest example will have to be changed indivi

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

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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) https://github.com/python/cpython/commit/9ddb77741e041966d64739353

[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

[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

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

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

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

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

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

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

[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

[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
Change by STINNER Victor : -- pull_requests: +13722 pull_request: https://github.com/python/cpython/pull/13845 ___ 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

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

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

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

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

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

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

[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

[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) https://github.com/python/cpython/commit/66c4f3f38b867d8329b28c032bb907fd1a2f2

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

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

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

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

[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

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

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

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

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

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

  1   2   >