[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 at the moment).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/874ff65e0a70ff4fd1a67e85cd61d76adfcc219d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:\buildbot.python.org\3.x.kloth-win64\build\PCbuild\\..\externals\pythonx86\tools\python.exe"
 (found in externals directory)
Fetching external libraries...
...

But I could be missing something. What I don't understand currently is why it 
fails only on the Windows buildbots.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
smoother than each project independently stumbling across this issue and adding 
their own patch (and then fielding support issues from users who have ended up 
with a combination of versions that doesn't quite work). This of course depends 
on how many affected projects there are; I know Jupyter is the biggest but 
they're not the only one. 

There's no more direct way, but a thread that does select() should work. In 
fact, ProactorEventLoop could simply spin up a SelectorEventLoop in another 
thread when one of the FD methods is called, and proxy the callbacks back and 
forth. 

def add_reader(self, fd, callback, *args):
if not self.selector_started:
self.start_selector()
self.selector.call_soon(self.selector.add_reader, fd, lambda: 
self.call_soon(callback, *args))

def start_selector(self):
self.selector = SelectorEventLoop()
def target():
asyncio.set_event_loop(self.selector)
self.selector.run_forever()
thread = threading.Thread(target=target)
thread.start()
# Clean shutdown is left as an exercise for the reader.

Unifying the two interfaces like this would be preferable to adding more 
complexity for configuration IMHO.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 issue for Tornado itself. If Jupiter 
Notebook needs Tornado, Tornado needs selector event loop on Windows -- Jupiter 
can install the proper loop.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Minidom for 
pretty-printing XML.

--
components: XML
messages: 346296
nosy: mitar
priority: normal
severity: normal
status: open
title: Minidom does not have to escape quote inside text segments
type: enhancement
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 script.

And considering the code for Unix environment, I dont think to set the rbufsize 
to -1 is a good idea. I prefer a safer way: to do a read() loop and read until 
nbytes received. It is much slower but more compatible. Like this:

if self.command.lower() == "post" and nbytes > 0:
#data = self.rfile.read(nbytes) #Original 
code at line 1199
databuf = bytearray(nbytes)
datacount = 0
while datacount + 1 < nbytes:
buf = 
self.rfile.read(self.request.getsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF))   
 #You can set your number.
if len(buf) == 0:
print("Connection closed before nbytes reached.")
break
for i in range(len(buf)):
databuf[datacount] = buf[i]
datacount += 1
if datacount == nbytes:
break
data = bytes(databuf)

This code is only for explanation... Not for use...

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 we fix this, would you allow this to go in beta2/3?  
Strictly speaking it's going to be a new functionality.

--
nosy: +lukasz.langa, vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 round.

I.e. all *.pyc files created before the change won't work with later cpython 
versions, and vice versa.

I assume the build bots don't remove *.pyc files.

How large an issue is that?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 subprocesses and generally lower scalability. 
(The default has changed from selector to proactor in Python 3.8).

If an application requires the selector event loop, it can set the global event 
loop policy when it starts up. But what if a library requires the selector 
event loop? It wouldn't be appropriate for a library to set the event loop 
policy. The best I can do is document that "This library requires an event loop 
which supports the add_reader() method; to use this library on Windows 
(directly or indirectly) you must install the WindowsSelectorEventLoopPolicy."  

This places a burden on application developers that target Windows to examine 
all their transitive dependencies to see if any require selectorevent loops 
(and if any have conflicting requirements for proactor event loops, which are 
even less likely to be documented since this is now the default). Concretely, 
this is a concern for Tornado (which requires add_reader()) and applications in 
the scientific python community (including Jupyter) which depend on it. 

I know it's probably too late to do anything about this for 3.8, but it would 
be great if there were some better process to negotiate the right event loop. 
Some ideas (none of which are very satisfying):
- A declarative marker in setup.cfg or similar indicating the required feature 
set for an event loop
- A dummy package that could be depended on to indicate the same thing (and 
maybe this package could even use .pth hacks to change the default simply by 
being installed, but that seems like a hack too far)
- Some sort of runtime registry: at import time, Tornado could call 
`asyncio.add_required_features(asyncio.ADD_READER)` and this would influence 
the default policy
- Flags to `get_event_loop()` indicating the required features (passed through 
to the policy).

