[issue37106] python re.escape doesn't escape some special characters.

2019-05-30 Thread MANI M
MANI M added the comment: Thanks a lot for the info. May I know in what version of python the patches are applied? Because still 3.7.3 seems to have the issue. -- ___ Python tracker

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

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

[issue36910] Certain Malformed email causes email.parser to throw AttributeError

2019-05-30 Thread Abhilash Raj
Abhilash Raj added the comment: I am not sure which 2nd PR are we talking about here? The reported exception stems from Lib/email/feedparser.py#L323 and same is fixed in PR (https://github.com/python/cpython/pull/13598) for bpo-30835. -- ___

[issue37029] PyObject_Free is O(N) where N = # of arenas

2019-05-30 Thread Tim Peters
Tim Peters added the comment: Added file arena.py. This adds some code to the OP's original test, to print out build time and teardown time, and display obmalloc stats. You'll need at least 80GB of RAM to run it - I don't have that much. Building the tree may take on the order of an hour,

[issue37103] Undo deprecation of optparse

2019-05-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue25521 -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list

[issue37106] python re.escape doesn't escape some special characters.

2019-05-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please consider posting text content instead of images for better accessibility. This could be due to issue29995. ➜ cpython git:(master) python3.6 Python 3.6.4 (default, Mar 12 2018, 13:42:53) [GCC 4.2.1 Compatible Apple LLVM 7.0.2

[issue36910] Certain Malformed email causes email.parser to throw AttributeError

2019-05-30 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The PR for bpo-30835 changes code in a different source file. I suggest adopting both PRs so that future changes don't accidentally reintroduce either bug. -- ___ Python tracker

[issue37106] python re.escape doesn't escape some special characters.

2019-05-30 Thread MANI M
New submission from MANI M : Recently I figured out an issue in python3 re which doesn't escape some special characters. Not sure whether this bug has been reported already. Have attached screenshots for your reference. Steps to reproduce: 1. wget

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

2019-05-30 Thread Kubilay Kocak
Kubilay Kocak added the comment: @Andrew That would be great, as having failing buildbots can hide new regressions that end up taking much longer to identify and fix as they are hidden, and is better for you than reverting implementation code --

[issue36910] Certain Malformed email causes email.parser to throw AttributeError

2019-05-30 Thread Abhilash Raj
Abhilash Raj added the comment: This is a dupe of https://bugs.python.org/issue30835, which has an attached PR. I have verified the provided test case is fixed by the PR for bpo-30835. -- nosy: +maxking ___ Python tracker

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-30 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I ran another C test where I called lseek(fd, 0, SEEK_CUR) in-between each of the stream I/O functions to see how it reports the buffered and kernel file positions: opening file with wb writing 3 bytes to file lseek: 0 ftell(f): expecting 3, got 3 lseek:

[issue36974] Implement PEP 590

2019-05-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 530f506ac91338b55cf2be71b1cdf50cb077512f by Benjamin Peterson (Jeroen Demeyer) in branch 'master': bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)

[issue37105] Add deprecated-remove information on stream doc

2019-05-30 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +13578 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13672 ___ Python tracker ___

[issue37105] Add deprecated-remove information on stream doc

2019-05-30 Thread Emmanuel Arias
New submission from Emmanuel Arias : According to the code on streams.py the functions: open_connection(), start_server(), open_unix_connection(), start_unix_server() are deprecated. I inform that on documentation. -- assignee: docs@python components: Documentation messages: 344015

[issue37091] subprocess - uncaught PermissionError in send_signal can cause hang

2019-05-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: Clarifying: The problem is that the TimeoutExpired exception that is desired was replaced with a PermissionError that the caller isn't expecting to catch and handle. -- ___ Python tracker

[issue37091] subprocess - uncaught PermissionError in send_signal can cause hang

2019-05-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37091] subprocess - uncaught PermissionError in send_signal can cause hang

2019-05-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29262] Provide a way to check for *real* typing.Union instances

2019-05-30 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.6 ___ Python tracker ___

[issue36839] Support the buffer protocol in code objects

2019-05-30 Thread Inada Naoki
Inada Naoki added the comment: > In the Instagram case there's about 20mb of byte code total and there are 3-4 > dozen worker processes running per server. The byte code also represents the > second largest section of memory as far as serialized code objects are > concerned, the only

