[issue21951] tcl test change crashes AIX

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch can be simpler. And there is yet one similar bug, for unicode strings. -- Added file: http://bugs.python.org/file36544/asobj_empty_sequence_2.patch ___ Python tracker rep...@bugs.python.org

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

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll commit the patch soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20912 ___

[issue21228] Missing enumeration of HTTPResponse Objects methods of urllib.request.urlopen's http.client.HTTPResponse?

2014-09-05 Thread Martin Panter
Martin Panter added the comment: With this patch, there is no longer any implication that the returned object implements the “addinfourl” interface. Perhaps that should be added back. Or maybe add it to the HTTPResponse class documentation itself? There is a comment that says the methods are

[issue22215] embedded NUL character exceptions

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll commit the patch soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22215 ___

[issue18960] First line can be executed twice

2014-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd1e21f17b1c by Serhiy Storchaka in branch '2.7': Issue #1: Backported fixes from Python 3 (issue #18960). http://hg.python.org/cpython/rev/dd1e21f17b1c -- ___ Python tracker rep...@bugs.python.org

[issue22221] ast.literal_eval confused by coding declarations

2014-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd1e21f17b1c by Serhiy Storchaka in branch '2.7': Issue #1: Backported fixes from Python 3 (issue #18960). http://hg.python.org/cpython/rev/dd1e21f17b1c -- nosy: +python-dev ___ Python tracker

[issue22226] Refactor dict result handling in Tkinter

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll commit the patch soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6 ___

[issue22221] ast.literal_eval confused by coding declarations

2014-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13cd8ea4cafe by Serhiy Storchaka in branch '3.4': Issue #1: Add tests for compile() with source encoding cookie. http://hg.python.org/cpython/rev/13cd8ea4cafe New changeset 9d335a54d728 by Serhiy Storchaka in branch 'default': Issue #1: Add

[issue22219] python -mzipfile fails to add empty folders to created zip

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll commit the patch soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22219 ___

[issue15513] Correct __sizeof__ support for pickle

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'll commit the patch soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15513 ___

[issue22221] ast.literal_eval confused by coding declarations

2014-09-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1 ___

[issue22215] embedded NUL character exceptions

2014-09-05 Thread STINNER Victor
STINNER Victor added the comment: If there are no objections I'll commit the patch soon. Replacing TypeError with ValueError is fine. TypeError was a bad choice. If an application relies on TypeError to check for null character, it's easy to replace except TypeError: with except (TypeError,

[issue22215] embedded NUL character exceptions

2014-09-05 Thread STINNER Victor
STINNER Victor added the comment: You may also take a look at these 2 issues: #13617 and #21147 (not directly related to this oe). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22215 ___

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-05 Thread Jonas Wagner
Changes by Jonas Wagner jonas.wag...@epfl.ch: -- nosy: +Sjlver ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5309 ___ ___ Python-bugs-list mailing

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-05 Thread Jonas Wagner
Jonas Wagner added the comment: Is there a reason this has not landed? The patch works perfectly for me, except for one issue: @@ -268,6 +275,9 @@ if self.undef: self.undef = self.undef.split(',') +if self.parallel: +

[issue22215] embedded NUL character exceptions

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Victor. Here is a patch which is synchronized with the tip and addresses your comment about a null character. -- Added file: http://bugs.python.org/file36546/valueerror_embedded_nul_character_2.patch

[issue13617] Reject embedded null characters in wchar* strings

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please answer my comments Victor? -- versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13617

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-05 Thread Stefan Behnel
Stefan Behnel added the comment: Yes, please. The sequential build in distutils is very annoying. (too late for Py3.4, though, I guess...) -- nosy: +scoder versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue21147] sqlite3 doesn't complain if the request contains a null character

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a comment on Rietveld. -- components: +Extension Modules nosy: +serhiy.storchaka stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue22220] Ttk extensions test failure

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as all builds since #415 are successful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue0 ___ ___

[issue22340] Fix Python 3 warnings in Python 2 tests

