[issue37075] Error message improvement for AsyncMock

2019-05-29 Thread miss-islington
miss-islington added the comment: New changeset 0ae022c6a47abffce22ec185552e319b7b93dbf4 by Miss Islington (bot) (Xtreak) in branch 'master': bpo-37075: Fix string concatenation in assert_has_awaits error message (GH-13616) https://github.com/python/cpython/commit/0ae022c6a47abffce22ec185552

[issue37082] Assignment expression operator (walrus) not in built-in help()

2019-05-29 Thread Mark Dickinson
Mark Dickinson added the comment: Looks like that list could do with some attention: - I don't see regular assignment there, either. - And "`" shouldn't be in that list. - Neither should "<>" - "->" (for function annotations) is missing. -- nosy: +mark.dickinson _

[issue37082] Assignment expression operator (walrus) not in built-in help()

2019-05-29 Thread Mark Dickinson
Mark Dickinson added the comment: @= is also missing. Looks like we need to go through the grammar and reconcile what's there with the symbols help. -- ___ Python tracker ___

[issue37085] Expose additional socket constants for CAN_BCM flags

2019-05-29 Thread Karl Ding
Change by Karl Ding : -- keywords: +patch pull_requests: +13541 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13646 ___ Python tracker ___ __

[issue37070] Clean up f-string debug handling, including potential memory leaks

2019-05-29 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset f83d1dbd3bfbde940117c85f5c70de00e47b7e6e by Eric V. Smith in branch 'master': bpo-37070: Cleanup fstring debug handling (GH-13607) https://github.com/python/cpython/commit/f83d1dbd3bfbde940117c85f5c70de00e47b7e6e -- ___

[issue37070] Clean up f-string debug handling, including potential memory leaks

2019-05-29 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37082] Assignment expression operator (walrus) not in built-in help()

2019-05-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems this was added in db7b6b95828c25df6f428bc21a5d6d1cb68287a0 (2009) and wasn't updated from then. -- nosy: +xtreak ___ Python tracker

[issue22454] Adding the opposite function of shlex.split()

2019-05-29 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset ca804955927dddb6ae5a846dbc0248a932be9a4e by Vinay Sajip (Bo Bayles) in branch 'master': bpo-22454: Add shlex.join() (the opposite of shlex.split()) (GH-7605) https://github.com/python/cpython/commit/ca804955927dddb6ae5a846dbc0248a932be9a4e --

[issue37030] Lib/cmd.py: Hide undocumented commands in help and completenames

2019-05-29 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: The EOF mentioned in [0] is indeed the same and was the first reason why I searched in the library code for a solution. Then saw it as an opportunity to create hidden functions in the shell. [0] https://bugs.python.org/issue13214#msg309788 -- ___

[issue13214] Cmd: list available completions from the cmd.Cmd subclass and filter out EOF handler(s)

2019-05-29 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: The EOF mentioned in msg309788 is the first reason why I searched in the library code for a solution. Then saw it as an opportunity to create hidden functions in the shell. So I created issue37030 [0] and PR13536 [1]. Later got notified about this thread.

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

2019-05-29 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +13542 pull_request: https://github.com/python/cpython/pull/13648 ___ Python tracker ___ ___

[issue32972] unittest.TestCase coroutine support

2019-05-29 Thread miss-islington
miss-islington added the comment: New changeset 4dd3e3f9bbd320f0dd556688e04db0a6b55a7b52 by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-32972: Async test case (GH-13386) https://github.com/python/cpython/commit/4dd3e3f9bbd320f0dd556688e04db0a6b55a7b52 -- nosy: +mis

[issue32972] unittest.TestCase coroutine support

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done. Let's keep the issue open until the documentation will be committed -- ___ Python tracker ___ _

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks for letting me know. Investigating. BrokenPipeError is not related, I had a plan to fix such messages during the beta phase. -- ___ Python tracker __

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2019-05-29 Thread Michele Angrisano
Michele Angrisano added the comment: I'm working on it. -- nosy: +mangrisano ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2019-05-29 Thread Tal Einat
Tal Einat added the comment: There a cleanly rebased PR up at GH-13648. I'd like to get opinions from additional people about this now that the PR is ready. Steve? Victor? Some discussion which happened in PR comments: Andrew Svetlov approved the changes for the asyncio tests. Stefan Krah

