[issue39134] can't construct dataclass as ABC (or runtime check as data protocol)

2020-01-18 Thread Alexander Hirner
Alexander Hirner added the comment: In that case, what should the getter return? It doesn't know about the implementation of x. Maybe I'm not getting the idea behind adding getters/setters. -- ___ Python tracker

[issue39386] getting invalid data from async iterator

2020-01-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker ___ ___ Python-bugs-list

[issue19770] NNTP: add post_message wrapper to post Email Message objects

2020-01-18 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +17455 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18061 ___ Python tracker _

[issue35561] Valgrind reports Syscall param epoll_ctl(event) points to uninitialised byte(s)

2020-01-18 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +17454 pull_request: https://github.com/python/cpython/pull/18060 ___ Python tracker ___ ___

[issue39386] getting invalid data from async iterator

2020-01-18 Thread John-Mark Gurney
New submission from John-Mark Gurney : If I create a coro from an async iterator, then wait_for it w/ a timeout, but shielded, so it won't get canceled, and then await upon it, it returns invalid data. See the attached test case. The reason I do the following is to make sure that an async it

[issue32330] Email parser creates a message object that can't be flattened

2020-01-18 Thread Mark Sapiro
Change by Mark Sapiro : -- keywords: +patch pull_requests: +17453 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18059 ___ Python tracker ___

[issue32330] Email parser creates a message object that can't be flattened

2020-01-18 Thread Mark Sapiro
Change by Mark Sapiro : -- versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-01-18 Thread Mark Sapiro
Change by Mark Sapiro : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37224] test__xxsubinterpreters fails randomly

2020-01-18 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +17452 pull_request: https://github.com/python/cpython/pull/18058 ___ Python tracker ___

[issue39349] Add "cancel_futures" parameter to concurrent.futures.Executor.shutdown()

2020-01-18 Thread Kyle Stanley
Change by Kyle Stanley : -- keywords: +patch pull_requests: +17451 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18057 ___ Python tracker

[issue39349] Add "cancel_futures" parameter to concurrent.futures.Executor.shutdown()

2020-01-18 Thread Kyle Stanley
Kyle Stanley added the comment: I now have a working implementation, for both ThreadPoolExecutor and ProcessPoolExecutor. I've also ensured that the tests I added are not vulnerable to race conditions with the following: ``` [aeros:~/repos/aeros-cpython]$ ./python -m test test_concurrent_fut

[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-01-18 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17449 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18056 ___ Python tracker ___ __

[issue29270] super call in ctypes sub-class fails in 3.6

2020-01-18 Thread Clement Rouault
Clement Rouault added the comment: Hello, As this issue may never be fixed for python3.6. I wanted to post a solution to bypass the bug. It may be useful for the next person stumbling on this as I have. The __class__ closure is only created if a function use the word super(). This closure

[issue38799] race condition in multiprocessing.Pool with maxtasksperchild=1

2020-01-18 Thread Jacopo Tediosi
Jacopo Tediosi added the comment: Happening to me on Python3.9 too Also when calling pool.terminate(), causing my script to hang -- nosy: +Jacopo Tediosi versions: +Python 3.9 -Python 3.6 ___ Python tracker

[issue39385] Add an assertNoLogs context manager to unittest TestCase

2020-01-18 Thread Kit Yan Choi
New submission from Kit Yan Choi : assertLogs is really useful (issue18937). Unfortunately it does not cover the use cases where one wants to ensure no logs are emitted. Similar to assertLogs, we can have a context manager for asserting no logs, something like this?: with assertNoLogs(logger

[issue39384] Email parser creates a message object that can't be flattened as bytes.

2020-01-18 Thread Mark Sapiro
New submission from Mark Sapiro : This is similar to https://bugs.python.org/issue32330 but is the opposite behavior. In that issue, the message couldn't be flattened as a string but could be flattened as bytes. Here, the message can be flattened as a string but can't be flattened as bytes. T

[issue39383] Mention Darwin as a potential value for platform.system()

2020-01-18 Thread Peter Bittner
New submission from Peter Bittner : The platform module's documentation mentions 'Linux', 'Windows' and 'Java' explicitly as values for `platform.system()`. https://docs.python.org/3/library/platform.html#platform.system Given the popularity of macOS among developers, this gives the impressio

[issue39382] abstract_issubclass() doesn't take bases tuple item ref

2020-01-18 Thread Yonatan Goldschmidt
New submission from Yonatan Goldschmidt : I encountered a crash using rpyc. Since rpyc is pure-Python, I guessed the problem is with Python itself. Originally tested on v3.7, the rest of this issue is based on v3.9.0a2 (compiling on an Ubuntu 18.04 docker). I narrowed down the rpyc-based sni

[issue39372] The header files in Include/ have many declarations with no definition

2020-01-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Maybe backport this change (except PyNoArgsFunction)? I didn't think of backporting to reduce the possibilities of something going wrong, but is true that a backport without PyNoArgsFunction should be harmless. Reopening the issue meanwhile I do on

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-01-18 Thread Eryk Sun
Eryk Sun added the comment: The warning would not apply to Windows. The environment block is part of the Process Environment Block (PEB) record, which is protected by a critical-section lock. The runtime library acquires the PEB lock before accessing mutable PEB values. For example: Getting

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2020-01-18 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: +17447 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18052 ___ Python tracker ___

[issue39381] Fix get_event_loop documentation

2020-01-18 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +17446 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18051 ___ Python tracker ___ _

[issue39381] Fix get_event_loop documentation

2020-01-18 Thread Andrew Svetlov
New submission from Andrew Svetlov : The current documentation says: "If there is no current event loop set in the current OS thread and set_event_loop() has not yet been called, asyncio will create a new event loop and set it as the current one." https://docs.python.org/3.7/library/asyncio-e

[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread SilentGhost
Change by SilentGhost : -- versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list ma

[issue39316] settrace skips lines when chaining methods without arguments

2020-01-18 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue39309] Please delete my account

2020-01-18 Thread Terry J. Reedy
New submission from Terry J. Reedy : David, do you know about bpo account deletion? -- nosy: +r.david.murray, terry.reedy ___ Python tracker ___ ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-01-18 Thread hai shi
Change by hai shi : -- pull_requests: +17445 pull_request: https://github.com/python/cpython/pull/18050 ___ Python tracker ___ ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-01-18 Thread hai shi
Change by hai shi : -- pull_requests: +17444 pull_request: https://github.com/python/cpython/pull/18049 ___ Python tracker ___ ___

[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen
Change by Sebastian G Pedersen : -- keywords: +patch pull_requests: +17443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18048 ___ Python tracker ___

[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen
Change by Sebastian G Pedersen : -- components: Library (Lib) nosy: SebastianGPedersen priority: normal severity: normal status: open title: ftplib uses latin-1 as default encoding type: behavior versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _

[issue18091] Remove PyNoArgsFunction

2020-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I cannot report a bug in Blender, because get an exception on link https://developer.blender.org/maniphest/project/2/type/Bug/ . -- ___ Python tracker ___

[issue18091] Remove PyNoArgsFunction

2020-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Removed in issue39372 together with other unused declarations. PyNoArgsFunction was the only one that breaks a user code. But using PyNoArgsFunction is likely a sign of error. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: needs patch

[issue39372] The header files in Include/ have many declarations with no definition

2020-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe backport this change (except PyNoArgsFunction)? -- ___ Python tracker ___ ___ Python-bugs

[issue39379] sys.path[0] is already absolute path

2020-01-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https