[issue36878] ast.parse with type_comments=True should allow extra text after # type: ignore

2019-05-22 Thread Michael Sullivan
Michael Sullivan added the comment: I think there will be one more PR to disallow non-ASCII characters immediately after a `# type: ignore`, but otherwise I think this is done -- ___ Python tracker

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

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: Currently, Threading.start() ignores _start_new_thread() return value which is an identifier. Is it the same value than threading.get_native_id()? It might be good to clarify _thread._start_new_thread() documentation since we now have 2 kinds of

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

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset b121f63155d8e3c7c42ab6122e36eaf7f5e9f7f5 by Victor Stinner (Jake Tesler) in branch 'master': bpo-36084: Add native thread ID (TID) to threading.Thread (GH-13463) https://github.com/python/cpython/commit/b121f63155d8e3c7c42ab6122e36eaf7f5e9f7f5

[issue37010] Review performance of inspect.getfullargspec

2019-05-22 Thread mike bayer
mike bayer added the comment: thanks for creating this issue Nick! -- nosy: +zzzeek ___ Python tracker ___ ___ Python-bugs-list

[issue33482] codecs.StreamRecoder.writelines is broken

2019-05-22 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- pull_requests: +13417 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33482] codecs.StreamRecoder.writelines is broken

2019-05-22 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- pull_requests: +13416 stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: I merged my PR #13187, so I reject PR #13175. In the python-dev thread, there is no consensus in favor of -X abortunraisable option. The few people who pronounce them on this option were more against it.

[issue33482] codecs.StreamRecoder.writelines is broken

2019-05-22 Thread miss-islington
miss-islington added the comment: New changeset b3be4072888a4ce054993c2801802721466ea02d by Miss Islington (bot) (Jelle Zijlstra) in branch 'master': bpo-33482: fix codecs.StreamRecoder.writelines (GH-6779) https://github.com/python/cpython/commit/b3be4072888a4ce054993c2801802721466ea02d

[issue37006] Add top level await statement support for doctest

2019-05-22 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: The other thing to think about is `ensure_future` and `create_task`, they may not move forward until a foreground task is running. You can keep a loop running between lines or code-chunks, but then doctest cannot contain `asyncio.run()`. I'm leaning

[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-22 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13415 stage: -> patch review ___ Python tracker ___ ___

[issue36974] Implement PEP 590

2019-05-22 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +13414 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36878] ast.parse with type_comments=True should allow extra text after # type: ignore

2019-05-22 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 933e1509ec6efa8e6ab8c8c7ce02059ce2b6d9b9 by Ivan Levkivskyi (Michael J. Sullivan) in branch 'master': bpo-36878: Track extra text added to 'type: ignore' in the AST (GH-13479)

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

2019-05-22 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @blueyed, can you confirm PR 13497 solve your issue ? -- nosy: +remi.lapeyre ___ Python tracker ___

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

2019-05-22 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +13413 stage: -> patch review ___ Python tracker ___ ___

[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-22 Thread STINNER Victor
Change by STINNER Victor : -- title: Add pkg-config python-3.8-embed -> Add pkg-config python-3.8-embed and --embed to python3.8-config ___ Python tracker ___

[issue36972] Add SupportsIndex

2019-05-22 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36972] Add SupportsIndex

2019-05-22 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 4c7a46eb3c009c85ddf2eb315d94d804745187d4 by Ivan Levkivskyi (Paul Dagnelie) in branch 'master': bpo-36972: Add SupportsIndex (GH-13448) https://github.com/python/cpython/commit/4c7a46eb3c009c85ddf2eb315d94d804745187d4 -- nosy:

[issue37012] Possible crash due to PyType_FromSpecWithBases()

2019-05-22 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +13411 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37012] Possible crash due to PyType_FromSpecWithBases()

2019-05-22 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +13412 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37012] Possible crash due to PyType_FromSpecWithBases()

2019-05-22 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13410 stage: -> patch review ___ Python tracker ___ ___