[issue29262] Provide a way to check for *real* typing.Union instances

2019-05-30 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 4c23aff065fb28aba789a211937a2af974842110 by Ivan Levkivskyi in branch 'master': bpo-29262: Add get_origin() and get_args() introspection helpers to typing (GH-13685)

[issue36271] '_io.TextIOWrapper' object has no attribute 'mode'

2019-05-30 Thread Berker Peksag
Berker Peksag added the comment: Thank you for the report. This is a duplicate of issue 32655. -- nosy: +berker.peksag resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> File mode should be a constant ___ Python

[issue32655] File mode should be a constant

2019-05-30 Thread Berker Peksag
Berker Peksag added the comment: Changing the value of mode also changes its repr. This seems like a bug to me. It's probably too late to change TextIOWrapper.__repr__(). I think this needs to be discussed on python-dev first. >>> f = open("README.rst") >>> f <_io.TextIOWrapper

[issue35950] io.BufferedReader.writabe is False, but io.BufferedReader.truncate does not raise OSError

2019-05-30 Thread Berker Peksag
Change by Berker Peksag : -- keywords: +patch pull_requests: +13577 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13689 ___ Python tracker ___

[issue36839] Support the buffer protocol in code objects

2019-05-30 Thread Dino Viehland
Dino Viehland added the comment: Well given that we're one day away from 3.8 Beta 1 I'm not going to rush this in :) In particular the discussion has made me wonder if I can also do more with sharing strings using the legacy unicode strings (which I don't believe will require any runtime

[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-05-30 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz type: -> behavior versions: +Python 2.7, Python 3.7, Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___

[issue12639] msilib Directory.start_component() fails if keyfile is not None

2019-05-30 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +13576 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13688 ___ Python tracker ___

[issue5028] tokenize.generate_tokens doesn't always return logical line

2019-05-30 Thread miss-islington
miss-islington added the comment: New changeset 2a58b0636d1f620f8a85a2e4c030cc10551936a5 by Miss Islington (bot) (Anthony Sottile) in branch 'master': bpo-5028: Fix up rest of documentation for tokenize documenting line (GH-13686)

[issue37104] logging.Logger.disabled is not documented

2019-05-30 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +13575 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13687 ___ Python tracker ___

[issue37104] logging.Logger.disabled is not documented

2019-05-30 Thread Mario Corchero
New submission from Mario Corchero : Just realised the "disabled" attribute of the Logger class is not documented in https://docs.python.org/3/library/logging.html#logging.Logger. Any reason to not have it documented? I'll send a PR otherwise. This comes as I was trying to point to the docs

[issue29143] Logger should ignore propagate property for disabled handlers.

2019-05-30 Thread Mario Corchero
Mario Corchero added the comment: Closing as unable to reproduce. Please comment if you can reproduce the issue and we can have a further look. -- stage: -> resolved status: open -> closed ___ Python tracker

[issue5028] tokenize.generate_tokens doesn't always return logical line

2019-05-30 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +13574 pull_request: https://github.com/python/cpython/pull/13686 ___ Python tracker ___

[issue36953] Remove collections ABCs?

2019-05-30 Thread miss-islington
miss-islington added the comment: New changeset eea47e09394dfb64d3a59a601d947d25bb1bdc96 by Miss Islington (bot) (Matthias Bussonnier) in branch 'master': bpo-36953: Delay removal of ABCs from collections. (GH-13409)

[issue36342] test_venv failure when executed by test_multiprocessing and the platform lacks a functional sem_open()

2019-05-30 Thread miss-islington
miss-islington added the comment: New changeset 5437ccca1424e415a938c583df43d8cc74047d16 by Miss Islington (bot) (xdegaye) in branch 'master': bpo-36342: Fix test_multiprocessing in test_venv (GH-12513) https://github.com/python/cpython/commit/5437ccca1424e415a938c583df43d8cc74047d16

[issue29262] Provide a way to check for *real* typing.Union instances

2019-05-30 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +13573 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13685 ___ Python tracker ___

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

2019-05-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Guys, thank you for investigation. If there is AIX "idiosyncrasy" -- please feel free to skip failed tests on AIX. If you have access to AIX box it would be much easier for you. I can only look at Python buildbot statuses. --

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

2019-05-30 Thread Michael Felt
Michael Felt added the comment: On 30/05/2019 10:27, Erwan Le Pape wrote: > Erwan Le Pape added the comment: > > Assuming similar configuration to the one in msg343430, a simple native > getaddrinfo test to check whether any scope ID is returned. The 'expanded' program ... main(): int

[issue37103] Undo deprecation of optparse

2019-05-30 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30969] Docs should say that `x is z or x == z` is used for `x in y` in containers that do not implement `__contains__`

2019-05-30 Thread miss-islington
miss-islington added the comment: New changeset e8661c1dabc206bf7fe6e302e38fa426aa734dd0 by Miss Islington (bot) in branch '3.7': bpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761) https://github.com/python/cpython/commit/e8661c1dabc206bf7fe6e302e38fa426aa734dd0

