[issue22263] Add a resource for CLI tests

2014-08-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks reasonable. On other hand, there is the subprocess resource which currently is not used in any test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22263

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-26 Thread A. Libotean
A. Libotean added the comment: I'm not sure that it's a leak because it doesn't depend on the number of queries nor the number of run of the test. It's maybe an internal sqlite cache. You're right, the leak does not increase past ~300 queries executed. --

[issue21965] Add support for Memory BIO to _ssl

2014-08-26 Thread Geert Jansen
Geert Jansen added the comment: Updated patch. Contains: * An owner attribute on a _ssl.SSLSocket that is used as the first argument to the SNI servername callback (implemented as a weakref). * Documentation I think this covers all outstanding issues that were identified. Antoine, please

[issue22240] argparse support for python -m module in help

2014-08-26 Thread Nick Coghlan
Nick Coghlan added the comment: If you have: curdir /subdir __main__.py Then in 3.3+, both of the following will work: python3 subdir python3 -m subdir They do slightly different things, though. In the first case, subdir will be added to sys.path, and then python will

[issue22200] Remove distutils checks for Python version

2014-08-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: I spotted a few others as well. When I get a bit less busy in a couple of weeks time, I intend to go through and make a bigger patch to clean things up. -- ___ Python tracker rep...@bugs.python.org

[issue22240] argparse support for python -m module in help

2014-08-26 Thread Miki Tebeka
Miki Tebeka added the comment: Support for directory invocation as well. -- Added file: http://bugs.python.org/file36476/prog3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22240 ___

[issue22276] pathlib glob issues