[issue37012] Possible crash due to PyType_FromSpecWithBases()

2019-05-22 Thread Petr Viktorin
New submission from Petr Viktorin : If the PyObject_MALLOC() call failed in PyType_FromSpecWithBases(), PyObject_Free() would be called on a static string in type_dealloc(). Fixed by Zackery Spytz in pull request 10304. I'm opening the issue retroactively. -- messages: 343194 nosy:

[issue36721] Add pkg-config python-3.8-embed

2019-05-22 Thread Matthias Klose
Matthias Klose added the comment: "AFAICT, the purpose of python-config is to provide configuration info for embedding Python" If that's the intention, then at least it's not used as such. It's also used to build/configure extensions using automake/cmake based build systems. There is one

[issue36721] Add pkg-config python-3.8-embed

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a release blocker: bpo-21536 basically broke the compilation of all applications which embed Python. IMHO this issue is the best solution to fix it. > I don't understand the need for this. Oh. Let me explain this issue differently.

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2019-05-22 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-05-22 Thread Jake Tesler
Jake Tesler added the comment: I will look into whether adding thread_self() for AIX would be simple enough for this PR. -- ___ Python tracker ___

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

2019-05-22 Thread Jake Tesler
Jake Tesler added the comment: In general, I’ve concluded most ‘editions’ of pthread_self() are not the same value as this feature aims to implement. I’m not familiar enough with AIX to be certain about that platform, though. If there’s an equivalent function in AIX to capture the actual

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-22 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-22 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset d092caf096fa48baadfc0900792206bb5aa0192d by Petr Viktorin (Jeroen Demeyer) in branch '3.7': bpo-36907: fix refcount bug in _PyStack_UnpackDict() (GH-13381) (GH-13493)

[issue24653] Mock.assert_has_calls([]) is surprising for users

2019-05-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: alist.extend([]) is also a special case, but it is not explicitly documented, because it is not exceptional. -- ___ Python tracker ___

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

2019-05-22 Thread daniel hahler
Change by daniel hahler : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-05-22 Thread daniel hahler
New submission from daniel hahler : bdb/pdb currently uses `sys.settrace(None)` when uninstalling its trace function (trace_dispatch), but should rather store the original trace function in the beginning and use this instead of `None`. While typically pdb is not used in tests, it is just

[issue37008] make unittest.mock.mock_open honor next()

2019-05-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +cjw296, lisroach, mariocj89, michael.foord versions: -Python 3.7 ___ Python tracker ___

[issue37010] Review performance of inspect.getfullargspec

2019-05-22 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37010] Review performance of inspect.getfullargspec

2019-05-22 Thread Nick Coghlan
New submission from Nick Coghlan : (Splitting out a separate performance issue from https://bugs.python.org/issue36751#msg342683) There can be two quite different reasons for inspecting a function signature: * inspecting arbitrary functions to learn as much about them as possible in order

[issue36751] Changes in the inspect module for PEP 570

2019-05-22 Thread Nick Coghlan
Nick Coghlan added the comment: I split https://bugs.python.org/issue37010 out as a separate performance issue in case anyone is inclined to explore the idea of reversing the relationship between inspect.signature and inspect.getfullargspec, such that the latter becomes a fast building

[issue21914] Create unit tests for Turtle guionly

2019-05-22 Thread Sanyam Khurana
Change by Sanyam Khurana : -- pull_requests: +13409 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-22 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +13408 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-22 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Using __int__ instead of __index__ works. PR coming right away. -- ___ Python tracker ___ ___

[issue37009] Threading and THREAD_SAFE for AIX

2019-05-22 Thread Michael Felt
New submission from Michael Felt : For years Python includes the file /usr/include/pthread.h. The AIX documentation states that this needs to be the first include file included OR the define _THREAD_SAFE needs to be defined. As this may have been true, might still be true, or might have

[issue37006] Add top level await statement support for doctest

2019-05-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I tried using AsyncioDocTestRunner that inherits from DocTestRunner and most of the current DocTestRunner is synchronous and the execution happens in __run that seems to cause problem due to name mangling inheriting and changing it. Also python -m

[issue31862] Port the standard library to PEP 489 multiphase initialization

2019-05-22 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 33e71e01e95506cf8d93fd68251fc56352bc7b39 by Petr Viktorin (Marcel Plch) in branch 'master': bpo-31862: Port binascii to PEP 489 multiphase initialization (GH-4108) https://github.com/python/cpython/commit/33e71e01e95506cf8d93fd68251fc56352bc7b39

[issue35810] Object Initialization does not incref Heap-allocated Types

2019-05-22 Thread Petr Viktorin
Change by Petr Viktorin : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36936] CALL_FUNCTION_KW opcode: keyword names must be non-empty