[issue37086] time.sleep error message misleading

2019-05-29 Thread Justin Fay
New submission from Justin Fay : Using python3.6 and calling `time.sleep` with an invalid argument the `TypeError` raised has the error message "TypeError: an integer is required". This is not the case as a float or integer is acceptable. Using python 2.7 the error message given is better "Ty

[issue33164] Blake 2 module update

2019-05-29 Thread Inada Naoki
Inada Naoki added the comment: New changeset d8b755167235e0621814eb5ac39163b3db6879bb by Inada Naoki (David Carlier) in branch 'master': bpo-33164: blake2 fix for HP-UX (GH-13633) https://github.com/python/cpython/commit/d8b755167235e0621814eb5ac39163b3db6879bb -- _

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-05-29 Thread Peter Edwards
Change by Peter Edwards : -- pull_requests: +13543 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13649 ___ Python tracker ___ ___

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2019-05-29 Thread Michele Angrisano
Change by Michele Angrisano : -- keywords: +patch pull_requests: +13544 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13652 ___ Python tracker ___

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: A champion is welcome :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-29 Thread Sihoon Lee
Change by Sihoon Lee : -- pull_requests: +13545 pull_request: https://github.com/python/cpython/pull/12524 ___ Python tracker ___ __

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-05-29 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +13546 pull_request: https://github.com/python/cpython/pull/11768 ___ Python tracker ___ __

[issue36709] Asyncio SSL keep-alive connections raise errors after loop close.

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: I would say that if requests a designed from scratch more idiomatic way could be with requests.Session() as session: session.get('https://example.com/') or session = requests.Session() session.get('https://example.com/') session.close() Like the recomme

[issue36974] Implement PEP 590

2019-05-29 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +13547 pull_request: https://github.com/python/cpython/pull/13653 ___ Python tracker ___ __

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-29 Thread Michael Felt
Michael Felt added the comment: On 25/05/2019 00:19, Erwan Le Pape wrote: > Erwan Le Pape added the comment: > > Thanks for testing that. It's good that you used an actual address because > that eliminates the possibility that AIX doesn't handle addresses it doesn't > really know about. > > O

[issue33918] Hooking into pause/resume of iterators/coroutines

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: decimal was changed from threading.local to contextvar usage. The module is "safe" not only for asyncio but for threading, trio etc. unittest.mock doesn't use explicit context all for patching. It changes global interpreter-wide objects instead. So, mock.patc

[issue33918] Hooking into pause/resume of iterators/coroutines

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

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

2019-05-29 Thread Ned Deily
Ned Deily added the comment: FWIW, my opinion on making this kind of wholesale change has not changed: see the discussion in PR 7800. I think the changes made there were not an improvement for all the reasons stated, primarily because this now requires people reading the code base to learn

[issue31749] Request: Human readable byte amounts in the standard library

2019-05-29 Thread desbma
Change by desbma : -- nosy: +desbma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-05-29 Thread Emmanuel Arias
Emmanuel Arias added the comment: hello, I will work on it, if there are no objection. :-) -- ___ Python tracker ___ ___ Python-bug

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you. The change is pretty straightforward. There is no need to jumbo PR, you can split the work into PR-per-module if it is more comfortable to you. I'm ok with reviewing any approach. -- ___ Python tracke

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: asyncio.gather: no docs for deprecated loop parameter -> Deprecate explicit loop parameter in all public asyncio APIs ___ Python tracker _

[issue31829] Portability issues with pickle

2019-05-29 Thread Cheryl Sabella
Cheryl Sabella added the comment: Bumping this discussion in case the should be merged for 3.8b1. Thanks! -- nosy: +cheryl.sabella ___ Python tracker ___

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-05-29 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi > There is no need to jumbo PR, you can split the work into PR-per-module if it > is more comfortable to you. Yes, I think that is better split I will try it. > I'm ok with reviewing any approach. Thanks! -- title: Deprecate explicit loop parameter