2014-09-05 Thread STINNER Victor
New submission from STINNER Victor: Running Python 2 test suite with python -3 -Wd displays a lot of DeprecationWarning warnings. Just one example: /home/haypo/prog/python/2.7/Lib/test/test_ssl.py:2368: DeprecationWarning: urllib.urlopen() has been removed in Python 3.0 in favor of

[issue22341] Python 3 crc32 documentation clarifications

2014-09-05 Thread Martin Panter
New submission from Martin Panter: This is regarding the Python 3 documentation for binascii.crc32(), https://docs.python.org/dev/library/binascii.html#binascii.crc32. It repeatedly recommends correcting the sign by doing crc32() 0x, but it is not immediately clear why. Only after

[issue21866] zipfile.ZipFile.close() doesn't respect allowZip64

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Benjamin for explanation. Here is a patch which adds all three required checks in the close() method and adds a check for files count in write methods. Implementing other checks in write methods is too laborious. As far as test_zipfile64 is

[issue22340] Fix Python 3 warnings in Python 2 tests

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why test_support.check_py3k_warnings is not used in test_calltips.py? Or may be change the test to 1+0, 1//0 or 1.0/0.0? -- nosy: +serhiy.storchaka, terry.reedy ___ Python tracker rep...@bugs.python.org

[issue13968] Support recursive globs

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you make a review Nick? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13968 ___ ___ Python-bugs-list

[issue22187] commands.mkarg() buggy in East Asian locales

2014-09-05 Thread mirabilos
mirabilos added the comment: Just for the record, please do not assume all shells behave like GNU bash. -- nosy: +mirabilos ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22187 ___

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-05 Thread Jonas Wagner
Jonas Wagner added the comment: With this patch, and on Ubuntu 14.04, occasionally modules fail to build with the following error: *** WARNING: renaming _testbuffer since importing it failed: dlopen: cannot load any more object with static TLS I'm not 100% sure if this is really due to the

[issue22342] Fix typo in PEP 380 -- Syntax for Delegating to a Subgenerator

2014-09-05 Thread Gael Robin
New submission from Gael Robin: The first line of the Refactoring Principle subsection of the Rationale section contains the following typo : It should be possible to take an section of code should be It should be possible to take a section of code -- assignee: docs@python

[issue22187] commands.mkarg() buggy in East Asian locales

2014-09-05 Thread R. David Murray
R. David Murray added the comment: That is true, but sh-alikes (posix standard) are the only ones we support in commands. subprocess (which commands was folded in to in python3) also supports windows cmd to the extent we've managed, but that's all we are committed to support. --

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread Steve Dower
Steve Dower added the comment: Antoine almost certainly thought about this with pathlib and may know about the change, or at least have some decent context on it. I'm more inclined to think that os.path.isabs(r\\server) should also return False, since it's not a path that can be opened

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-09-05 Thread Steve Dower
Steve Dower added the comment: Patch attached. (Kinda feel like this was too simple...) -- keywords: +patch Added file: http://bugs.python.org/file36549/22299_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22299

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Under Windows, pathlib's absolute means a fully qualified path as defined in http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx PureWindowsPath(c:).is_absolute() False PureWindowsPath(/).is_absolute() False PureWindowsPath(c:/).is_absolute()

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread Steve Dower
Steve Dower added the comment: My experience says the main reason people want to know whether the path is absolute is to figure out whether to do `Path.cwd() / path` or not. According to that MSDN page, they shouldn't because the path starts with // (that is, the last character and the

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-09-05 Thread eryksun
eryksun added the comment: It should only skip _ext_to_normal for an already extended path, i.e. a path that starts with ext_namespace_prefix. Otherwise it needs to call _ext_to_normal. For example: Strip the prefix in this case: os.path._getfinalpathname('C:\\Windows')

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread Steve Dower
Steve Dower added the comment: Just did a double-take, but that output for Path('server\\').parts[0] is actually correct... Path('server\\').parts[0] 'server' print(Path('server\\').parts[0]) \\server\\ -- ___ Python tracker

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-09-05 Thread Steve Dower
Steve Dower added the comment: Ah, thought it was too simple. I didn't realise that _getfinalpathname adds the prefix. New patch soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22299

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that rather handling of //server/ is buggy than //server. //server is just the same as /server or ///server. But //server/ looks as an UNC path with empty () mount point. This is invalid path and we can't create valid path from this path by

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-09-05 Thread Steve Dower
Steve Dower added the comment: Strips the prefix if it wasn't in the original path - otherwise, keeps it. -- Added file: http://bugs.python.org/file36550/22299_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22299

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread eryksun
eryksun added the comment: Isn't this bug about the root of a share case with ntpath.isabs in 3.x and 2.7 (splitdrive was backported)? For example: os.path.isabs(//server/share) False os.path.splitdrive('//server/share') ('//server/share', '') vs.