2019-05-22 Thread Petr Viktorin
Petr Viktorin added the comment: Closing per discussion in https://github.com/python/cpython/pull/13357 -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-22 Thread Petr Viktorin
Petr Viktorin added the comment: We do, but here the test will need to be changed: Python 3.7.3+ (heads/3.7:791e5fcbab, May 22 2019, 13:37:27) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> class IntWithDict: ...

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-22 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Jeroen, do you want to also do a backport for 3.7? Don't we have a bot for that? -- ___ Python tracker ___

[issue37006] Add top level await statement support for doctest

2019-05-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please keep in mind: not only asyncio can be used to execute async/await code. For example, trio has completely different implementation but utilizes async functions as well. Probably we need to customize it, maybe by inheriting AsyncioDocTestRunner from

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2019-05-22 Thread Steve
Change by Steve : -- nosy: -tupl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37008] make unittest.mock.mock_open honor next()

2019-05-22 Thread Damien Nadé
Change by Damien Nadé : -- keywords: +patch pull_requests: +13407 stage: -> patch review ___ Python tracker ___ ___

[issue37008] make unittest.mock.mock_open honor next()

2019-05-22 Thread Damien Nadé
New submission from Damien Nadé : While we can iterate on a mock_open handle, it is not actually possible to perform a next() on it. My use case is the following: I have a file with a one-line header that I want to skip. So, roughly, my code is like with open(filename, 'r') as my_file:

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-22 Thread Petr Viktorin
Petr Viktorin added the comment: Jeroen, do you want to also do a backport for 3.7? -- ___ Python tracker ___ ___ Python-bugs-list

[issue25068] The proxy key's string should ignore case.

2019-05-22 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

[issue36907] Crash due to borrowed references in _PyStack_UnpackDict()

2019-05-22 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 77aa396bb9415428de09112ddf6b34bb843811eb by Petr Viktorin (Jeroen Demeyer) in branch 'master': bpo-36907: fix refcount bug in _PyStack_UnpackDict() (GH-13381) https://github.com/python/cpython/commit/77aa396bb9415428de09112ddf6b34bb843811eb

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

2019-05-22 Thread Eryk Sun
Eryk Sun added the comment: > The pthread_self subroutine returns the calling thread's ID. I don't know much about AIX, but according to the docs [1] the kernel thread ID should be thread_self(), which is not the same as pthread_self(). [1]:

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: The initial issue is fixed in 3.7 and master branches. If you want to work on related issue like WIN32_LEAN_AND_MEAN, please open a separated issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 791e5fcbab9e444b62d13d08707cbbbeb9406297 by Victor Stinner (Erik Janssens) in branch '3.7': bpo-36965: Fix includes in main.c on Windows with non-MSC compilers (GH-13421) (GH-13471)

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

2019-05-22 Thread Dmitry Tantsur
New submission from Dmitry Tantsur : These two calls are currently Unix-only in the socket module. However, Windows supports them starting with Vista: https://docs.microsoft.com/en-us/windows/desktop/api/netioapi/nf-netioapi-if_indextoname

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: Follow-up: * PR 13487 backports enhancement and bugfix to Python 3.7 * PR 13488 adds _PyErr_WriteUnraisableMsg() and adds 'err_msg' field to sys.unraisablehook * PR 13490 adds test.support.catch_unraisable_exception() --

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13406 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25068] The proxy key's string should ignore case.

