[issue37284] Not obvious that new required attrs of sys.implementation must have a PEP.

2019-06-22 Thread Giovanni Cappellotto
Giovanni Cappellotto added the comment: Hi, I'd like to claim this task if nobody else already started working on it. -- nosy: +potomak ___ Python tracker ___ ___

[issue26967] argparse: allow_abbrev=False stops -vv from working

2019-06-22 Thread Zac Hatfield-Dodds
Change by Zac Hatfield-Dodds : -- keywords: +patch pull_requests: +14140 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14316 ___ Python tracker __

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Guido van Rossum
Guido van Rossum added the comment: How are the buildbots doing now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Yury Selivanov
Yury Selivanov added the comment: Andrew, > Sorry, no. There is no way IIUC. Well, in this case we should do that via a thread+select approach as I and Ben suggested. I can write some PoC code; will you have some time to polish it and commit it? (I'm OOO and don't have a windows machine/VM

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-22 Thread Daniel Hilst Selli
Daniel Hilst Selli added the comment: Wouldn't be better to support this as a parameter? Escaping is pretty useful in HTML contexts -- nosy: +dhilst ___ Python tracker ___ __

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +scoder, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread miss-islington
miss-islington added the comment: New changeset 5c8b4e2b5de647a67dd1b6414fa520d2b8e973aa by Miss Islington (bot) in branch '3.8': bpo-35224: Bump the pyc magic number after the change in MAP_ADD (GH-14313) https://github.com/python/cpython/commit/5c8b4e2b5de647a67dd1b6414fa520d2b8e973aa ---

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +14138 pull_request: https://github.com/python/cpython/pull/14315 ___ Python tracker ___ __

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 663131a6e2c6c8b83e9f982d8c6ca38fc7c238b4 by Pablo Galindo in branch 'master': bpo-35224: Bump the pyc magic number after the change in MAP_ADD (GH-14313) https://github.com/python/cpython/commit/663131a6e2c6c8b83e9f982d8c6ca38fc7c238b4

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread miss-islington
miss-islington added the comment: New changeset 874ff65e0a70ff4fd1a67e85cd61d76adfcc219d by Miss Islington (bot) in branch '3.8': bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139) https://github.com/python/cpython/commit/874ff65e0a70ff4fd1a67e85cd61d76adfcc2

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Guido van Rossum
Guido van Rossum added the comment: I don't know why the failure is Windows-only, but I suspect that some of the cleanup doesn't work there... This definitely needs a bump of the pyc format version number. -- ___ Python tracker

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +14137 pull_request: https://github.com/python/cpython/pull/14314 ___ Python tracker ___ __

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Although it can be related, note that the buildbots do indeed delete pyc files. Check for example https://buildbot.python.org/all/#/builders/40/builds/2621/steps/2/logs/stdio : ... Deleting .pyc/.pyo files ... Deleting test leftovers ... Using "C:\bu

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I have created PR14313 and triggered a custom build from that PR in the buildbots to confirm our hypothesis. -- ___ Python tracker __

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Ben Darnell
Ben Darnell added the comment: > From my understanding, there is no issue for Tornado itself. If Jupiter > Notebook needs Tornado, Tornado needs selector event loop on Windows -- > Jupiter can install the proper loop. Right. I'm just advocating for something that would make the transition s

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +14136 pull_request: https://github.com/python/cpython/pull/14313 ___ Python tracker ___ ___

[issue37363] Additional PEP578 hooks

2019-06-22 Thread Steve Dower
Steve Dower added the comment: PR 14301 has at least a few hooks for most of the modules above. I think xmlrpc deserves some, but it is not as immediately obvious where to put them as for the other modules. smtpd also still needs looking at. -- __

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-22 Thread Mitar
Change by Mitar : -- keywords: +patch pull_requests: +14134 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14312 ___ Python tracker ___ __

[issue37351] Drop libpython38.a from Windows release

2019-06-22 Thread Steve Dower
Steve Dower added the comment: New changeset fa23bd286fb7719bd7601da0b713457589f5536f by Steve Dower in branch '3.8': bpo-37351: Removes libpython38.a from standard Windows distribution (GH-14276) https://github.com/python/cpython/commit/fa23bd286fb7719bd7601da0b713457589f5536f --

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: > Is it possible to implement add_reader/writer in ProactorEventLoop? Sorry, no. There is no way IIUC. Regarding a request for selecting event loop by a library. 1. You can call asyncio.set_event_loop_policy() already. 2. From my understanding, there is no is

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Guido van Rossum
Guido van Rossum added the comment: Ouch. That means we need to buy.p the puck format version number. -- --Guido (mobile) -- ___ Python tracker ___ __