[issue27605] Inconsistent calls to __eq__ from built-in __contains__

2019-05-30 Thread Cheryl Sabella
Change by Cheryl Sabella : -- assignee: -> docs@python components: +Documentation nosy: +docs@python stage: -> needs patch versions: +Python 3.8, Python 3.9 ___ Python tracker

[issue30969] Docs should say that `x is z or x == z` is used for `x in y` in containers that do not implement `__contains__`

2019-05-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +13572 pull_request: https://github.com/python/cpython/pull/13684 ___ Python tracker ___

[issue30969] Docs should say that `x is z or x == z` is used for `x in y` in containers that do not implement `__contains__`

2019-05-30 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30969] Docs should say that `x is z or x == z` is used for `x in y` in containers that do not implement `__contains__`

2019-05-30 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 2f5b9dcc0a89cbde1499c76df81c36bfd5ef9aa8 by Cheryl Sabella (Antti Haapala) in branch 'master': bpo-30969: Fix docs about the comparison in absence of __contains__ (GH-2761)

[issue36839] Support the buffer protocol in code objects

2019-05-30 Thread Brett Cannon
Brett Cannon added the comment: I agree with Eric. While I understand what Serhiy is saying about code objects being more than a bytearray of bytecode, the buffer protocol is still a view on an object, and that view happens to be for a subset which I think is acceptable as I think of what a

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2019-05-30 Thread Karl Ding
Karl Ding added the comment: I believe the example can be simplified to the following: class MyStructure(ctypes.Structure): _pack_ = 1 _fields_ = [('A', ctypes.c_uint32, 8)] assert ctypes.sizeof(MyStructure) == 1 Here, ctypes.sizeof returns 4 on my

[issue35018] Sax parser provides no user access to lexical handlers

2019-05-30 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2019-05-30 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9371] pulldom doesn't provide END_DOCUMENT or COMMENT nodes.

2019-05-30 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37103] Undo deprecation of optparse

2019-05-30 Thread Anders Kaseorg
New submission from Anders Kaseorg : The optparse library is currently marked in the documentation as deprecated in favor of argparse. However, argparse uses a nonstandard reinterpretation of Unix command line grammars that makes certain arguments impossible to express, and causes scripts to

[issue36839] Support the buffer protocol in code objects

2019-05-30 Thread Eric Snow
Eric Snow added the comment: FWIW, I don't see the problem with supporting any read-only "buffer" object, rather than just bytes objects, for the string of bytes in a code object. That's all that Dino is proposing. The change is not invasive and solves a real need. The additional

[issue5028] tokenize.generate_tokens doesn't always return logical line

2019-05-30 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue5028] tokenize.generate_tokens doesn't always return logical line

2019-05-30 Thread miss-islington
miss-islington added the comment: New changeset 1e36f75d634383eb243aa1798c0f2405c9ceb5d4 by Miss Islington (bot) (Andrew Carr) in branch 'master': bpo-5028: fix doc bug for tokenize (GH-11683) https://github.com/python/cpython/commit/1e36f75d634383eb243aa1798c0f2405c9ceb5d4 --

[issue9883] minidom: AttributeError: DocumentFragment instance has no attribute 'writexml'