--
components: asyncio
messages: 346289
nosy: Ben.Darnell, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Configuration of windows event loop for libraries
type: enhancement
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
--
Traceback (most recent call last):
  File 
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/test_regrtest.py",
 line 915, in test_list_cases
self.assertEqual(output.splitlines(), all_methods)
AssertionError: Lists differ: ['tes[73 chars]hod2', 
"/buildbot/buildarea/cpython/3.x.ware-g[305 chars]th:'] != ['tes[73 chars]hod2']
First list contains 2 additional elements.
First extra element 2:
"/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/support/__init__.py:1058:
 RuntimeWarning: tests may fail, unable to create temporary directory 
'/buildbot/tmp/tmpdir/test_python_5670': [Errno 17] File exists: 
'/buildbot/tmp/tmpdir/test_python_5670'"
  ['test_regrtest_noop8.Tests.test_method1',
-  'test_regrtest_noop8.Tests.test_method2',
?  ^
+  'test_regrtest_noop8.Tests.test_method2']
?  ^
-  
'/buildbot/buildarea/cpython/3.x.ware-gentoo-x86.installed/build/target/lib/python3.9/test/support/__init__.py:1058:
 '
-  'RuntimeWarning: tests may fail, unable to create temporary directory '
-  "'/buildbot/tmp/tmpdir/test_python_5670': [Errno 17] File exists: "
-  "'/buildbot/tmp/tmpdir/test_python_5670'",
-  '  with temp_dir(path=name, quiet=quiet) as temp_path:']
--
Ran 73 tests in 35.451s
FAILED (failures=1, skipped=5)
test test_regrtest failed
1 test failed again:
test_regrtest

--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/all/#/builders/12/builds/2766

Extract from the logs:

2 tests failed:
test_asdl_parser test_clinic

 ==
ERROR: test_attributes (test.test_asdl_parser.TestAsdlParser)
--
Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_asdl_parser.py", 
line 64, in test_attributes
stmt = self.types['stmt']
KeyError: 'stmt'
==
ERROR: test_constructor_fields (test.test_asdl_parser.TestAsdlParser)
--
Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_asdl_parser.py", 
line 72, in test_constructor_fields
ehandler = self.types['excepthandler']
KeyError: 'excepthandler'
==
ERROR: test_definitions (test.test_asdl_parser.TestAsdlParser)
--
Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_asdl_parser.py", 
line 54, in test_definitions
self.assertIsInstance(self.types['withitem'], self.asdl.Product)
KeyError: 'withitem'
==
ERROR: test_product (test.test_asdl_parser.TestAsdlParser)
--
Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_asdl_parser.py", 
line 58, in test_product
alias = self.types['alias']
KeyError: 'alias'
==
ERROR: test_visitor (test.test_asdl_parser.TestAsdlParser)
--
Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_asdl_parser.py", 
line 119, in test_visitor
v.visit(self.types['mod'])
KeyError: 'mod'
==
FAIL: test_module (test.test_asdl_parser.TestAsdlParser)
--
Traceback (most recent call last):
  File "D:\buildarea\3.x.bolen-windows10\build\lib\test\test_asdl_parser.py", 