[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2019-06-22 Thread Zackery Spytz
Zackery Spytz added the comment: I have created a PR for Modules/timemodule.c. -- nosy: +ZackerySpytz versions: +Python 3.9 -Python 3.8 ___ Python tracker ___

[issue37374] Minidom does not have to escape quote inside text segments

2019-06-22 Thread Mitar
New submission from Mitar : I am using Minidom to pretty-print XML. But currently if there is a quote inside a text segment it escapes it to " To my understanding this is unnecessary if all other symbols are escaped. This escaping makes it really ugly and defeats the purpose of me using Minid

[issue14465] xml.etree.ElementTree: add feature to prettify XML output

2019-06-22 Thread Mitar
Change by Mitar : -- nosy: +mitar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2019-06-22 Thread Mitar
Change by Mitar : -- nosy: +mitar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue37301] CGIHTTPServer doesn't handle long POST requests

2019-06-22 Thread shajianrui
shajianrui added the comment: Sorry for replying so late, and thank you very much for your reply and explanation. At first reply to you last post: I think at least in the non-unix environment, the CGIHTTPRequestHandler read the whole(expected) data from rfile and then transfer it to the CGI

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Big Stone
Big Stone added the comment: Windows users would certainly prefer to have an emulated non-performant emulation of the old API, rather than a breakage of their beloved Jupyter/Tornado ecosystem. -- nosy: +Big Stone ___ Python tracker

[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2019-06-22 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +14133 pull_request: https://github.com/python/cpython/pull/14311 ___ Python tracker ___ ___

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Yury Selivanov
Yury Selivanov added the comment: Victor, Andrew, I'm not an expert in IOCP, but is it possible to implement add_reader/writer in ProactorEventLoop? If there's no native API for that, I guess we can spawn a thread with a 'select()' call to emulate this API? Lukasz, Another question: if w

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Jörn Heissler
Jörn Heissler added the comment: My working theory: The change modifies the MAP_ADD instruction and also what the instruction expects to find on the stack. When *.pyc files are kept, the code generates the old stack layout (TOS=key, TOS1=value), but cpython will assume it's the other way roun

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Jörn Heissler
Jörn Heissler added the comment: Sorry, I guess that's something completely different. So maybe the issue is related to my pull request. -- ___ Python tracker ___

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Jörn Heissler
Jörn Heissler added the comment: Pablo, https://bugs.python.org/issue37359 was created yesterday, i.e. before the merge. -- ___ Python tracker ___ _

[issue37212] ordered keyword arguments in unittest.mock.call repr and error messages

2019-06-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +14132 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14310 ___ Python tracker ___

[issue37373] Configuration of windows event loop for libraries

2019-06-22 Thread Ben Darnell
New submission from Ben Darnell : On Windows there are two event loop implementions with different interfaces: The proactor event loop is missing the file descriptor family of methods (add_reader()), while the selector event loop has other limitations including missing support for pipes and s

[issue37302] Add an "onerror" callback parameter to the tempfile.TemporaryDirectory member functions

2019-06-22 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue37359] test_regrtest: test_list_cases() fails on x86 Gentoo Installed with X 3.x

2019-06-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Another failure: https://buildbot.python.org/all/#/builders/103/builds/2688/steps/6/logs/stdio == FAIL: test_list_cases (test.test_regrtest.ArgsTestCase) --

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: All the stable 3.x Windows buildbots are failing since (https://github.com/python/cpython/pull/14139) was merged: https://buildbot.python.org/all/#/builders/3/builds/3026 https://buildbot.python.org/all/#/builders/40/builds/2621 https://buildbot.python

[issue37372] datetime.time unpickling fails in case of python2 pickle with seconds>=24

2019-06-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37371] Optimize and refactor readline().

2019-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide some mickrobenchmarks that shows the performance boost? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue37347] Reference-counting problem in sqlite

2019-06-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: But there can be only one progress handler per connection, so you can just keep an single reference in the struct yourself. -- ___ Python tracker ___

[issue37372] datetime.time unpickling fails in case of python2 pickle with seconds>=24

2019-06-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-l

[issue37372] datetime.time unpickling fails in case of python2 pickle with seconds>=24

2019-06-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14131 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14307 ___ Python tracker ___ __

[issue37372] datetime.time unpickling fails in case of python2 pickle with seconds>=24

2019-06-22 Thread Justin Blanchard
New submission from Justin Blanchard : Under bpo-22005, Python 3 gained support for unpickling datetime data from Python 2. (Thanks!) It turns out the input validation isn't quite right: it bombs on datetime.time when the encoded seconds (not hours) field is >=24: python2>>> datetime.time(1,

[issue37345] Add formal support for UDPLITE protocol

2019-06-22 Thread Gabe Appleton
Gabe Appleton added the comment: I didn't realize that when I submitted this the first time, but I corrected that in the documentation when someone else removed it from the tags. If I re-added it it was by mistake. I notice that my browser had that auto-highlighted. Should be fixed now. ---