2019-05-30 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've closed PR1745 as it appeared to be abandoned. -- nosy: +cheryl.sabella ___ Python tracker ___

[issue36839] Support the buffer protocol in code objects

2019-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Inada. This would add complexity in the code object. Note also that the code object is not just a sequence of bytes. It is a complex object which contains references to a dozen of objects: bytes objects, strings, integers, tuples, dicts. I

[issue36839] Support the buffer protocol in code objects

2019-05-30 Thread Dino Viehland
Dino Viehland added the comment: In the Instagram case there's about 20mb of byte code total and there are 3-4 dozen worker processes running per server. The byte code also represents the second largest section of memory as far as serialized code objects are concerned, the only larger one

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think dedenting docstring content by default would be a great thing to do. But that's a separate issue, it isn't quite the same as .dedent() due to the first line. I filed https://bugs.python.org/issue37102 to track that. --

[issue37102] Automatically dedent docstring constants by default

2019-05-30 Thread Gregory P. Smith
New submission from Gregory P. Smith : I'm spawning this issue of as a separate feature from https://bugs.python.org/issue36906 (adding string dedent method and an optimization to do it at compile timer on constants). It'd be great if docstrings were given a similar treatment. Right now we

[issue1572968] release GIL while doing I/O operations in the mmap module

2019-05-30 Thread Nic Watson
Nic Watson added the comment: I'll add one more system I/O call that's not GIL-wrapped in the mmap module that can take some time: mmap itself. mmap on Linux with MAP_POPULATE (0x8000) as the flags can take quite a bit of time. That's the flag that prefaults the memory range.

[issue30754] textwrap.dedent mishandles empty lines

2019-05-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: The current behavior is desired. We just need to document it better in https://docs.python.org/3/library/textwrap.html#textwrap.dedent -- assignee: -> docs@python components: +Documentation -Library (Lib) keywords: +easy nosy: +docs@python,

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

2019-05-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks, i'll take care of them. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-30 Thread Dale Visser
Dale Visser added the comment: Great! My PR now uses getattr as @zach.ware has suggested. -- ___ Python tracker ___ ___