[issue36373] Deprecate explicit loop parameter in all public asyncio APIs

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- title: asyncio.gather: no docs for deprecated loop parameter -> Deprecate explicit loop parameter in all public asyncio APIs ___ Python tracker _

[issue36842] Implement PEP 578

2019-05-29 Thread Steve Dower
Steve Dower added the comment: New changeset 9ddc416e9f6635376312c3615193f19480ac772a by Steve Dower in branch 'master': bpo-36842: Fix reference leak in tests by running out-of-proc (GH-13556) https://github.com/python/cpython/commit/9ddc416e9f6635376312c3615193f19480ac772a -- ___

[issue36842] Implement PEP 578

2019-05-29 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-29 Thread Zackery Spytz
Zackery Spytz added the comment: Well, it turns out that implementing if_nameindex() on Windows using GetIfTable2Ex() was also quite simple. I've updated the PR. -- ___ Python tracker __

[issue14656] Add a macro for unreachable code

2019-05-29 Thread Zackery Spytz
Zackery Spytz added the comment: The Py_UNREACHABLE() macro was implemented in bpo-31338, so this issue can be closed. -- nosy: +ZackerySpytz ___ Python tracker ___ _

[issue37086] time.sleep error message misleading

2019-05-29 Thread Michele Angrisano
Michele Angrisano added the comment: The doc (3.7) says that the argument "may be a floating point number to indicate a more precise sleep time." I think that TypeError message is right because you can choose how much precision you need but it's optional. What do you think about that? --

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

2019-05-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 28, 2019, at 17:21, STINNER Victor wrote: > > > STINNER Victor added the comment: > >> To be clear, what is unsafe on macOS (as of 10.13, but even more so on >> 10.14) is calling into the Objective-C runtime between fork and exec. The >> problem

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-29 Thread David Carlier
Change by David Carlier : -- pull_requests: +13548 pull_request: https://github.com/python/cpython/pull/13654 ___ Python tracker ___ ___

[issue37087] Adding native id support for openbsd

2019-05-29 Thread David Carlier
New submission from David Carlier : Following up on bpo-36084 -- messages: 343896 nosy: David Carlier priority: normal pull_requests: 13549 severity: normal status: open title: Adding native id support for openbsd versions: Python 3.8 ___ Python trac

[issue37088] Add a way to schedule a function to be called from the main thread

2019-05-29 Thread Yury Selivanov
New submission from Yury Selivanov : When asyncio event loop is created in a non-main thread, it needs to initialize a so called ChildWatcher for it (a helper object to intercept subprocesses exits). Doing that requires to run code in the main thread. I propose to add a 'sys.addpendingcall'

[issue37088] Add a way to schedule a function to be called from the main thread

2019-05-29 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +13550 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13656 ___ Python tracker ___ _

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-29 Thread Eryk Sun
Change by Eryk Sun : -- nosy: -eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

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

2019-05-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 28, 2019, at 17:38, Ned Deily wrote: > > Ned Deily added the comment: > >> To be clear, what is unsafe on macOS (as of 10.13, but even more so on >> 10.14) is calling into the Objective-C runtime between fork and exec. > > No, it has *always* been

[issue33071] Document that PyPI no longer requires 'register'

