[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9960230f76eb555d6dfbe8a324efed35610c85f9 by Łukasz Langa (Dong-hee Na) in branch 'master': bpo-22367: Update test_fcntl.py for spawn process mode (#17154) https://github.com/python/cpython/commit/9960230f76eb555d6dfbe8a324efed35610c85f9 -

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16749 pull_request: https://github.com/python/cpython/pull/17253 ___ Python tracker ___ __

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16748 pull_request: https://github.com/python/cpython/pull/17252 ___ Python tracker ___ __

[issue21767] singledispatch docs should explicitly mention support for abstract base classes

2019-11-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 24555ce2f969bd69517011d23aaf8cc481090211 by Łukasz Langa (Batuhan Taşkaya) in branch 'master': bpo-21767: explicitly mention abc support in functools.singledispatch docs (#17171) https://github.com/python/cpython/commit/24555ce2f969bd69517011d23aa

[issue21767] singledispatch docs should explicitly mention support for abstract base classes

2019-11-19 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-19 Thread Dong-hee Na
Dong-hee Na added the comment: https://dev.azure.com/python/cpython/_build/results?buildId=54136&view=results Looks okay at this time. It was nerve-racking, I worried about my mistake affect publishing Python 3.9.0 alpha1. Thank you everyone who helps me. -- ___

[issue38722] runpy should use io.open_code() instead of open()

2019-11-19 Thread Tal Einat
Tal Einat added the comment: Thanks for the clarification Steve! I've backported this to 3.8. -- ___ Python tracker ___ ___ Python-

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-19 Thread Jukka Väisänen
Jukka Väisänen added the comment: I had a quick search through github for calls to create_datagram_endpoint() and the reuse_address is either not set or set explicitly to True, probably due to the error in the documentation. Only in one case (of my admittedly small sample) did it seem like th

[issue36424] Pickle fails on frozen dataclass that has slots

2019-11-19 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +16750 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17254 ___ Python tracker ___ __

[issue36424] Pickle fails on frozen dataclass that has slots

2019-11-19 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-11-19 Thread Batuhan
Batuhan added the comment: Is there a consensus about fixing this? By the way, this isn't valid in the current tokenizer too. 1,0-1,2:NAME 'iÌ' 1,2-1,3:ERRORTOKEN '‡' 1,4-1,5:OP '=' 1,6-1,7:NUMBER '5' 1,7-1,8:

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Pierre Chatelier
Pierre Chatelier added the comment: Can't reproduce any more. It might have been specific to the Visual Studio version I used at that time. -- ___ Python tracker ___ _

[issue38845] test_shared_memory_SharedMemoryServer_ignores_sigint and others fail on Guix

2019-11-19 Thread tlecarrour
New submission from tlecarrour : Dear Python Bugs Team, Some tests fail when building Python 3.8 on Guix, for instance : ``` FAIL: test_shared_memory_SharedMemoryServer_ignores_sigint (test.test_multiprocessing_spawn.WithProcessesTestSharedMemory) --

[issue38828] http.cookiejar handle cookie.version to be None

2019-11-19 Thread Alex
Alex added the comment: Hi, it looks like this needs a fix - I'll write a patch to fix up the handling and add some more testing to cover this scenario. -- nosy: +alclarks ___ Python tracker ___

[issue38680] PyGILState_Release does not release gil correctly, resulting in deadlock

2019-11-19 Thread Damien LEFEVRE
Damien LEFEVRE added the comment: Back to testing this. I have the same issue on Linux, i.e: the deadlock on PyGILState_Ensure. I cannot test 3.8 because many of the modules are not yet available for this version. I'll try making a small test application to reproduce the issue. --

[issue38846] async: Return context manager from open(_unix)_connection

2019-11-19 Thread Sebastian Rittau
New submission from Sebastian Rittau : As a convenience it would be useful if async.open_connection() and open_unix_connection() would return a context manager that closes the writer on exit: with await open_unix_connection(...) as (reader, writer): ... This could be achieved by

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-19 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: @Mark @Brett Well, PEP 523 still works (it's just more inconvenient to use now). Still, if PEP 523 will still be supported I think that having the setter/getter makes sense. If it is to be deprecated as @Mark is suggesting it doesn't really make sense to a

[issue38846] async: Return context manager from open(_unix)_connection

2019-11-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: >From my understanding, Yuri doesn't want to improve the existing streaming API >but invent something blessing new. The improvement like you proposed has a very low chance to be accepted. -- ___ Python tracker

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
New submission from Batuhan : I was going through old issues and I found @inada.naoki's comment on issue 36551 > How about converting `[x for x in it]` to `[*it]` in AST? Is this feature still wanted? I can try to work on an implementation for this if there is a need. Also should this cover s

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
Change by Batuhan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
Change by Batuhan : -- components: +Interpreter Core versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27724] PEP3119 inconsintent with actual CPython impl

2019-11-19 Thread Guido van Rossum
Guido van Rossum added the comment: Presumably when the implementation was done the IS_ABSTRACT name sounded more logical than just ABSTRACT. Since the PEP doesn't *specify* the name of this flag[1] I see no reason to change anything. Closing. _ [1] The PEP mentions this flag exactly onc

[issue38837] struct.pack: Unable to pack more than 256 bytes at a time

2019-11-19 Thread Dave Lotton
Dave Lotton added the comment: Mark, you are absolutely correct. I'm an idiot. Focused on wrong thing. Thank you. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset 8e0de2a4808d7c2f4adedabff89ee64e0338790a by Miss Islington (bot) (Vincent Michel) in branch 'master': bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755) https://github.com/python/cpython/commit/8e0de2a4808d7c2f4adedabff89ee64e0

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16752 pull_request: https://github.com/python/cpython/pull/17258 ___ Python tracker ___ __

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16751 pull_request: https://github.com/python/cpython/pull/17257 ___ Python tracker ___ __

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-11-19 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.6 ___ Python tracker ___

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset 6c3b471c8c0bfd49c664d8ee7e95da3710fd6069 by Miss Islington (bot) in branch '3.8': bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755) https://github.com/python/cpython/commit/6c3b471c8c0bfd49c664d8ee7e95da3710fd6069 --

[issue35409] Async generator might re-throw GeneratorExit on aclose()

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset 4ffc569b47bef9f95e443f3c56f7e7e32cb440c0 by Miss Islington (bot) in branch '3.7': bpo-35409: Ignore GeneratorExit in async_gen_athrow_throw (GH-14755) https://github.com/python/cpython/commit/4ffc569b47bef9f95e443f3c56f7e7e32cb440c0 --

[issue38576] CVE-2019-18348: CRLF injection via the host part of the url passed to urlopen()

2019-11-19 Thread STINNER Victor
Change by STINNER Victor : -- components: +Library (Lib) versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ _

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Zachary Ware
Zachary Ware added the comment: Thanks for reporting back. If you find that you can provide a reliable reproducer later, do please reopen and attach it. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Pierre Chatelier
Pierre Chatelier added the comment: Just reproduced and solved it at the same time ! It happened with Debug build, where I linked to pythonxx.lib instead of pythonxx_d.lib, because I did not download the debug binaries. Ultimately : my fault. -- __

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Pierre Chatelier
Change by Pierre Chatelier : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-19 Thread Pierre Chatelier
Pierre Chatelier added the comment: Aaand finally there is still something : it depends on the call context. Once in a C++/CLI class, the link bug occurs again. Here is attached a minimal project. -- status: closed -> open Added file: https://bugs.python.org/file48721/PythonFromC.zip

[issue38848] test_compileall fails when the platform lacks a functional sem_open()

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : See also the related issues: #32126: [asyncio] test failure when the platform lacks a functional sem_open() #28668: instanciation of multiprocessing.Queue raises ImportError in test_logging The test failure on android API 24: generic_x86_64:/data/local/tm

[issue25172] Unix-only crypt should not be present on Windows.

2019-11-19 Thread Xavier de Gaye
Change by Xavier de Gaye : -- resolution: fixed -> stage: resolved -> needs patch status: closed -> open ___ Python tracker ___ ___

[issue38849] test_timestamp_naive fails on android

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : test_timestamp_naive of test_datetime fails on android API 24: generic_x86_64:/data/local/tmp/python $ python -m test -v test_datetime -m test_timestamp_naive == CPython 3.9.0a0 (heads/abifa-dirty:cf805c25e6, Nov 18 2019, 16:40:26) [Clang 8.0.2 (https://an

[issue38850] test_largefile fails on android

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : The failure on andoid API 24: generic_x86_64:/data/local/tmp/python $ python -m test -v test_largefile -m test_it == CPython 3.9.0a0 (heads/abifa-dirty:cf805c25e6, Nov 18 2019, 16:40:26) [Clang 8.0.2 (https://andro id.googlesource.com/toolchain/clang 40173

[issue38850] test_largefile fails on android

2019-11-19 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: I got the same failures on Fedora rawhide. See https://bugs.python.org/issue37096 -- nosy: +cstratak ___ Python tracker ___ _

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +16753 pull_request: https://github.com/python/cpython/pull/17260 ___ Python tracker ___ ___

[issue38841] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2019-11-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Do I understand you correctly: is Android forbids UDP Unix sockets for non-root user? Maybe the socket path should point on another location to get the test passed? -- ___ Python tracker

[issue38841] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2019-11-19 Thread Xavier de Gaye
Xavier de Gaye added the comment: No, it is the SELinux configuration on android devices that forbids binds to named UNIX sockets. Changing from a named UNIX socket to an unnamed UNIX socket would fix the problem. I don't know if all platforms support unnamed UNIX sockets. The fix in issue

[issue35943] PyImport_GetModule() can return partially-initialized module

2019-11-19 Thread Brett Cannon
Brett Cannon added the comment: I've assigned this to Joannah to decide if she wants to backport this. -- assignee: -> nanjekyejoannah nosy: +nanjekyejoannah ___ Python tracker _

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-19 Thread Brett Cannon
Brett Cannon added the comment: I think the real question is whether this is part of the CPython public API or the CPython internal API. @Fabio how burdensome would it be if we placed this in the internal API that you can get access to but we don't make backwards-compatibility guarantees ab

[issue26278] BaseTransport.close() does not trigger connection_lost()

2019-11-19 Thread Sümer Cip
Sümer Cip added the comment: Closing the issue seems like a good idea: as it seems nobody seems to have spotted similar issue and I have only been able to reproduce it in Python 3.4. Just for future ref.: The uncommon thing is that the server I was using is a TCP game server holding long-run

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-19 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: @Bret I don't really see a problem in breaking the API in major releases (so, having access for it in the internal API but without a backwards-compatibility guarantee seems like a good fit for me). -- ___ Python

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread Thomas Wouters
Thomas Wouters added the comment: New changeset 54b32c987146123f2237f0e21b1d02b1c1ebdf6f by T. Wouters (Brandt Bucher) in branch 'master': bpo-38823: Clean up refleak in fcntl module initialization. (GH-17236) https://github.com/python/cpython/commit/54b32c987146123f2237f0e21b1d02b1c1ebdf6f

[issue38851] UDPLITE tests fail on android

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : Attached test_socket.txt is the output of running 'python -m test -v test_socket' on android API 24. The 108 tests in error are UDPLITE tests introduced in issue #37345. -- components: Tests files: test_socket.txt messages: 356985 nosy: asvetlov, g

[issue38839] Fix some unused functions in test suite

2019-11-19 Thread Brett Cannon
Change by Brett Cannon : -- title: Some unused functions in test suite -> Fix some unused functions in test suite ___ Python tracker ___ __

[issue38839] Fix some unused functions in test suite

2019-11-19 Thread Brett Cannon
Brett Cannon added the comment: New changeset 892221bfa04a41cf581f988ba19dc263f557e157 by Brett Cannon (Adam Johnson) in branch 'master': bpo-38839: Fix some unused functions in tests (GH-17189) https://github.com/python/cpython/commit/892221bfa04a41cf581f988ba19dc263f557e157 -- nos

[issue38839] Fix some unused functions in test suite

2019-11-19 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset c6b20be85c0de6f2355c67ae6e7e578941275cc0 by Miss Islington (bot) (Jake Tesler) in branch 'master': bpo-38707: Fix for multiprocessing.Process MainThread.native_id (GH-17088) https://github.com/python/cpython/commit/c6b20be85c0de6f2355c67ae6e7e57

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16754 pull_request: https://github.com/python/cpython/pull/17261 ___ Python tracker ___ __

[issue38852] test_recursion_limit in test_threading crashes with SIGSEGV on android

2019-11-19 Thread Xavier de Gaye
New submission from Xavier de Gaye : Actually it is the script that is spawned by test_recursion_limit that crashes with SIGSEGV on android API 24. Lowering the recursion limit in the script from 1000 to 100 with sys.setrecursionlimit() fixes the problem. Here is the error: generic_x86_64:/d

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset 829593a9262e67c72167c6cb20d383203b2ea410 by Miss Islington (bot) in branch '3.8': bpo-38707: Fix for multiprocessing.Process MainThread.native_id (GH-17088) https://github.com/python/cpython/commit/829593a9262e67c72167c6cb20d383203b2ea410

[issue26278] BaseTransport.close() does not trigger connection_lost()

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: If a bug cannot be reproduced, it cannot be fixed. So I close the issue ;-) -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue38853] set.repr breaches docstring contract

2019-11-19 Thread Cat Chenal
New submission from Cat Chenal : S = {19,8,-1,25,0,1,2,3,4,5,6,7} print('Set S = {{19,8,-1,25,0,1,2,3,4,5,6,7}}') The set is represented by a new string-ordered set: print(f'Its repr is:\n{S}\n') Output: {0, 1, 2, 3, 4, 5, 6, 7, 8, 19, 25, -1} This is a breach of the contract stated in the doc

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Jake for the report and PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 ___ Python tracker __

[issue38854] Decorator breaks inspect.getsource

2019-11-19 Thread Guido Imperiale
New submission from Guido Imperiale : Python 3.7.5 and 3.8.0 A decorator causes inspect.getsource() to return clipped output: from collections import defaultdict from functools import wraps import inspect def foo(*args): def decorator(func): @wraps(func) def wrapper():

[issue38855] test_unpack.py does not catch the unpacking of a set

2019-11-19 Thread Cat Chenal
New submission from Cat Chenal : S = {19,8,-1,25,0,1,2,3,4,5,6,7} a, *b, c = S print('a:', a) print('b:', b) print('c:', c) Output: a: 0 b: [1, 2, 3, 4, 5, 6, 7, 8, 19, 25] c: -1 Either test_unpack.py needs a test for "non-indexable object" to prevent this unpacking of a non-sequence, or the

[issue38841] [asyncio] bind() on a unix socket raises PermissionError on Android for a non-root user

2019-11-19 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please feel free to make a PR for applying @skip_unless_bind_unix_socket decorator. -- ___ Python tracker ___ __

[issue38856] wait_closed() can raise ConnectionResetError

2019-11-19 Thread Yury Selivanov
New submission from Yury Selivanov : The exception should probably be just ignored. Andrew, thoughts? Here's an example error traceback: Traceback (most recent call last): File "c:\projects\asyncpg\asyncpg\connection.py", line 1227, in _cancel await w.wait_closed()

[issue38853] set.repr breaches docstring contract

2019-11-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm sorry, I don't understand what part of the documentation you think is violated here. The docs say that sets are unordered, but of course when printing the elements have to be given in *some* order. The given output seems unordered to me: -1 is smaller t

[issue38707] Multiprocessing: bug with Native ID for threading.mainthread()

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix. That was an interesting bug ;-) I like the simplicity of the fix. -- ___ Python tracker ___

[issue33125] Windows 10 ARM64 platform support

2019-11-19 Thread Dan
Dan added the comment: According to this - https://wiki.tcl-lang.org/page/Building+with+Visual+Studio+2017 the issue will be fixed in the next version (8.6.10). TLDR explanation: Tcl/Tk has variables with names that are now reserved keywords in VS2017, meaning that it can't be build with rece

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2019-11-19 Thread Jason Fried
New submission from Jason Fried : If you are trying to use AsyncMock to mock a coroutine that returns awaitable objects, AsyncMock awaits on those objects instead of returning them as is. Example: mock = AsyncMock(return_value=asyncio.Future()) v = await mock() # blocks on trying to awai

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-19 Thread STINNER Victor
New submission from STINNER Victor : Currently, new_interpreter() is a subset of Py_InitializeFromConfig(): the code was duplicated. I would prefer that both functions stay in sync and so that new_interpreter() reuses more Py_InitializeFromConfig() code. -- components: Interpreter Cor

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset ac2235432c607ce2c0faf6dff5d9b2534d2f6652 by Victor Stinner (Brandt Bucher) in branch 'master': bpo-38823: Fix refleaks in faulthandler init error path on Windows (GH-17250) https://github.com/python/cpython/commit/ac2235432c607ce2c0faf6dff5d9b25

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16756 pull_request: https://github.com/python/cpython/pull/17264 ___ Python tracker ___ __

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16755 pull_request: https://github.com/python/cpython/pull/17263 ___ Python tracker ___ __

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-19 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16757 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17265 ___ Python tracker ___ _

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset 5bd2af9c79796aa03b06d1e35ab6df7e28364e24 by Miss Islington (bot) in branch '3.7': bpo-38823: Fix refleaks in faulthandler init error path on Windows (GH-17250) https://github.com/python/cpython/commit/5bd2af9c79796aa03b06d1e35ab6df7e28364e24 -

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset a5ed2fe0eedefa1649aa93ee74a0bafc8e628a10 by Miss Islington (bot) in branch '3.8': bpo-38823: Fix refleaks in faulthandler init error path on Windows (GH-17250) https://github.com/python/cpython/commit/a5ed2fe0eedefa1649aa93ee74a0bafc8e628a10 -

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset ef5aa9af7c7e493402ac62009e4400aed7c3d54e by Victor Stinner in branch 'master': bpo-38858: Reorganize pycore_init_types() (GH-17265) https://github.com/python/cpython/commit/ef5aa9af7c7e493402ac62009e4400aed7c3d54e -- _

[issue37957] Allow regrtest to receive a file with test (and subtests) to ignore

2019-11-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e0cd8aa70a3ce19c3d3712568940aa0cbd9aa97b by Pablo Galindo in branch 'master': bpo-37957: Allow regrtest to receive a file with test (and subtests) to ignore (GH-16989) https://github.com/python/cpython/commit/e0cd8aa70a3ce19c3d3712568940

[issue37957] Allow regrtest to receive a file with test (and subtests) to ignore

2019-11-19 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8 ___ Python tracker ___

[issue38631] Replace Py_FatalError() with regular Python exceptions

2019-11-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16758 pull_request: https://github.com/python/cpython/pull/17266 ___ Python tracker ___ __

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: IMHO, I think is such a specific use case that is not worth the maintenance cost. Especially because of such list comprehension is very uncommon as you can simply do `list(it)` which more readable and anecdotally faster. -- nosy: +pablogsal _

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2019-11-19 Thread Jason Fried
Change by Jason Fried : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue38859] AsyncMock says it raises StopIteration but that is Impossible

2019-11-19 Thread Jason Fried
New submission from Jason Fried : If an AsyncMock uses a side_effect that is an Iterable, if called more than items exist its suppose to raise StopIteration according to the docs but PEP 479 says that is impossible. My Suggestion is that we update the docs and the code to Raise a StopAsyncI

[issue38631] Replace Py_FatalError() with regular Python exceptions

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 444b39bb64aa894d3f1831210a8ce40042a5a532 by Victor Stinner in branch 'master': bpo-38631: Avoid Py_FatalError() in handle_legacy_finalizers() (GH-17266) https://github.com/python/cpython/commit/444b39bb64aa894d3f1831210a8ce40042a5a532

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-11-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16759 pull_request: https://github.com/python/cpython/pull/17267 ___ Python tracker ___ __

[issue38753] AsyncMock not cited as new in 3.8

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16760 pull_request: https://github.com/python/cpython/pull/17268 ___ Python tracker ___ __

[issue38753] AsyncMock not cited as new in 3.8

2019-11-19 Thread Lisa Roach
Lisa Roach added the comment: New changeset 279d8df5e5e8bbd4429420649359f7afcb4c8cce by Lisa Roach (John Belmonte) in branch 'master': bpo-38753: AsyncMock added in version 3.8 (GH-17102) https://github.com/python/cpython/commit/279d8df5e5e8bbd4429420649359f7afcb4c8cce -- _

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-19 Thread David Cuthbert
David Cuthbert added the comment: I'm working on patches for the deprecation bits (targeting 3.6 for now; will work my way up from there) for review, including documentation. Unless someone tells me to stop. :-) In an attempt to make this not-so-Linux-specific, I'm reviewing how this works

[issue38859] AsyncMock says it raises StopIteration but that is Impossible

2019-11-19 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch pull_requests: +16762 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17269 ___ Python tracker ___

[issue38857] AsyncMock issue with awaitable return_value/side_effect/wraps

2019-11-19 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch pull_requests: +16761 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17269 ___ Python tracker ___

[issue36287] Make ast.dump() not output optional default fields

2019-11-19 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: No objections from me assuming you are going forward along the way proposed by Serhiy (i.e. only skip values for certain fields if value is the default, not a blanket skip for all Nones and empty lists). -- ___ P

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2e96906da764402b4c8062dbf99171ca506f9e12 by Victor Stinner in branch 'master': bpo-36710: Pass tstate parameter to GC collect() (GH-17267) https://github.com/python/cpython/commit/2e96906da764402b4c8062dbf99171ca506f9e12 -- __

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-11-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16763 pull_request: https://github.com/python/cpython/pull/17270 ___ Python tracker ___ __

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16765 pull_request: https://github.com/python/cpython/pull/17272 ___ Python tracker ___ __

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 33b671e72450bf4b5a946ce0dde6b7fe21150108 by Victor Stinner (Brandt Bucher) in branch 'master': bpo-38823: Fix refleak in marshal init error path (GH-17260) https://github.com/python/cpython/commit/33b671e72450bf4b5a946ce0dde6b7fe21150108 -

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16764 pull_request: https://github.com/python/cpython/pull/17271 ___ Python tracker ___ __

[issue37957] Allow regrtest to receive a file with test (and subtests) to ignore

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: I'm trying to keep regrtest in sync between 3.7, 3.8 and master branches. Maybe backport this change to 3.7 and 3.8 branches once buildbots validated the change? I'm keeping them in sync mostly to make bugfixes easier, but also to make my life easier when I

[issue37957] Allow regrtest to receive a file with test (and subtests) to ignore

2019-11-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, I reopen until the backports -- resolution: fixed -> status: closed -> open ___ Python tracker ___ __

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 01b1cc12e7c6a3d6a3d27ba7c731687d57aae92a by Victor Stinner in branch 'master': bpo-36710: Add PyInterpreterState.runtime field (GH-17270) https://github.com/python/cpython/commit/01b1cc12e7c6a3d6a3d27ba7c731687d57aae92a -- ___

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-19 Thread David Cuthbert
David Cuthbert added the comment: FreeBSD 12.1 and MacOS 10.15.1 (Catalina) appear to have saner and safer behavior. Both require the use of SO_REUSEPORT for this behavior to happen as well. FreeBSD also requires the UID to be the same or 0 for subsequent processes to make the bind() call.

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16766 pull_request: https://github.com/python/cpython/pull/17273 ___ Python tracker ___ __

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: The Azure Pipelines are sick tonight (unable to publish test results). PR #17272 and PR #17271 are blocked by this CI. -- ___ Python tracker ___

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Pablo. Thank you for the suggestion though. -- nosy: +rhettinger resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___

  1   2   >