[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-30 Thread Dale Visser
Change by Dale Visser : -- keywords: +patch pull_requests: +13570 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13683 ___ Python tracker ___

[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-30 Thread Zachary Ware
Zachary Ware added the comment: This could simplify even further with the following: def filter(self, record): return all(getattr(f, 'filter', f)(record) for f in self.filters) -- nosy: +zach.ware versions: +Python 3.8 -Python 3.9 ___ Python

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

2019-05-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, I'm not comfortable with such change just before the feature freeze. The idea is maybe good but let's discuss and implement it later. -- ___ Python tracker

[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-30 Thread SilentGhost
Change by SilentGhost : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37101] Filterer.filter can be rewritten using built-ins just as efficient much more readable

2019-05-30 Thread Dale Visser
New submission from Dale Visser : Alternative version of Filterer.filter(...) would look like this, which takes advantage of efficient Python 3.x built-ins, and is immediately understandable: def _filter_callable(filter): return filter.filter if hasattr(filter, 'filter') else filter def

[issue36999] Expose the coroutine object in asyncio task objects

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

[issue36999] Expose the coroutine object in asyncio task objects

2019-05-30 Thread miss-islington
miss-islington added the comment: New changeset 98ef92002ec289bf8086b0ef3d4f96c2589f4e68 by Miss Islington (bot) (Alex Grönholm) in branch 'master': bpo-36999: Add asyncio.Task.get_coro() (GH-13680) https://github.com/python/cpython/commit/98ef92002ec289bf8086b0ef3d4f96c2589f4e68 --

[issue36974] Implement PEP 590

2019-05-30 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- pull_requests: +13569 pull_request: https://github.com/python/cpython/pull/13682 ___ Python tracker ___

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

2019-05-30 Thread Yury Selivanov
Yury Selivanov added the comment: > Not sure if we have to drop this warning, it enforces writing good code that > controls all created resources lifecycle. Right, maybe we add "transport.terminate()" as well? Synchronously & immediately closing a transport is a valid use case. TBH I

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

2019-05-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: It's not about streams only. The stream protocol can have such flag, sure. But transport emits a warning like "unclosed transport ..." Not sure if we have to drop this warning, it enforces writing good code that controls all created resources lifecycle.

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

2019-05-30 Thread Yury Selivanov
Yury Selivanov added the comment: > Sorry, that's how asyncio is designed. Andrew, couldn't we provide a "stream.terminate()" method (not a coroutine) that would do the following: * close the transport * set a flag in the protocol that the stream has been terminated. When the flag is set,

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

2019-05-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: The difference is that socket.close() is an instant call. After socket.close() the socket is done. But transport.close() doesn't close the transport instantly. asyncio requires at least one loop iteration for calling protocol.connection_lost() and actual

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

2019-05-30 Thread Tom Christie
Tom Christie added the comment: Right, and `requests` *does* provide both those styles. The point more being that *not* having closed the transport at the point of exit shouldn't end up raising a hard error. It doesn't raise errors in sync-land, and it shouldn't do so in async-land.

[issue37100] test_coroutine.test_unawaited_warning_when_module_broken fails on -Werror

2019-05-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The coroutine is not awaited in the test and generates a RuntimeWarning. Since I used -Werror I guess the warning was converted to an error and thus replacing ZeroDivisionError in the support.catch_unraisable_exception context manager. --

[issue36974] Implement PEP 590

2019-05-30 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 37788bc23f6f1ed0362b9b3b248daf296c024849 by Petr Viktorin (Jeroen Demeyer) in branch 'master': bpo-36974: rename _FastCallKeywords -> _Vectorcall (GH-13653) https://github.com/python/cpython/commit/37788bc23f6f1ed0362b9b3b248daf296c024849

[issue37099] test_inspect generates DeprecationWarning

2019-05-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37100] test_coroutine.test_unawaited_warning_when_module_broken fails on -Werror

2019-05-30 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Running test_coroutines under -Werror raises error. It seems ZeroDivisionError is expected and RuntimeWarning is raised and happens only under -Werror. This test was added with e4d300e07c3 . ./python.exe -Werror -m test test_coroutines Run tests

[issue30006] Deadlocks in `concurrent.futures.ProcessPoolExecutor`

2019-05-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, closing as duplicate then. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Deadlocks in `concurrent.futures.ProcessPoolExecutor` with pickling error ___

[issue36999] Expose the coroutine object in asyncio task objects

2019-05-30 Thread Alex Grönholm
Change by Alex Grönholm : -- keywords: +patch pull_requests: +13568 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13680 ___ Python tracker ___

[issue37099] test_inspect generates DeprecationWarning

2019-05-30 Thread miss-islington
miss-islington added the comment: New changeset 6d0b7470a4738a403ef48cfd50d9447e0f32f00c by Miss Islington (bot) (Xtreak) in branch 'master': bpo-37099: Silence DeprecationWarning in test_inspect (GH-13679) https://github.com/python/cpython/commit/6d0b7470a4738a403ef48cfd50d9447e0f32f00c

[issue37099] test_inspect generates DeprecationWarning

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

[issue37099] test_inspect generates DeprecationWarning

2019-05-30 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : In PR 13245 getfullargspec was undeprecated. But functions like getargspec and formatargspec still have deprecation warnings in code. As part of the PR code to ignore these warnings in test were also removed though the actual warning remains in

[issue20602] sys.flags and sys.float_info disappear at shutdown

2019-05-30 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 249b7d59d8038f9017fc95dc28a3ce3494aaf832 by Petr Viktorin (Zackery Spytz) in branch 'master': bpo-20602: Do not clear sys.flags and sys.float_info during shutdown (GH-8096)

[issue36411] Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

2019-05-30 Thread PEW's Corner
PEW's Corner added the comment: Great analysis, Jeffrey. Does the kernel position actually move to the end of the file on the f.write() in step 10, or on the flush in step 14? If it's the latter, then f.write() should probably call lseek() to set both the kernel position and internal

[issue36974] Implement PEP 590

2019-05-30 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset c145f3bfbe80d498d40848450d4d33c14e2cf782 by Petr Viktorin (Jeroen Demeyer) in branch 'master': bpo-36974: remove _PyObject_HasFastCall (GH-13460) https://github.com/python/cpython/commit/c145f3bfbe80d498d40848450d4d33c14e2cf782 --

[issue36974] Implement PEP 590

2019-05-30 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 735e8afa9ee942367b5d0807633a2b9f662cbdbf by Petr Viktorin (Jeroen Demeyer) in branch 'master': bpo-36974: inherit the vectorcall protocol (GH-13498) https://github.com/python/cpython/commit/735e8afa9ee942367b5d0807633a2b9f662cbdbf --

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

2019-05-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This change seems to have created some compile time warnings : https://buildbot.python.org/all/#/builders/103/builds/2544/steps/3/logs/warnings__6_ Python/pystrhex.c:18:45: warning: passing argument 1 of ‘PyObject_Size’ discards ‘const’ qualifier

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-30 Thread Andre Roberge
Andre Roberge added the comment: As I wrote on Github: On my computer (Windows 10, resolution: 3000 x 2000, scaling of UI elements set to 200%), clicking on Zoom Height makes Idle go full screen. Clicking on the same menu (now called Restore Height) does absolutely nothing: Idle stays in full

[issue37015] Fix asyncio mock warnings

2019-05-30 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-30 Thread Tal Einat
Tal Einat added the comment: See an implementation in PR GH-13678. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37015] Fix asyncio mock warnings