2019-05-29 Thread miss-islington
miss-islington added the comment: New changeset 103b8d9f9179089019ddb363ec0098b63816001b by Miss Islington (bot) (Hai Shi) in branch '2.7': [2.7] bpo-33071: remove outdated PyPI docs (GH-13087) (GH-13584) https://github.com/python/cpython/commit/103b8d9f9179089019ddb363ec0098b63816001b

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-29 Thread Steve Dower
Steve Dower added the comment: Great, thanks Zackery! (And thanks for the ping - I don't notice GitHub notifications.) Had a few comments about error handling, but it looks great. -- ___ Python tracker ___

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

2019-05-29 Thread miss-islington
miss-islington added the comment: New changeset 34f4f5efea730504216ee19f237734e0bb0104ee by Miss Islington (bot) (Hrvoje Nikšić) in branch 'master': bpo-36794: Document that Lock.acquire is fair. (GH-13082) https://github.com/python/cpython/commit/34f4f5efea730504216ee19f237734e0bb0104ee ---

[issue22454] Adding the opposite function of shlex.split()

2019-05-29 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

2019-05-29 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

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

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-29 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: test_stream_shutdown_hung_task_prevents_cancellation was added as part of this issue. Seems to be a random error : https://ci.appveyor.com/project/python/cpython/builds/24901585 ==

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Wow! Thanks for the report. Internally it is pretty close to freebsd problem. The test is unstable, not asyncio code itself. The test uses future objects to synchronize client and server socket processing but looks like there are race conditions still. Please

[issue37086] time.sleep error message misleading

2019-05-29 Thread Eric V. Smith
Eric V. Smith added the comment: I think it's reasonable to change the TypeError to say integer or float. That's what _PyTime_FromObject is looking for. -- nosy: +eric.smith ___ Python tracker _

[issue36983] typing.__all__ has drifted from actual contents

2019-05-29 Thread miss-islington
miss-islington added the comment: New changeset d30da5dd9a8a965cf24a22bbaff8a5b1341c2944 by Miss Islington (bot) (Anthony Sottile) in branch 'master': bpo-36983: Fix typing.__all__ and add test for exported names (GH-13456) https://github.com/python/cpython/commit/d30da5dd9a8a965cf24a22bbaff8

[issue36983] typing.__all__ has drifted from actual contents

2019-05-29 Thread Guido van Rossum
Guido van Rossum added the comment: It looks like the backports need to be done manually. Hopefully you'll feel up to that, otherwise we can close without doing the backports. -- ___ Python tracker

[issue36794] asyncio.Lock documentation in Py3.8 lacks parts presented in documentation in Py3.6

2019-05-29 Thread miss-islington
miss-islington added the comment: New changeset 4e1e887203ef069bf293ecabd945f7567d6a4879 by Miss Islington (bot) in branch '3.7': bpo-36794: Document that Lock.acquire is fair. (GH-13082) https://github.com/python/cpython/commit/4e1e887203ef069bf293ecabd945f7567d6a4879 -- _

[issue36974] Implement PEP 590

2019-05-29 Thread Petr Viktorin
New submission from Petr Viktorin : New changeset aacc77fbd77640a8f03638216fa09372cc21673d by Petr Viktorin (Jeroen Demeyer) in branch 'master': bpo-36974: implement PEP 590 (GH-13185) https://github.com/python/cpython/commit/aacc77fbd77640a8f03638216fa09372cc21673d -- _

[issue37086] time.sleep error message misleading

2019-05-29 Thread Cheryl Sabella
Cheryl Sabella added the comment: While not exactly the same, issue35707 is also about time.sleep and floats. -- nosy: +cheryl.sabella ___ Python tracker ___ _

[issue22385] Define a binary output formatting mini-language for *.hex()

2019-05-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 0c2f9305640f7655ba0cd5f478948b2763b376b3 by Gregory P. Smith in branch 'master': bpo-22385: Support output separators in hex methods. (#13578) https://github.com/python/cpython/commit/0c2f9305640f7655ba0cd5f478948b2763b376b3 --

[issue36983] typing.__all__ has drifted from actual contents

2019-05-29 Thread Anthony Sottile
Anthony Sottile added the comment: yep, happy to do that -- I know I'll need to do 3.7, but should I also do 3.6? 3.5? -- ___ Python tracker ___ _

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

2019-05-29 Thread Michael Felt
Michael Felt added the comment: On 29/05/2019 16:36, Ned Deily wrote: > Ned Deily added the comment: > > FWIW, my opinion on making this kind of wholesale change has not changed: see > the discussion in PR 7800. I had actually read through that before I started on this. Your closing comment

[issue37015] Fix asyncio mock warnings

2019-05-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +13552 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13661 ___ Python tracker ___

[issue36983] typing.__all__ has drifted from actual contents

2019-05-29 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +13553 pull_request: https://github.com/python/cpython/pull/13662 ___ Python tracker ___ _

[issue36983] typing.__all__ has drifted from actual contents

2019-05-29 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +13554 pull_request: https://github.com/python/cpython/pull/13663 ___ Python tracker ___ _

[issue36974] Implement PEP 590

2019-05-29 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +13555 pull_request: https://github.com/python/cpython/pull/13665 ___ Python tracker ___ ___

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-29 Thread Zackery Spytz
Zackery Spytz added the comment: Thanks, Steve. I've addressed your comments on the PR. -- ___ Python tracker ___ ___ Python-bugs-l

[issue22117] Rewrite pytime.h to work on nanoseconds

2019-05-29 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Can somebody here explain the meaning of the comment in test_gdb.py # Tested function must not be defined with METH_NOARGS or METH_O, # otherwise call_function() doesn't call PyCFunction_Call() This test is breaking with PEP 590, see https://github.com/pytho

[issue22117] Rewrite pytime.h to work on nanoseconds

2019-05-29 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Petr claims to have a fix, https://github.com/python/cpython/pull/13665 -- ___ Python tracker ___ ___

[issue26836] Add memfd_create to os module

2019-05-29 Thread Christian Heimes
Christian Heimes added the comment: New changeset 43fdbd2729cb7cdbb5afb5d16352f6604859e564 by Christian Heimes (Zackery Spytz) in branch 'master': bpo-26836: Add os.memfd_create() (#13567) https://github.com/python/cpython/commit/43fdbd2729cb7cdbb5afb5d16352f6604859e564 --

[issue26836] Add memfd_create to os module

2019-05-29 Thread Christian Heimes
Christian Heimes added the comment: https://buildbot.python.org/all/#builders/99/builds/2738 is failing because some HUGE TLB constants are not defined on Gentoo. -- stage: patch review -> needs patch ___ Python tracker

[issue32388] Remove cross-version binary compatibility

2019-05-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: PR is merged now! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32388] Remove cross-version binary compatibility

2019-05-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset ada319bb6d0ebcc68d3e0ef2b4279ea061877ac8 by Antoine Pitrou in branch 'master': bpo-32388: Remove cross-version binary compatibility requirement in tp_flags (GH-4944) https://github.com/python/cpython/commit/ada319bb6d0ebcc68d3e0ef2b4279ea061877

[issue26836] Add memfd_create to os module

2019-05-29 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +13556 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13666 ___ Python tracker ___

[issue37088] Add a way to schedule a function to be called from the main thread

2019-05-29 Thread Eric Snow
Eric Snow added the comment: Note that I'm working on making pending calls per-interpreter (see issue #33608 and https://github.com/python/cpython/pull/12360 (since reverted)). As to exposing Py_AddPendingCall() as sys.addpendingcall, that might be opening a can of worms. Injecting code int

[issue26836] Add memfd_create to os module

2019-05-29 Thread miss-islington
miss-islington added the comment: New changeset e70bfa95e6f0c98b9906f306f24d71f8b7689f87 by Miss Islington (bot) (Zackery Spytz) in branch 'master': bpo-26836: Add ifdefs for all MFD_HUGE* constants (GH-13666) https://github.com/python/cpython/commit/e70bfa95e6f0c98b9906f306f24d71f8b7689f87

[issue36974] Implement PEP 590

2019-05-29 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset fecb75c1bb46c818e6579ba422cfa5d0d9d104d1 by Petr Viktorin in branch 'master': bpo-36974: Fix GDB integration (GH-13665) https://github.com/python/cpython/commit/fecb75c1bb46c818e6579ba422cfa5d0d9d104d1 -- __

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

2019-05-29 Thread Anthony Sottile
New submission from Anthony Sottile : Additionally, virtualenvs have the root of their directory on `sys.path` -- this is unlike posix behaviour For example: $ python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD6 4)] on win32 Type "help", "copyright", "credi

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