[issue22340] Fix Python 3 warnings in Python 2 tests

2014-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please just change '1/0' to '1//0'. Any expression that raises something other than NameError or AttributeError will do. .get_entity evals user code and Idle previously crashed when other exceptions were not caught. Thanks, Serhiy, for catching this. The

[issue4945] json checks True/False by identity, not boolean value

2014-09-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945 ___ ___

[issue900092] hotshot.stats.load fails with AssertionError

2014-09-05 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue900092 ___

[issue22340] Fix Python 3 warnings in Python 2 tests

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The rest of the patch LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22340 ___ ___ Python-bugs-list

[issue17651] Errno checking replaced by concrete classes inherited from OSError

2014-09-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17651 ___

[issue22187] commands.mkarg() buggy in East Asian locales

2014-09-05 Thread Jakub Wilk
Jakub Wilk added the comment: I think what mirabilos meant (and what I should have mentioned in my initial message) is that even sh-alikes don't necessarily behave the same way as bash: $ bash test.sh 乗 $ ksh test.sh 乗 $ dash test.sh test.sh: 2: test.sh: Syntax error: Unterminated quoted

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy, you may be right. I'd suggest opening a python-dev discussion to gather more feedback. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22302 ___

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-09-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: As far as I can say, the patch looks fine to me. Thanks, Steve. -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22299 ___

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread eryksun
eryksun added the comment: //server is just the same as /server or ///server. Repeated slashes aren't collapsed at the start of a Windows path. Here's what I get in Windows 7: os.listdir('/server') [] os.listdir('//server') Traceback (most recent call last): File

[issue22340] Fix Python 3 warnings in Python 2 tests

2014-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0675b3a55941 by Victor Stinner in branch '2.7': Issue #22340: Fix Python 3 warnings in Python 2 tests http://hg.python.org/cpython/rev/0675b3a55941 -- nosy: +python-dev ___ Python tracker

[issue8840] truncate() semantics changed in 3.1.2

2014-09-05 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed or what? -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8840 ___

[issue22340] Fix Python 3 warnings in Python 2 tests

2014-09-05 Thread STINNER Victor
STINNER Victor added the comment: Ok, I replaced 1/0 with 1//0 in IDLE tests. I also changed the context manager in test_collections, the sets module is just deprecated, it's not a Python 3 specific warning. Thanks for the review Serhiy. -- resolution: - fixed status: open - closed

[issue15934] flaky test in test_ftplib

2014-09-05 Thread Mark Lawrence
Mark Lawrence added the comment: Surely a test issue can be closed after two years? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15934 ___ ___

[issue22226] Refactor dict result handling in Tkinter

2014-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I made two style comments, one an expansion of a previous comment. I believe all other previous comments were handled ok. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6

[issue22340] Fix Python 3 warnings in Python 2 tests

2014-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 407653078135 by Victor Stinner in branch '2.7': Issue #22340: Fix test_collections if the sets module was already imported http://hg.python.org/cpython/rev/407653078135 -- ___ Python tracker

[issue896330] pyconfig.h is not placed in --includedir