2019-05-22 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13405 stage: needs patch -> patch review ___ Python tracker ___ ___

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

2019-05-22 Thread Michael Felt
Michael Felt added the comment: On 22/05/2019 12:22, Michael Felt wrote: > All the other "assurances" are just things that need to be assured. Adding a > -D_XXX to CFLAGS is not all that complex either. Perhaps getting the need for > the flag documented is 'complex'. Now that I think about

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

2019-05-22 Thread Michael Felt
Michael Felt added the comment: I do not know if it is that much mode complex. Unless I missed something it seems to be that this bit - needs three lines added after the FREEBSD block - per below: All the other "assurances" are just things that need to be assured. Adding a -D_XXX to CFLAGS

[issue36758] configured libdir not correctly passed to Python executable

2019-05-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +websurfer5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13404 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36979] ncurses extension uses wrong include path

2019-05-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +websurfer5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-05-22 Thread Michael Felt
Michael Felt added the comment: On 22/05/2019 10:43, Michael Felt wrote: > 'fe80::1%1' <> 'fe80::1' - ... I am not 'experienced' with IPv6 and scope. >From what I have just read (again) - scope seems to be a way to indicate the interface used (e.g., eth0, or enp0s25) as a "number". Further,

[issue36994] Missing tests for CALL_FUNCTION_EX opcode profiling method_descriptor

2019-05-22 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36994] Missing tests for CALL_FUNCTION_EX opcode profiling method_descriptor

2019-05-22 Thread Robert Collins
Robert Collins added the comment: New changeset b892d3ea468101d35e2fb081002fa693bd86eca9 by Robert Collins (Jeroen Demeyer) in branch 'master': bpo-36994: add test for profiling method_descriptor with **kwargs (GH-13461)

[issue34125] Profiling depends on whether **kwargs is given

2019-05-22 Thread Robert Collins
Robert Collins added the comment: New changeset b892d3ea468101d35e2fb081002fa693bd86eca9 by Robert Collins (Jeroen Demeyer) in branch 'master': bpo-36994: add test for profiling method_descriptor with **kwargs (GH-13461)

[issue24653] Mock.assert_has_calls([]) is surprising for users

2019-05-22 Thread Inada Naoki
Inada Naoki added the comment: > I opened the bug because we have evidence that users find the current > documentation confusing. Saying that its not confusing to us doesn't fix the > confusion. Is there evidence people get confused by the document? I suppose people get confused because

[issue24653] Mock.assert_has_calls([]) is surprising for users

2019-05-22 Thread Robert Collins
Robert Collins added the comment: I'm reopening this because I don't agree. I opened the bug because we have evidence that users find the current documentation confusing. Saying that its not confusing to us doesn't fix the confusion. Why should we mention the special case of an empty set?

[issue36372] Flawed handling of URL redirect

2019-05-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +websurfer5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13403 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34125] Profiling depends on whether **kwargs is given

2019-05-22 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: This is missing a testcase: PR 13461 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-05-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +websurfer5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset ef9d9b63129a2f243591db70e9a2dd53fab95d86 by Victor Stinner in branch 'master': bpo-36829: Add sys.unraisablehook() (GH-13187) https://github.com/python/cpython/commit/ef9d9b63129a2f243591db70e9a2dd53fab95d86 --

[issue37006] Add top level await statement support for doctest

2019-05-22 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Since issue34616 is merged that allows using compile flags to support top level await statements I think it would be good to add support for top level await in doctest. This would help in concise examples in docs where await statements need to

[issue36520] Email header folded incorrectly

2019-05-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +websurfer5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2019-05-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +websurfer5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36981] asyncio transport.write() memory out

2019-05-22 Thread SilentGhost
Change by SilentGhost : -- resolution: fixed -> not a bug stage: -> resolved status: -> closed ___ Python tracker ___ ___

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