2019-05-29 Thread Steve Dower
Steve Dower added the comment: I don't think we can change the assumption that sys.prefix is in sys.path at this point, though technically it's not required (certainly not in 3.7). Maybe we could create a new marker file that means "never treat this directory as a namespace package"? --

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-29 Thread Steve Dower
Steve Dower added the comment: New changeset 8f96c9f8ed2a4795e34b333411451e24f28f74d2 by Steve Dower (Zackery Spytz) in branch 'master': bpo-37007: Implement socket.if_nametoindex(), if_indextoname() and if_nameindex() on Windows (GH-13522) https://github.com/python/cpython/commit/8f96c9f8ed

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

2019-05-29 Thread Anthony Sottile
Anthony Sottile added the comment: sys.prefix isn't on sys.path on other platforms -- why is it on windows? -- ___ Python tracker ___ _

[issue14656] Add a macro for unreachable code

2019-05-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue37090] test_gdb's test_pycfunction should test all calling conventions

2019-05-29 Thread Petr Viktorin
New submission from Petr Viktorin : test_gdb.StackNavigationTests.test_pycfunction checks that the GDB integration can pick up calls to C-API functions. Currently it includes the comment: > Tested function must not be defined with METH_NOARGS or METH_O, > otherwise call_function() doesn't call