[issue37371] Optimize and refactor readline().

2019-06-22 Thread Michele Angrisano
Change by Michele Angrisano : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue35224] PEP 572: Assignment Expressions

2019-06-22 Thread miss-islington
miss-islington added the comment: New changeset c8a35417db8853a253517a3e5190e174075c6384 by Miss Islington (bot) (Jörn Heissler) in branch 'master': bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139) https://github.com/python/cpython/commit/c8a35417db8853a2535

[issue37212] ordered keyword arguments in unittest.mock.call repr and error messages

2019-06-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I will create a PR for this as per mailing list discussion : https://mail.python.org/archives/list/python-...@python.org/message/JWPDLKNM5X27FRWJG7UOAFXHNRUGH44S/ -- ___ Python tracker

[issue37212] ordered keyword arguments in unittest.mock.call repr and error messages

2019-06-22 Thread Daniel Hilst Selli
Change by Daniel Hilst Selli : -- nosy: +dhilst ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue37371] Optimize and refactor readline().

2019-06-22 Thread Shlomi Fish
New submission from Shlomi Fish : See: https://github.com/python/cpython/pull/14306 === 1. Merge two duplicate branches. 2. Extract some constants. 3. Convert to prefix-++ instead of suffix-++. === Benchmarks: before: + PATH=/home/shlomif/apps/python3/bin:/home/

[issue37370] AF_UNIX should be supported on Windows

2019-06-22 Thread Zackery Spytz
Zackery Spytz added the comment: This is a duplicate of bpo-33408. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-li

[issue34556] Add --upgrade to venv module

2019-06-22 Thread Vinay Sajip
Vinay Sajip added the comment: Can this issue be closed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue32934] logging.handlers.BufferingHandler capacity is unclearly specified

2019-06-22 Thread Vinay Sajip
Vinay Sajip added the comment: Python isn't a low-level language, and there isn't *in general* a particular intention "to give a bound to memory usage". When using "buffer" in a general sense, rather than a buffer object (which is more akin to a byte-array), it's usually understood to mean a

[issue37334] Add a cancel method to asyncio Queues

2019-06-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Agree with Caleb. The more I think the more I doubt about the proposal. Cancellation is for tasks, not for queues or locks. When should I cancel a queue but cannot cancel a task? -- ___ Python tracker

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

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

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

2019-06-22 Thread miss-islington
miss-islington added the comment: New changeset 9b32b44d3ec298e02c33fea1aa842f52c9650243 by Miss Islington (bot) in branch '3.8': bpo-37323: Suppress DeprecationWarning raised by @asyncio.coroutine (GH-14293) https://github.com/python/cpython/commit/9b32b44d3ec298e02c33fea1aa842f52c9650243

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

2019-06-22 Thread miss-islington
miss-islington added the comment: New changeset 186f70905d07b42a9cbf0a29e448f30baf2b53cb by Miss Islington (bot) (Xtreak) in branch 'master': bpo-37323: Suppress DeprecationWarning raised by @asyncio.coroutine (GH-14293) https://github.com/python/cpython/commit/186f70905d07b42a9cbf0a29e448f30

[issue37323] test_asyncio: test_debug_mode_interop() fails using -Werror

2019-06-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +14129 pull_request: https://github.com/python/cpython/pull/14305 ___ Python tracker ___ __

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, I think you misunderstood the issue. The problem is not that a decoding error is raised. The problem is that the incremental decoder no longer raises where it raised before. I think that both behavior may be correct, and that it is better to not re

[issue24214] UTF-8 incremental decoder doesn't support surrogatepass correctly

2019-06-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +14128 pull_request: https://github.com/python/cpython/pull/14304 ___ Python tracker ___

[issue37345] Add formal support for UDPLITE protocol

2019-06-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: 3.8 is in beta stage, public API is frozen -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37345] Add formal support for UDPLITE protocol

2019-06-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue37365] RecursionError not caught explicitly may crash with "Aborted (core dumped)"

2019-06-22 Thread Adrien
Adrien added the comment: Thanks to your answer, @ned.deily. Sorry to insist, but are you sure this is a duplicate of issue18075 / issue35542? According to the discussion in issue36272, it seems this is not related to stack exhaustion nor to issue18075. Also, @remi.lapeyre suggested that a

[issue37212] ordered keyword arguments in unittest.mock.call repr and error messages

2019-06-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I created a python-dev thread for discussion : https://mail.python.org/archives/list/python-...@python.org/thread/6F2NGCERZLZ2CDGYIAR5QOHMGAAE5VHE/ -- ___ Python tracker

[issue37345] Add formal support for UDPLITE protocol

2019-06-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: Add formal support for UDPLITE protococl -> Add formal support for UDPLITE protocol ___ Python tracker ___ _