2019-05-22 Thread STINNER Victor
STINNER Victor added the comment: The AIX case sounds way more complex. I suggest to start without AIX support, since it is already complex enough, and then open a new issue to discuss/implement AIX support, once this issue is done. -- ___ Python

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

2019-05-22 Thread Michael Felt
Michael Felt added the comment: from below: In case of 3.7 first call to _ensure_resolved returns ('fe80::1', 12345, 0, 1) then second call returns ('fe80::1', 12345, 0, 0) Notice that scope is now completely lost and is set to 0, thus actual call to socket.connect is wrong In case of 3.6

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

2019-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you, I have added Serhiy and Thomas for this issue but I have removed the versions 3.7, 3.6, 3.5 and 2.7. Maybe it's a new feature for the next versions of Python. -- nosy: +matrixise, serhiy.storchaka, twouters versions: -Python 2.7, Python

[issue36992] zipfile: AttributeError on extract (LZMA)

2019-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, Thank you for your report but do you have the lzma lib on your system, because without that, Python is not compiled with the support of this format. example, with a debian docker image: without all the needed libraries you would get this exception:

[issue36991] zipfile: AttributeError on extract

2019-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I also recommend that you read this document about the compilation and installation of Python and its dependencies. https://devguide.python.org/setup/#compile-and-build Thank you -- ___ Python tracker

[issue37003] ast unparse does not support f-string new debug format.

2019-05-22 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the recap, Matthias. Once I remove expr_text (hopefully this weekend!), we should still at least add tests to make sure nothing fails, even with the ast-expanded version of the = f-strings. -- ___

[issue36991] zipfile: AttributeError on extract

2019-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, Thank you for your report 1. but do you have the bz2 lib on your system, because without that, Python is not compiled with the support of this format. 2. your file seems to have an issue. unzip attr0.zip Archive: attr0.zip inflating:

[issue36993] zipfile: tuple IndexError on extract

2019-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: unzip index_tuple.zip -x Archive: index_tuple.zip caution: zipfile comment truncated error [index_tuple.zip]: missing 3992977728 bytes in zipfile (attempting to process anyway) skipping: zipfile_extract/unsupported compression method 211 I

[issue36799] Typo in ctypes documentation

2019-05-22 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: -13400 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-05-22 Thread Michael Felt
Michael Felt added the comment: Repeating a bot of what I added to PR13463 AIX has native support for thread-id since at least AIX 4.1 (1994-1995) where every process has an initial TID (PID are even numbers and "own" the resources, TID are odd and are the "workers" - very simply put).

[issue31904] Python should support VxWorks RTOS

2019-05-22 Thread Hongchang Liu
Change by Hongchang Liu : -- pull_requests: +13402 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-22 Thread Erik Janssens
Change by Erik Janssens : -- pull_requests: +13401 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-22 Thread Mark Dickinson
Mark Dickinson added the comment: > this could be avoided by directly returning 0 if n == 1 The other solution is to make `getrandbits(0)` valid, always returning `0`. -- ___ Python tracker

[issue36779] time.tzname returns empty string on Windows if default codepage is a Unicode codepage

2019-05-22 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Paul, I have added your PR at this issue, it was assigned to another bpo issue. -- nosy: +matrixise ___ Python tracker ___

[issue36799] Typo in ctypes documentation

2019-05-22 Thread Paul Monson
Change by Paul Monson : -- pull_requests: +13400 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36779] time.tzname returns empty string on Windows if default codepage is a Unicode codepage

2019-05-22 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +13399 stage: test needed -> patch review ___ Python tracker ___ ___

[issue36799] Typo in ctypes documentation

2019-05-22 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: -13393 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-22 Thread Mathis Hammel
Change by Mathis Hammel : -- keywords: +patch pull_requests: +13398 stage: -> patch review ___ Python tracker ___ ___

[issue37000] _randbelow_with_getrandbits function inefficient with powers of two

2019-05-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low versions: -Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.9 ___ Python tracker ___

<    1   2