2019-05-30 Thread miss-islington
miss-islington added the comment: New changeset 0f39c2b1919727904f4fac2d79cb41dc6bfe41fe by Miss Islington (bot) (Xtreak) in branch 'master': bpo-37015: Ensure tasks created by _accept_connection2 due to AsyncMock are completed (GH-13661)

[issue37039] IDLE: Improve zoomheight doc and behavior.

2019-05-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +13566 pull_request: https://github.com/python/cpython/pull/13678 ___ Python tracker ___

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-30 Thread Inada Naoki
Inada Naoki added the comment: Can we dedent docstring too? Is there any string like inspect.cleandoc(s) != inspect.cleandoc(s.dedent())? -- nosy: +inada.naoki ___ Python tracker

[issue30006] Deadlocks in `concurrent.futures.ProcessPoolExecutor`

2019-05-30 Thread Thomas Moreau
Thomas Moreau added the comment: The deadlocks I refer to in this issue are fixed by the PR #3895. Subsequent failures (like the fact that the Executor is set in a broken state when there is an unpickling error) are tracked in other issues so I think it is safe to close this one. --

[issue37098] test_memfd_create() test failure

2019-05-30 Thread Christian Heimes
Christian Heimes added the comment: New changeset 6eb814b8ce9a4fed8773a65501fb96aad8b3ecf2 by Christian Heimes in branch 'master': bpo-37098: Skip memfd_create test before Linux 3.17 (GH-13677) https://github.com/python/cpython/commit/6eb814b8ce9a4fed8773a65501fb96aad8b3ecf2 --

[issue37086] time.sleep error message misleading

2019-05-30 Thread Justin Fay
Justin Fay added the comment: >From looking at the code for this (note I am not a C programmer so may have >gotten this wrong) _PyTime_FromObject first checks if the object is a float >using PyFloat_Check(obj) this is evident as passing nan to time.sleep raises a >ValueError with the

[issue37098] test_memfd_create() test failure

2019-05-30 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +13565 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13677 ___ Python tracker

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

2019-05-30 Thread Erwan Le Pape
Erwan Le Pape added the comment: Assuming similar configuration to the one in msg343430, a simple native getaddrinfo test to check whether any scope ID is returned. ``` #include #include #include #include void test(char *addrstr) { int status; struct addrinfo *res; struct

[issue31904] Python should support VxWorks RTOS

2019-05-30 Thread LihuaZhao
Change by LihuaZhao : -- pull_requests: -12349 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36935] bpo-35813 introduced usage of the deprecated PyErr_SetFromWindowsErrWithUnicodeFilename() function

2019-05-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset eda385c0dca62f97a8ae80feb57c2a51df3c807f by Victor Stinner (Zackery Spytz) in branch 'master': bpo-36935: Remove usage of the deprecated PyErr_SetFromWindowsErrWithUnicodeFilename() (GH-13355)

  1   2   >