[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2014-08-18 Thread Martin Panter
Martin Panter added the comment: It seems to me that raising OSError isn’t quite right. Either the error is more of an internal programmer error, like how writing to a closed file object raises ValueError, or there should not be an error, like when the process has terminated but has not been

[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated

2014-08-18 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- components: +Library (Lib) -Interpreter Core ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6973 ___

[issue22223] argparse not including '--' arguments in previous optional REMAINDER argument

2014-08-18 Thread Jurko Gospodnetić
New submission from Jurko Gospodnetić: If you have an optional nargs=argparse.REMAINDER argument defined then, if specified, its value should contain all the remaining command-line content. However, it seems that value does not include later '--' arguments. For example, the following works as

[issue22223] argparse not including '--' arguments in previous optional REMAINDER argument

2014-08-18 Thread Jurko Gospodnetić
Jurko Gospodnetić added the comment: Might be related to the following issues: http://bugs.python.org/issue9571 http://bugs.python.org/issue13922 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3

[issue20912] [zipfile.py]: Make zip directory attributes more friendly for MS-Windows

2014-08-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks good. But writestr() should be updated too. Some users use it to add a directory to ZIP file. Here is a patch with tests. It also changes attributes of regular file added by writestr(). -- stage: test needed - patch review versions: -Python

[issue20912] [zipfile.py]: Make zip directory attributes more friendly for MS-Windows

2014-08-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20912 ___ ___

[issue20797] zipfile.extractall should accept bytes path as parameter

2014-08-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: - needs patch versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20797

[issue19883] Integer overflow in zipimport.c

2014-08-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 2.7, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19883 ___

[issue22224] docs.python.org is prone to political blocking in Russia

2014-08-18 Thread Alexander Patrakov
New submission from Alexander Patrakov: I could not access http://docs.python.org/ from work today. Upon investigation, it appears that the ISP has blocked all sites on the IP address 185.31.17.175, because of the court order unrelated to docs.python.org. Many other ISPs in Russia also don't

[issue22224] docs.python.org is prone to political blocking in Russia

2014-08-18 Thread Christian Heimes
Christian Heimes added the comment: Dmitry Chestnykh has pointed me to https://antizapret.info/site.php?id=5903 -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4

[issue21308] PEP 466: backport ssl changes

2014-08-18 Thread Robert Kuska
Robert Kuska added the comment: Hi everyone, I went ahead and I've applied ssl-backport.diff (alex, 2014-08-07 18:49) patch into Python 2.7.8 on Fedora Rawhide (currently only scratch build). My report: Firstly, I've encountered seg fault, I fixed this with patch from

[issue22115] Add new methods to trace Tkinter variables

2014-08-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: list or tuple (of such strings.) Can we say 'sequence' (or even set or iterable) or is the requirement specifically tuple or list? No. The call() method accepted only tuples, and since issue21525 it now supports lists. Does tk call the traceback

[issue22224] docs.python.org is prone to political blocking in Russia

2014-08-18 Thread Donald Stufft
Donald Stufft added the comment: Just a FYI, I've let Fastly know about this. -- nosy: +dstufft ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-08-18 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12067 ___ ___

[issue22224] docs.python.org is prone to political blocking in Russia

2014-08-18 Thread Georg Brandl
Georg Brandl added the comment: Not much more we can do from here. -- nosy: +georg.brandl resolution: - third party status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2014-08-18 Thread Bastien Montagne
Changes by Bastien Montagne b.mon...@gmail.com: -- nosy: +mont29 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17797 ___ ___ Python-bugs-list

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2014-08-18 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17797 ___ ___ Python-bugs-list

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Marco Paolini
Marco Paolini added the comment: I finally wrapped my head around this. I wrote a (simpler) script to get a better picture. What happens - When a consumer task is first istantiated, the loop holds a strong reference to it (_ready) Later on, as the loop starts, the consumer task

[issue22214] Tkinter: Don't stringify callbacks arguments

2014-08-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch appears to change it to 2 in tkinter/__init__.py. This is for development only. You can apply the patch and test how new mode affects IDLE or other applications. One thing slightly puzzles me: the current PythonCmd is used in a call to

[issue22224] docs.python.org is prone to political blocking in Russia

2014-08-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: It looks like the IP address is being used by some viruses/trojans: https://www.virustotal.com/en/ip-address/185.31.17.175/information/ It may help using e.g. b.global-ssl.fastly.net as CNAME for docs.python.org (e.g. by adding it to the /etc/hosts).

[issue20042] Python Launcher, Windows, fails on scripts w/ non-latin names

2014-08-18 Thread Steve Dower
Steve Dower added the comment: It should be fixable. In general, Unicode in the console is fine, but the CRT doesn't handle it well (as shown by the _setmode extension being able to fix it). The 'correct' fix for Unicode in the console is at http://www.siao2.com/2010/04/07/9989346.aspx and

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Guido van Rossum
Guido van Rossum added the comment: I'm all in favor of documenting that you must keep a strong reference to a task that you want to keep alive. I'm not keen on automatically keep all tasks alive, that might exacerbate leaks (which are by definition hard to find) in existing programs. On Mon,

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Marco Paolini
Marco Paolini added the comment: Asking the user to manage strong refs is just passing the potential leak issue outside of the standard library. It doesn't really solve anything. If the user gets the strong refs wrong he can either lose tasks or leak memory. If the standard library gets it

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Guido van Rossum
Guido van Rossum added the comment: So you are changing your mind and withdrawing your option #1. I don't have the time to really dig deeply into the example app and what's going on. If you want to help, you can try to come up with a patch (and it should have good unit tests). I'll be on

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Marco Paolini
Marco Paolini added the comment: So you are changing your mind and withdrawing your option #1. I think option #1 (tell users to keep strong refs to tasks) is OK but option #2 is better. Yes, I changed my mind ;) -- ___ Python tracker

[issue21308] PEP 466: backport ssl changes

2014-08-18 Thread Alex Gaynor
Alex Gaynor added the comment: Thanks for testing this out Robert! The attached patch fixes the error you saw. -- Added file: http://bugs.python.org/file36407/ssl-backport.diff ___ Python tracker rep...@bugs.python.org

[issue22197] Allow better verbosity / output control in test cases

2014-08-18 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22197 ___ ___

[issue22225] Add SQLite support to http.cookiejar

2014-08-18 Thread Demian Brecht
New submission from Demian Brecht: This is a proposal for adding SQLite support to http.cookiejar. I've been working on an implementation for MozillaSQLiteCookieJar and GoogleSQLiteCookieJar (initial patch will likely only include Mozilla) but wanted to make sure that the addition has buy-in

[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-08-18 Thread Akira Li
Akira Li added the comment: #7951 has an interesting debate on negative indexes that is possibly applicable here. Mark could you point to a message that explains why p.parents[-2] is worse than p.parents[len(p.parents)-2]? -- ___ Python tracker

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-08-18 Thread Marco Paolini
Marco Paolini added the comment: Submitted a first stab at #2. Let me know what you think. If this works we'll have to remove the test_gc_pending test and then maybe even the code that now logs errors when a pending task is gc'ed -- Added file:

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2014-08-18 Thread Mark Lawrence
Mark Lawrence added the comment: msg216038 suggests three options for the doc patch, does anybody have any preference or a better alternative? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7951

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-08-18 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___ Python-bugs-list

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-08-18 Thread Mark Lawrence
Mark Lawrence added the comment: I'm assuming that the 2.7 patch is still valid but have no idea whether or not any work is needed on 3.4 or 3.5. -- nosy: +BreamoreBoy, zach.ware versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-08-18 Thread Steve Dower
Steve Dower added the comment: There is other work going on that will make the patches unnecessary. One problem is that vcvarsall.bat isn't where msvc9compiler.py is looking, which can be fixed with monkey patching in setup.py or in setuptools. The other problem is that VC9 is hard to get

[issue2527] Pass a namespace to timeit

2014-08-18 Thread Ben Roberts
Ben Roberts added the comment: Attached is a patch that adds a 'global' kwarg to the Timeit constructor, which does pretty much what it says on the tin: specifies a global namespace that exec() will use. I originally had a 'locals' arg as well (to mirror the signature of eval/exec), but

[issue2527] Pass a namespace to timeit

2014-08-18 Thread Ben Roberts
Ben Roberts added the comment: Correction, the name of the argument is 'globals', not 'global'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2527 ___

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

2014-08-18 Thread Stefan Krah
Stefan Krah added the comment: I guess it's the right thing to do and here's a patch. Could one of you double check the decimal.py part? -- keywords: +patch Added file: http://bugs.python.org/file36410/issue22090.diff ___ Python tracker

[issue21412] Solaris/Oracle Studio: Fatal Python error: PyThreadState_Get when built --with-pymalloc

2014-08-18 Thread John Beck
John Beck added the comment: Ned: yes, I can confirm that the patch from http://bugs.python.org/issue21166 does indeed fix the problem. Thank you very much! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21412

[issue18554] os.__all__ is incomplete

2014-08-18 Thread Martin Panter
Martin Panter added the comment: I ran into this today, trying to do “help(os)”. The workaround was to do “import posix; help(posix)”. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18554

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-18 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - fixed stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22165 ___

[issue22165] Empty response from http.server when directory listing contains invalid unicode

2014-08-18 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22165 ___ ___

[issue17140] Document multiprocessing.pool.ThreadPool

2014-08-18 Thread Nick Coghlan
Nick Coghlan added the comment: After a question from Brandon Rhodes, I noticed that ThreadPool is actually listed in multiprocess.pool.__all__. So rather than doing anything more dramatic, we should just document the existing multiprocessing feature. As Richard says, the concurrent.futures

[issue20291] Argument Clinic should understand *args and **kwargs parameters

2014-08-18 Thread Larry Hastings
Larry Hastings added the comment: So, let's think about this for a minute. What's the API that we *want* here? If your function has the signature (a, b, c=20, *args) and you call it with (1, 2, 3, 4, 5) should args be (4, 5), or (1, 2, 3, 4, 5)? I assert that the impl function should