line 45, in test_module
self.assertIn('stmt', self.types)
AssertionError: 'stmt' not found in {Sum([Construct
--

I cannot reproduce the error locally on my Windows 10 machine, but it fails 
consistently. I made a custom run in one of the buildbots and still fails:

https://buildbot.python.org/all/#/builders/3/builds/3027

--
nosy: +pablogsal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, 2, 3).__reduce__()
(, ('\x01\x02\x03\x00\x00\x00',))
python2>>> datetime.time(23, 24, 25).__reduce__()
(, ('\x17\x18\x19\x00\x00\x00',))

python3>>> datetime.time('\x01\x02\x03\x00\x00\x00')
datetime.time(1, 2, 3)
python3>>> datetime.time('\x17\x18\x19\x00\x00\x00')
Traceback (most recent call last):
  File "", line 1, in 
TypeError: an integer is required (got type str)

I would like to contribute a fix and will be opening a PR. This is my first 
contribution - any help and patience appreciated!

--
components: Library (Lib)
messages: 346284
nosy: Justin Blanchard
priority: normal
severity: normal
status: open
title: datetime.time unpickling fails in case of python2 pickle with seconds>=24
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Difference between array( [1,0,1] ) and array( [ [1,0,1] ] )

2019-06-22 Thread Markos

Thanks Edmondo, Stephen, Mats and Steven you for the tips,

I studied linear algebra many years ago and I remember only a few rudiments.

But I was trying to visualize (in a geometric way) how the numpy 
represents arrays, and what the geometrical meaning of the transpose 
operation made by numpy.


I think I understood a little bit more.

The number of nested brackets indicates the number of array dimensions.
the vector ( [1,2] ) is one-dimensional, but the vector ( [ [1,2] ] ) is 
two-dimensional.


v_1 = np.array( [1,2] )
> v_1.shape
(2,)
> v_1
v_1
> v_1
array( [1, 2] )
> v_2 = np.array( [ [1,2] ] )
> v_2.shape
(1, 2)

And it does not make sense to transpose a one-dimensional array.

> v_1.T
array( [1, 2] )
> v_2.T
array( [ [1],
 [2] ] )

Anothe example:

vector_1 = np.array( [   1,   2,   3,   4,   5,   6,   7,   8  ] )

  ^

vector_2 = np.array( [    [1, 2, 3, 4],    [5, 6, 7, 8]  ]  )

  ^  ^

vector_3 = np.array( [   [   [1,2],  [3,4]  ], [  [5,6],   [7,8] ]  ]  )

  ^ ^ ^

> vector_1
array([1, 2, 3, 4, 5, 6, 7, 8])
> vector_2
array( [ [1, 2, 3, 4],
 [5, 6, 7, 8] ] )
> vector_3
array( [ [ [1, 2],
   [3, 4] ],

 [ [5, 6],
   [7, 8] ] ] )

And looking for some tutorial about geometric aspects of matrices and 
the geometric meaning of the transpose I found that transposed is 
"mirrored along the diagonal" at:


https://www.coranac.com/documents/geomatrix/

>vector_1.T
array([1, 2, 3, 4, 5, 6, 7, 8])
> vector_2.T
array( [ [1, 5],
 [2, 6],
 [3, 7],
 [4, 8] ] )
> vector_3.T
array( [ [ [1, 5],
   [3, 7]],

 [ [2, 6],
   [4, 8] ] ] )

Thank you,
Markos

Em 21-06-2019 07:44, edmondo.giovanno...@gmail.com escreveu:

Every array in numpy has a number of dimensions,
"np.array" is a function that can create an array numpy given a list.

when  you write
vector_1  = np.array([1,2,1])
you are passing a list of number to thet function array that will create a 1D 
array.
As you are showing:
vector_1.shape
will return a tuple with the sizes of each dimension of the array that is:
(3,)
Note the comma thta indicate that is a tuple.
While if you write:
vector_2 = np.array([[1,2,3]])
You are passing a list of list to the function array that will instruct it to 
crete a 2D array, even though the size of the first dimension is 1:
vector_2.shape
(1,3)
It is still a tuple as you can see.
Try:
vector_3 = np.array([[1,2,3],[4,5,6]])
And you'll see that i'll return a 2D array with a shape:
vector_3.shape
(2,3)
As the external list has 2 elements that is two sublists each with 3 elements.
The vector_2 case is just when the external list has only 1 element.

I hope it is more clear now.
Cherrs,

   

   
   


Il giorno venerdì 21 giugno 2019 08:29:36 UTC+2, Markos ha scritto:

Hi,

I'm studying Numpy and I don't understand the difference between


vector_1 = np.array( [ 1,0,1 ] )

with 1 bracket and


vector_2 = np.array( [ [ 1,0,1 ] ] )

with 2 brackets

The shape of vector_1 is:


vector_1.shape

(3,)

But the shape of vector_2 is:


vector_2.shape

(1, 3)

The transpose on vector_1 don't work:


vector_1.T

array([1, 0, 1])

But the transpose method in vector_2 works fine:


vector_2.T

array([[1],
     [0],
     [1]])


I thought that both vectors would be treated as an matrix of 1 row and 3
columns.

Why this difference?

Any tip?

Thank you,
Markos


--
https://mail.python.org/mailman/listinfo/python-list


[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/c8a35417db8853a253517a3e5190e174075c6384


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/shlomif/apps/fcs/bin:/home/shlomif/progs/freecell/git/0fc-b/:/home/shlomif/progs/freecell/git/0fc-b//board_gen:/home/shlomif/bin:/home/shlomif/apps/perl/modules/bin:/home/shlomif/apps/perl/modules/local/bin:/home/shlomif/apps/neovim/bin:/home/shlomif/apps/fop/fop-20140425:/home/shlomif/apps/vim/bin:/home/shlomif/apps/golang/bin:/home/shlomif/.local/bin:/home/shlomif/.perl6/bin:/home/shlomif/.cargo/bin:/usr/local/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/usr/games
+ export LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ python3 collect-stats.py 0fc-log.txt
S   18474775
Int 617438

real0m6.655s
user0m6.599s
sys 0m0.054s
+ 
PATH=/home/shlomif/apps/python3/bin:/home/shlomif/apps/fcs/bin:/home/shlomif/progs/freecell/git/0fc-b/:/home/shlomif/progs/freecell/git/0fc-b//board_gen:/home/shlomif/bin:/home/shlomif/apps/perl/modules/bin:/home/shlomif/apps/perl/modules/local/bin:/home/shlomif/apps/neovim/bin:/home/shlomif/apps/fop/fop-20140425:/home/shlomif/apps/vim/bin:/home/shlomif/apps/golang/bin:/home/shlomif/.local/bin:/home/shlomif/.perl6/bin:/home/shlomif/.cargo/bin:/usr/local/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/usr/games
+ export LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ python3 collect-stats.py 0fc-log.txt
S   18474775
Int 617438

real0m6.817s
user0m6.772s
sys 0m0.045s
+ 
PATH=/home/shlomif/apps/python3/bin:/home/shlomif/apps/fcs/bin:/home/shlomif/progs/freecell/git/0fc-b/:/home/shlomif/progs/freecell/git/0fc-b//board_gen:/home/shlomif/bin:/home/shlomif/apps/perl/modules/bin:/home/shlomif/apps/perl/modules/local/bin:/home/shlomif/apps/neovim/bin:/home/shlomif/apps/fop/fop-20140425:/home/shlomif/apps/vim/bin:/home/shlomif/apps/golang/bin:/home/shlomif/.local/bin:/home/shlomif/.perl6/bin:/home/shlomif/.cargo/bin:/usr/local/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/usr/games
+ export LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ python3 collect-stats.py 0fc-log.txt
S   18474775
Int 617438

real0m6.763s
user0m6.706s
sys 0m0.057s



After:

+ 
PATH=/home/shlomif/apps/python3/bin:/home/shlomif/apps/fcs/bin:/home/shlomif/progs/freecell/git/0fc-b/:/home/shlomif/progs/freecell/git/0fc-b//board_gen:/home/shlomif/bin:/home/shlomif/apps/perl/modules/bin:/home/shlomif/apps/perl/modules/local/bin:/home/shlomif/apps/neovim/bin:/home/shlomif/apps/fop/fop-20140425:/home/shlomif/apps/vim/bin:/home/shlomif/apps/golang/bin:/home/shlomif/.local/bin:/home/shlomif/.perl6/bin:/home/shlomif/.cargo/bin:/usr/local/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/usr/games
+ export LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ python3 collect-stats.py 0fc-log.txt
S   18474775
Int 617438

real0m6.651s
user0m6.595s
sys 0m0.056s
+ 
PATH=/home/shlomif/apps/python3/bin:/home/shlomif/apps/fcs/bin:/home/shlomif/progs/freecell/git/0fc-b/:/home/shlomif/progs/freecell/git/0fc-b//board_gen:/home/shlomif/bin:/home/shlomif/apps/perl/modules/bin:/home/shlomif/apps/perl/modules/local/bin:/home/shlomif/apps/neovim/bin:/home/shlomif/apps/fop/fop-20140425:/home/shlomif/apps/vim/bin:/home/shlomif/apps/golang/bin:/home/shlomif/.local/bin:/home/shlomif/.perl6/bin:/home/shlomif/.cargo/bin:/usr/local/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/usr/games
+ export LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ python3 collect-stats.py 0fc-log.txt
S   18474775
Int 617438

real0m6.625s
user0m6.559s
sys 0m0.066s
+ 
PATH=/home/shlomif/apps/python3/bin:/home/shlomif/apps/fcs/bin:/home/shlomif/progs/freecell/git/0fc-b/:/home/shlomif/progs/freecell/git/0fc-b//board_gen:/home/shlomif/bin:/home/shlomif/apps/perl/modules/bin:/home/shlomif/apps/perl/modules/local/bin:/home/shlomif/apps/neovim/bin:/home/shlomif/apps/fop/fop-20140425:/home/shlomif/apps/vim/bin:/home/shlomif/apps/golang/bin:/home/shlomif/.local/bin:/home/shlomif/.perl6/bin:/home/shlomif/.cargo/bin:/usr/local/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/usr/games
+ export LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ LD_LIBRARY_PATH=/home/shlomif/apps/python3/lib
+ python3 collect-stats.py 0fc-log.txt
S   18474775
Int 617438

real0m6.601s
user0m6.559s
sys 0m0.042s

=

Based on https://github.com/shlomif/freecell-pro-0fc-deals .



--
components: IO
messages: 346280
nosy: shlomif
priority: normal
pull_requests: 14130
severity: normal
status: open
title: 

[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Python list (used as an array) and the capacity 
refers to the number of elements.

You may struggle to see a use case for specifying a buffer capacity as a number 
of elements rather than a byte size, but that doesn't mean that such use cases 
don't exist.

Are you perhaps using MicroPython in a constrained-memory environment?

In the 17 years that this code has been in Python, it's the first time AFAIK 
that anyone has raised the term "capacity" as potentially confusing, so I don't 
think such confusion is common. However, I'll be happy to update the 
documentation to clarify that "capacity" means "number of records buffered".

--
assignee:  -> vinay.sajip
components: +Documentation -Library (Lib)
stage:  -> needs patch
type: behavior -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/186f70905d07b42a9cbf0a29e448f30baf2b53cb


--
nosy: +miss-islington

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rely on 
ability of the incremental decoder with final=False to detect an invalid 
encoded data, but I see now that it is possible to fix for the original issue 
more carefully, without changing that behavior. PR 14304 does this.

It also change the UTF-16 incremental decoder with the surrogatepass error 
handler to return a non-empty data when decode a low surrogate with 
final=False. It is not necessary, but it makes all UTF-* decoders consistent 
and makes tests simpler.

--
resolution: fixed -> 
stage: resolved -> patch review
status: closed -> open
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 fix could be possible by modifying 
ceval.c. (re-raise RecursionError if it has been cleared).

issue18075 and issue35542 are both of status "closed", I would expect this 
issue to be duplicate to an "open" issue because there is a clear reproducible 
"bug" which crashes the interpreter.

There is also the problems still remaining in logging Handlers that I linked.

I think this is an issue with how recursion error are handled in ceval.c, this 
is related to "tstate->overflowed" and "tstate->recursion_depth > 
recursion_limit + 50".
If I understand correctly, this is implemented like this to allow gracefully 
catch and handle RecursionError from the calling function.
For example, why not re-raise the exception if the first one could not be 
handled correctly?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com