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

[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

[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

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

[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

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

[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

[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

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

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

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

[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

[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

[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

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

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

[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

[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

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

[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

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

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

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

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

[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

[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

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

[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

[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

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

[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

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

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

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

[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 STINNER Victor
STINNER Victor added the comment: It seems like this issue can now be closed, no? -- nosy: +vstinner ___ Python tracker ___ ___ Pyt

[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

[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

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

[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

[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

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

[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

<    1   2