2014-08-26 Thread João Guerra
New submission from João Guerra: Both fnmatch and glob support the */ glob. However, pathlib does not seem to handle this kind of globs correctly. dir = Path(/a/directory/) file = Path(/a/file) print(dir.match(*/)) # True print(file.match(*/)) # True The / is being discarded by the match,

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread Cristian Consonni
New submission from Cristian Consonni: Hello, I would like to propose a patch for the webbrowser module to actively suppress any output (both on stdout and stderr) from the module itself. At the moment, doing a quick internet search, the best approximation to obtain this kind of behavior

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2014-08-26 Thread Nikolay Bogoychev
Nikolay Bogoychev added the comment: Hey, Just a friendly reminder that the patch is pending for review and there has been no activity for 3 months (: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16099

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread R. David Murray
R. David Murray added the comment: This seems like a good idea, based on the use case presented in the stackoverflow question. This would be an enhancement, so it can only go in 3.5. Please submit a patch without the pep 8 changes, so we can easily see what the patch is actually changing.

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Instead of a complex structure, we can use a 64-bit signed integer to store a number of nanoseconds. Do we have 64-bit integers on all architectures? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: Am 26.08.14 15:32, schrieb Antoine Pitrou: Antoine Pitrou added the comment: Instead of a complex structure, we can use a 64-bit signed integer to store a number of nanoseconds. Do we have 64-bit integers on all architectures? On all supported

[issue22117] Rewrite pytime.h to work on nanoseconds

2014-08-26 Thread STINNER Victor
STINNER Victor added the comment: Do we have 64-bit integers on all architectures? That's a good question! Visual Studio provides __int64. GCC provides long long (64 bit on 32 bit platform). I guess that ICC also supports int64_t. It would be a shame to not support 64-bit integers in 2014,

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread Cristian Consonni
Cristian Consonni added the comment: Hi David, thanks for your feedback. The parameters' name are indeed stdout and stderr as the one used by subprocess.Popen(). Here's the patch file without the pep 8 modifications. Thanks, Cristian -- Added file:

[issue22277] webbrowser.py add parameters to suppress output on stdout and stderr

2014-08-26 Thread R. David Murray
R. David Murray added the comment: What I meant was the any *other* value follows the subprocess documentation part. I think it would be better to have *all* the values follow the subprocess documentation. -- ___ Python tracker

[issue22276] pathlib glob issues

2014-08-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +pitrou versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22276 ___

[issue22278] urljoin duplicate slashes

2014-08-26 Thread Demian Brecht
New submission from Demian Brecht: Reported by Stefan Behnel in issue22118: I'm now getting duplicated slashes in URLs, e.g.: https://new//foo.html http://my.little.server/url//logo.gif In both cases, the base URL that gets joined with the postfix had a trailing slash, e.g.

[issue22278] urljoin duplicate slashes

2014-08-26 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file36479/issue22278.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22278 ___

[issue22279] read() vs read1() in asyncio.StreamReader documentation

2014-08-26 Thread Jack O'Connor
New submission from Jack O'Connor: BufferedIOBase and related classes have a read(n) and read1(n). The first will wait until n bytes are available (or EOF), while the second will return as soon as any bytes are available. In asyncio.StreamReader, there is no read1 method, but the read method

[issue22279] read() vs read1() in asyncio.StreamReader documentation

2014-08-26 Thread Guido van Rossum
Guido van Rossum added the comment: Good point. I think I had forgotten how BufferedIOBase worked... :-( I believe we should just change this -- Victor, what do you think? -- ___ Python tracker rep...@bugs.python.org

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c585929658a by Stefan Krah in branch '3.4': Issue #22090: Fix '%' formatting for infinities and NaNs. http://hg.python.org/cpython/rev/5c585929658a New changeset 37ebb0d44808 by Stefan Krah in branch '2.7': Issue 22090: Fix '%' formatting for

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- components: +Library (Lib) resolution: - fixed stage: - resolved status: open - closed versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread R. David Murray
R. David Murray added the comment: Looks like there is a bug of some sort, eg: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.4/builds/466 -- nosy: +r.david.murray status: closed - open ___ Python tracker

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Stefan Krah
Stefan Krah added the comment: I think only the builders --with-system-libmpdec fail. That's inevitable, since they still use libmpdec-2.4.0. Starting from 7fbb912c0789 they should fail building _decimal entirely until I upgrade the system libmpdec on the builders. --

[issue20745] test_statistics fails in refleak mode

2014-08-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: This issue can be closed. After changeset 7bc53cf8b2df by Zachary Ware in issue 22104: ./python -m test -R3:3 test_statistics is ok now. -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org

[issue22272] sqlite3 memory leaks in cursor.execute

2014-08-26 Thread Ned Deily
Ned Deily added the comment: Can we close this issue then? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22272 ___ ___

[issue22278] urljoin duplicate slashes

2014-08-26 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +orsenthil, pitrou stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22278 ___ ___

[issue22280] _decimal: successful import despite build failure

2014-08-26 Thread Stefan Krah
New submission from Stefan Krah: This may be related to PEP 451: Previously, if the _decimal.so build failed for whatever reason, decimal.py would be used instead. For that to work, importing _decimal needs to fail. But now the import is successful: # Simulate build failure: rm

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Stefan Krah
Stefan Krah added the comment: It seems _decimal is imported even if _decimal.so is not built. I've opened #22280 for that. Regarding this patch, everything looks fine to me. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22279] read() vs read1() in asyncio.StreamReader documentation

2014-08-26 Thread STINNER Victor
STINNER Victor added the comment: Guido, what do you mean by changing this? Rename methods? What about the backward compatibility? Is it possible that an application written with the read1 behaviour blocks if read(n) waits for exactly n bytes? I like the idea of having the same names in io and

[issue22280] _decimal: successful import despite build failure

2014-08-26 Thread Stefan Krah
Stefan Krah added the comment: The effect can also be seen on the two buildbots that currently fail to build _decimal due to a libmpdec version mismatch: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/7088/steps/test/logs/stdio -- keywords:

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread R. David Murray
R. David Murray added the comment: As long as you have a plan to get the buildbots fixed in a timely fashion. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22090 ___

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread R. David Murray
R. David Murray added the comment: (To be clear, I'm talking about the stable buildbots :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22090 ___

[issue22279] read() vs read1() in asyncio.StreamReader documentation

2014-08-26 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, I just checked the docs. io.BufferedIOBase.read(size) is more complicated than I (or Jack) thought -- it can return a short read if the underlying raw stream is interactive. The subclass io.BufferedReader uses the definition preferred by Jack (though

[issue12855] linebreak sequences should be better documented

2014-08-26 Thread Martin Panter
Martin Panter added the comment: Any reason why characters 1C–1E are excluded? -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12855 ___

[issue22090] Decimal and float formatting treat '%' differently for infinities and nans.

2014-08-26 Thread Stefan Krah
Stefan Krah added the comment: I'm not sure that I understand. IMHO this issue does not break any buildbots. The current situation is that it exposes an unrelated import issue (#22280). I can camouflage that issue by upgrading the FreeBSD and the Fedora bot to libmpdec-2.4.1 (once it's out),

[issue16662] load_tests not invoked in package/__init__.py

2014-08-26 Thread Robert Collins
Robert Collins added the comment: I think we rather need a test that using a load_tests hook to recursively load and transform a subdir works. Hacking on that now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16662

[issue22281] ProcessPoolExecutor/ThreadPoolExecutor should provide introspection APIs

2014-08-26 Thread Dan O'Reilly
New submission from Dan O'Reilly: As initially discussed on python-ideas, it would be nice if there was a way to query the concurrent.futures Executor objects for information about their internal state - number of total/active/idle workers, number of total/active/waiting tasks, which tasks

[issue22281] ProcessPoolExecutor/ThreadPoolExecutor should provide introspection APIs

2014-08-26 Thread Dan O'Reilly
Changes by Dan O'Reilly oreil...@gmail.com: Added file: http://bugs.python.org/file36481/exectest.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22281 ___

[issue22279] read() vs read1() in asyncio.StreamReader documentation

2014-08-26 Thread Guido van Rossum
Guido van Rossum added the comment: Also, I'm not too fond of the read1()/read() dichotomy. I was pretty much forced into it because Python 2 streams implemented read() using the libc fread() function, which has this behavior -- but in general I find the UNIX read() syscall more convenient,

[issue16662] load_tests not invoked in package/__init__.py

2014-08-26 Thread Robert Collins
Robert Collins added the comment: Ok, implementation I'm happy with is up in https://bitbucket.org/rbtcollins/cpython/commits/bbf2eb26dda8f3538893bf3dc33154089f37f99d -- hgrepos: +269 Added file: http://bugs.python.org/file36482/16662_passing_tests.diff

[issue22281] ProcessPoolExecutor/ThreadPoolExecutor should provide introspection APIs

2014-08-26 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22281 ___ ___ Python-bugs-list

[issue22065] Update turtledemo menu creation

2014-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset b671092e08fa by Terry Jan Reedy in branch '3.4': Issue #22065: Menus, unlike Menubottons, do not have a state option. http://hg.python.org/cpython/rev/b671092e08fa -- ___ Python tracker

[issue22065] Update turtledemo menu creation

2014-08-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Before the patch, the Examples menu was disabled while a demo was running by setting the Menubutton state to DISABLED versus NORMAL. This does not work for the cascaded Menu. The result was buggy behavior when loading a new demo while the previous one was

[issue22065] Update turtledemo menu creation

2014-08-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset a94d9c981461 by Terry Jan Reedy in branch '3.4': Issue #22065: Remove the now unsed configGUI menu parameter and arguments. http://hg.python.org/cpython/rev/a94d9c981461 -- ___ Python tracker