2014-09-05 Thread Lauri Tirkkonen
Lauri Tirkkonen added the comment: Patch attached to set CONFINCLUDEDIR to --includedir. There's additionally some hardcoded assumptions in sysconfig and distutils.sysconfig about the include paths, of which this patch fixes some. What it doesn't address is sysconfig.get_path with 'include'

[issue22192] dict_values objects are hashable

2014-09-05 Thread Ben Roberts
Ben Roberts added the comment: Going to close this down - implementing rich comparisons for values() does feel like the correct solution... but I don't think it's possible to implement __eq__ in better than nlogn time (and possibly space). So nothing can realistically be done, yeah.

[issue8840] truncate() semantics changed in 3.1.2

2014-09-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docstring is unchanged from before the behavior change and to me still has problems a. to d. listed in msg106698. The manual entry seems too longs to just copy, but I would not know know to condense it. -- ___

[issue22343] Install bash activate script on Windows when using venv

2014-09-05 Thread Kevin Christopher Henry
New submission from Kevin Christopher Henry: When I use venv to create a new virtual environment in Windows I'm given two activate scripts, a .bat file and a .ps1 file (which is consistent with the documentation). However, bash (and probably the other shells as well) works just fine in

[issue22342] Fix typo in PEP 380 -- Syntax for Delegating to a Subgenerator

2014-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4b03ae00a76b by Benjamin Peterson in branch 'default': use correct article (closes #22342) http://hg.python.org/peps/rev/4b03ae00a76b -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed

[issue20643] Strange dot in documentation (after generator.close)

2014-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc4e26755a13 by Serhiy Storchaka in branch '3.4': Issue #20643: Removed unneeded (and wrong) class directives. http://hg.python.org/cpython/rev/bc4e26755a13 New changeset 060e347c9a23 by Serhiy Storchaka in branch 'default': Issue #20643: Removed

[issue22302] Windows os.path.isabs UNC path bug

2014-09-05 Thread Akima
Akima added the comment: As eryksun pointed out, I created this bug report to report on one issue; that \\server\share isn't being consider absolute by os.path.isabs when it should be considered absolute. I found this bug when I was writing a basic config file parsing module. One of the

[issue20643] Strange dot in documentation (after generator.close)

2014-09-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: docs@python - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue22344] Reorganize unittest.mock docs into linear manner

2014-09-05 Thread py.user
New submission from py.user: Now, it's very inconvenient to learn this documentation. It's not compact (could be reduced in 2 or even 3 times). It repeats itself: many examples copy-pasted unchangeably. And it cites to terms that placed under those cites, so people should start at the bottom

[issue22345] https://docs.python.org/release/1.4/ returns 403

2014-09-05 Thread Zbyszek Jędrzejewski-Szmek
New submission from Zbyszek Jędrzejewski-Szmek: This is the last link on https://www.python.org/doc/versions/. -- assignee: docs@python components: Documentation messages: 226457 nosy: docs@python, zbysz priority: normal severity: normal status: open title:

[issue22345] https://docs.python.org/release/1.4/ returns 403

2014-09-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- assignee: docs@python - benjamin.peterson nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22345 ___

[issue22345] https://docs.python.org/release/1.4/ returns 403

2014-09-05 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22345 ___

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-09-05 Thread Kevin Norris
Kevin Norris added the comment: I'm a little concerned about this fix. In particular, if I understand the design of the patch correctly, it is intended to produce this behavior: Path('C:/foo').resolve() != Path('//?/C:/foo').resolve() Since both paths are valid and both paths refer to

[issue22344] Reorganize unittest.mock docs into linear manner

2014-09-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +michael.foord versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22344 ___ ___

[issue13968] Support recursive globs

2014-09-05 Thread Nick Coghlan
Nick Coghlan added the comment: Mostly looks good to me, just two comments: 1. Is there a reason the helper function is glob2 rather than either _glob2 or else something more self-documenting? 2. match a files in the docs and docstrings doesn't read correctly. match any files, perhaps?

[issue22339] Incorrect behavior when subclassing enum.Enum