[issue37090] test_gdb's test_pycfunction should test all calling conventions

2019-05-29 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +13557 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13668 ___ Python tracker ___ __

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

2019-05-29 Thread Steve Dower
Steve Dower added the comment: Honestly, no idea. Because it always has been :) If you can find when it was added, we may be able to answer that. -- ___ Python tracker ___ __

[issue36974] Implement PEP 590

2019-05-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: BUILDBOT FAILURE REPORT === Builder name: AMD64 Ubuntu Shared 3.x Builder url: https://buildbot.python.org/all/#/builders/141/ Build url: https://buildbot.python.org/all/#/builders/141/builds/1866 Failed tests - test_p

[issue36974] Implement PEP 590

2019-05-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: @Petr is https://bugs.python.org/issue37090 and https://github.com/python/cpython/pull/13668 also addressing the buildbot failures? -- ___ Python tracker __

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-29 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue37088] Add a way to schedule a function to be called from the main thread

2019-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: > As to exposing Py_AddPendingCall() as sys.addpendingcall, that might be > opening a can of worms. Injecting code into the eval loop at some arbitrary > ("soon") future time requires care and the code isn't well exercised > historically (much like subinter

[issue36974] Implement PEP 590

2019-05-29 Thread Petr Viktorin
Petr Viktorin added the comment: No, just https://github.com/python/cpython/pull/13665 is addressing the failures. And it seems that it's successful -- only the slowest of the failed ones (AMD64 Ubuntu Shared 3.x) is still red. bpo-37090 extends the test so it can catch more bugs in the fut

[issue37088] Add a way to schedule a function to be called from the main thread

2019-05-29 Thread Eric Snow
Eric Snow added the comment: > Well, it's absolutely the same mechanism that signal handlers use. Antoine changed signals a while back so they no longer use the pending calls machinery. -- ___ Python tracker _

[issue36974] Implement PEP 590

2019-05-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Great! Thank you very much for the quick fix for the problem. For AMD64 Ubuntu Shared 3.x, the last build was successful: https://buildbot.python.org/all/#/builders/141/builds/1870/steps/5/logs/stdio -- ___

[issue37088] Add a way to schedule a function to be called from the main thread

2019-05-29 Thread Eric Snow
Eric Snow added the comment: If this is about signals, it isn't enough just to run on the main thread. It also has to be the main interpreter. -- ___ Python tracker ___

[issue36974] Implement PEP 590

2019-05-29 Thread Petr Viktorin
Petr Viktorin added the comment: All stable buildbots are back to green. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue37088] Add a way to schedule a function to be called from the main thread

2019-05-29 Thread STINNER Victor
STINNER Victor added the comment: I dislike pending calls. It is a weird beast which complicates ceval.c. I would prefer to remove it. It is no longer needed to handle signals! At least, it sounds like a bad idea to me to expose it in Python in a public API. If you really need it, hide it bet

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

2019-05-29 Thread Anthony Sottile
Anthony Sottile added the comment: If I'm reading this correctly this is the relevant line for python3: https://github.com/python/cpython/blob/29cb21ddb92413931e473eb799a02e2d8cdf4a45/PC/getpathp.c#L1068 it was added in 4d0d471a8031de90a2b1ce99c4ac4780e60b3bc9 python2 seems to do the same as

  1   2   >