[issue26259] Memleak when repeated calls to asyncio.queue.Queue.get is performed, without push to queue.

2016-02-02 Thread Guido van Rossum
Guido van Rossum added the comment: First, you wrote "The easy solution was to check if the queue was empty and skip the read (get call) if there was nothing in the queue" -- which is exactly what get_nowait() does. As to a patch, I think you should just describe how you would change the code, t

[issue26098] PEP 510: Specialize functions with guards

2016-02-02 Thread STINNER Victor
STINNER Victor added the comment: Results of the "The Grand Unified Python Benchmark Suite" on specialize-6.patch. I'm skeptical, I don't understand how my patch can make a benchmark faster :-) The result of regex_v8 is bad :-/ $ python3 -u perf.py --rigorous ../default/python.orig ../defaul

[issue26243] zlib.compress level as keyword argument

2016-02-02 Thread Martin Panter
Martin Panter added the comment: The patch at Issue 16764 has a test case for the new level=... keyword. Perhaps you would like to incorporate/update it :) -- ___ Python tracker ___

[issue16764] Make zlib accept keyword-arguments

2016-02-02 Thread Martin Panter
Martin Panter added the comment: See Issue 8706 discussing adding keyword support to library functions in general. Functions the first patch affects: * zlib.compress(data, level=...): still relevant; see Issue 26243 * compressobj(memlevel=...): fixed in documentation in revision fdb5d84f9948

[issue26136] DeprecationWarning for PEP 479 (generator_stop)

2016-02-02 Thread Martin Panter
Martin Panter added the comment: Have you tried running the test suite? I suspect there are tests that will fail. E.g. the tests in revision 2771a0ac806b would need to be changed over to DeprecationWarning as well. -- stage: needs patch -> patch review

[issue26209] TypeError in smtpd module with string arguments

2016-02-02 Thread Lorenzo Ancora
Lorenzo Ancora added the comment: (msg259229) Terry J. Reedy i Suggest that a standard and globally accepted scheme to manage IPv4 addresses is: "Host:PortNumber" --> (host, PortNumber) "Host"--> (host, DefaultPortNumber) "IP:PortNumber" --> (host, PortNumber) "IP"

[issue26270] Support for read()/write()/select() on asyncio

2016-02-02 Thread Martin Panter
Martin Panter added the comment: Maybe I misunderstand the asyncio protocols, transports, streams, etc too :) but last time I looked they all seemed to buffer your write data and send it in the background. E.g. in the echo-client-using-streams example, there is a writer.write() call that does

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-02-02 Thread Martin Panter
Martin Panter added the comment: Hello Jesse. Maybe Yury might be more qualified here than me to handle OS X stuff (correct me if I’m wrong). I mainly just work with Linux. But reading around socketmodule.c, it sounds like we want to be able to build it on newer OS versions, but still have it

<    1   2