2014-09-05 Thread Ethan Furman
Ethan Furman added the comment: My apologies for the confusion, and thanks for tracking it down. I'll get the patch in, but I'm curious how you actually use these Enums? Is this a way to easily handle multiple aliases? -- ___ Python tracker

[issue900092] hotshot.stats.load fails with AssertionError

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

[issue19280] Add a datatype to represent mime types to the email module

2014-09-05 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19280 ___ ___ Python-bugs-list

[issue22339] Incorrect behavior when subclassing enum.Enum

2014-09-05 Thread Kiss György
Kiss György added the comment: Is this a way to easily handle multiple aliases? You mean this MultiValueEnum implementation? (If not I don't understand the question, could you elaborate?) No, this is the opposite of aliases, because an alias is when the same value have multiple names, but

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-09-05 Thread eryksun
eryksun added the comment: Maybe for an extended path it could try _getfinalpathname without the prefix. If it isn't a valid path or the result isn't the same as _getfinalpathname including the prefix, then skip calling _ext_to_normal. For example: def resolve(self, path): s =

[issue22346] asyncio documentation does not mention provisional status

2014-09-05 Thread Thomas Kluyver
New submission from Thomas Kluyver: From PEP 411: A package will be marked provisional by a notice in its documentation page and its docstring. The following paragraph will be added as a note at the top of the documentation page: The X package has been included in the standard library

[issue22346] asyncio documentation does not mention provisional status

2014-09-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset f8f3e83c9528 by Guido van Rossum in branch 'default': Add PEP-411-compliant note about asyncio being provisional. Fixes issue #22346. http://hg.python.org/cpython/rev/f8f3e83c9528 -- nosy: +python-dev

[issue22346] asyncio documentation does not mention provisional status

2014-09-05 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22346 ___

[issue22343] Install bash activate script on Windows when using venv

2014-09-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +ncoghlan, vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22343 ___ ___ Python-bugs-list

[issue1043134] Add preferred extensions for MIME types

2014-09-05 Thread Martin Panter
Martin Panter added the comment: See also https://bugs.python.org/issue6626#msg91205, which mentions using a list of tuples instead of a dictionary, which sounds like it might help with this issue. Doing it that way you might be able avoid some duplication in the lists. -- nosy:

[issue22347] mimetypes.guess_type(//example.com) misinterprets host name as file name

2014-09-05 Thread Martin Panter
New submission from Martin Panter: The documentation says that guess_type() takes a URL, but: mimetypes.guess_type(http://example.com;) ('application/x-msdownload', None) I suspect the MS download is a reference to *.com files (like DOS's command.com). My current workaround is to strip out

[issue22339] Incorrect behavior when subclassing enum.Enum

2014-09-05 Thread Ethan Furman
Ethan Furman added the comment: Right. We can still use the alias machinery to accomplish this task for us, and avoid the metaclass hacking: -- python2 sample code # -*- coding: utf-8 -*- from enum import Enum class MultiValueEnum(Enum): def

[issue11588] Add necessarily inclusive groups to argparse

2014-09-05 Thread paul j3
paul j3 added the comment: Attached is a patch for 3.5.0 dev that adds UsageGroups. Now different 'kinds' are implemented as subclasses, which are accessed via the registry: _XorUsageGroup - replicate action of MutuallyExclusiveGroups _AndUsageGroup - an inclusive group

[issue22339] Incorrect behavior when subclassing enum.Enum

2014-09-05 Thread Kiss György
Kiss György added the comment: Oh, wow. I never really understood what _find_new_ did, now I do. I'm not sure what you are trying to accomplish there. Exactly that, I'm just not as good. Oh well at least I found a bug! :) Thanks for the enlightenment! If the patch goes in, I also would like

[issue13968] Support recursive globs

2014-09-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Nick. 1. Is there a reason the helper function is glob2 rather than either _glob2 or else something more self-documenting? Only consistency with other helper functions (glob0, glob1). 2. match a files in the docs and docstrings doesn't read

[issue13968] Support recursive globs

2014-09-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file36555/glob_recursive_6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13968 ___