[issue18877] tkinter askopenfilenames does not work in Windows library folder

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Already applied in issue3015. -- resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed superseder: -> tkinter with wantobjects=False has been broken for some time ___ Python tra

[issue19020] Regression: Windows-tkinter-idle, unicode, and 0xxx filename

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And of cause we can't "sanitize" filenames which contains backslash on Unix. -- ___ Python tracker ___ ___

[issue19020] Regression: Windows-tkinter-idle, unicode, and 0xxx filename

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sanitizing backslashes will not help when file names (or other returned strings, see msg202496) contains spaces or curly braces. -- ___ Python tracker __

[issue19902] logging docs don't document integer constants

2013-12-18 Thread follower
follower added the comment: Thanks for pointing out that link. It's good to know the information is documented somewhere. However, given that is described as "the API reference" and seems to be the canonical logging library reference (rather tha

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
Daniël van Eeden added the comment: Without the patch: Traceback (most recent call last): File "./test.py", line 10, in s.select('INBOX') File "/usr/lib/python2.7/imaplib.py", line 649, in select typ, dat = self._simple_command(name, mailbox) File "/usr/lib/python2.7/imaplib.py", l

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-18 Thread Eric Snow
Eric Snow added the comment: Here's an updated patch that does most of the deprecations and adjustments/silencings to accommodate the deprecations. The main things left to adjust are many importlib tests and pkgutil/test_pkgutil. I'm still on the fence about deprecation warnings for module_re

[issue19713] Deprecate various things in importlib thanks to PEP 451

2013-12-18 Thread Eric Snow
Changes by Eric Snow : Removed file: http://bugs.python.org/file33172/issue19713-deprecation-warnings.diff ___ Python tracker ___ ___ Python-

[issue19710] Make sure documentation for PEP 451 is finished

2013-12-18 Thread Eric Snow
Eric Snow added the comment: If anyone notices any issues with the doc changes, please open a new issue. -- status: pending -> closed ___ Python tracker ___ _

[issue19700] Update runpy for PEP 451

2013-12-18 Thread Eric Snow
Eric Snow added the comment: Thanks for working this out, Nick! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue19959] argparse.FileType does not expand tilde "~"

2013-12-18 Thread paul j3
paul j3 added the comment: Normally the unix shell takes care of this expansion. If I call a simple script that prints sys.argv and runs a simple parser, I get: 2135:~/mypy$ python2.7 filetypetest.py ~/mypy/test.txt ['filetypetest.py', '/home/paul/mypy/test.txt'] Namespace(file=htt

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2013-12-18 Thread Takayuki SHIMIZUKAWA
Takayuki SHIMIZUKAWA added the comment: This issue affects mercurial too. http://bz.selenic.com/show_bug.cgi?id=3624 -- nosy: +shimizukawa ___ Python tracker ___ _

[issue20022] "modernize" the Mac bundlebuilder.py script

2013-12-18 Thread Eric Snow
New submission from Eric Snow: Mac/Tools/bundlebuilder.py uses deprecated imp APIs. It should be refactored to use the current import-related APIs. -- messages: 206578 nosy: eric.snow priority: low severity: normal status: open title: "modernize" the Mac bundlebuilder.py script type: e

[issue20021] "modernize" makeopcodetargets.py

2013-12-18 Thread Eric Snow
New submission from Eric Snow: Python/makeopcodetargets.py uses deprecated imp APIs. It should be refactored to use newer import-related APIs. -- components: Library (Lib) messages: 206577 nosy: eric.snow priority: low severity: normal status: open title: "modernize" makeopcodetargets.

[issue20020] "modernize" the modulefinder module

2013-12-18 Thread Eric Snow
New submission from Eric Snow: The modulefinder module (Lib/modulefinder.py) provides a ModuleFinder class (plus 2 helpers) you can use to see what modules a script imports (directly or indirectly). The module's implementation is centered on the old imp.find_/load_module() API (which has been

[issue19946] Handle a non-importable __main__ in multiprocessing

2013-12-18 Thread Zachary Ware
Zachary Ware added the comment: The problem on Windows at least is that the skips for the 'fork' and 'forkserver' start methods aren't firing due to setUpClass being improperly set up in MultiProcessingCmdLineMixin: it's not decorated as a classmethod and the 'u' is lower-case instead of upper

[issue19920] TarFile.list() fails on some files

2013-12-18 Thread Vajrasky Kok
Vajrasky Kok added the comment: Thanks, Serhiy, for your review. Here is the patch to address your concern. -- Added file: http://bugs.python.org/file33200/fix_tarfile_list_print_lone_surrogate_v2.patch ___ Python tracker

[issue777588] asyncore is broken for windows if connection is refused

2013-12-18 Thread Mark Lawrence
Mark Lawrence added the comment: Is it worth leaving this open given the arrival of the new asyncio module in Python 3.4? -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2013-12-18 Thread Tim Peters
Changes by Tim Peters : -- priority: high -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue8075] Windows (Vista/7) install error when choosing to compile .py files

2013-12-18 Thread Mark Lawrence
Mark Lawrence added the comment: Well can someone at least drop the priority from high? -- ___ Python tracker ___ ___ Python-bugs-list

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok
Vajrasky Kok added the comment: Thanks, Serhiy, for the review! Here is the patch to avoid refleaking and avoid literal u'' string. If your ticket, #20015, is accepted, then we can throw away the fix and use only unit test in this ticket. -- Added file: http://bugs.python.org/file331

[issue19020] Regression: Windows-tkinter-idle, unicode, and 0xxx filename

2013-12-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: What I think: 1. Perhaps I should have noticed that self.tk.call(_flatten((self._w, cmd: has 3 '('s and 4 ')'s and looked at the previous line for the complete expression. 2. Perhaps Python should switch os.sep ('\\') and os.altsep ('/') on Windows

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Wes
Wes added the comment: Marc, Thanks for your help. What I did was just copied the _sys_version_parser from the standard python platform.py into the anaconda version of platform.py and it fixed the issue. So it looks like Anaconda made a change to your regular expression. Thanks for getting on

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 19.12.2013 00:52, Wes wrote: > > Marc, > > Here was the initial output: > platform.__file__ > '/Users/wesmadrigal/anaconda/lib/python2.7/platform.pyc' import sys sys.version > '2.7.6 |Anaconda 1.8.0 (x86_64)| (default, Nov 11 2013, 10:49:

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Wes
Wes added the comment: The shitty part is, you pretty much need anaconda to run iPython notebook on a mac. On Wed, Dec 18, 2013 at 6:08 PM, Wes Madrigal wrote: > I just commented out the _sys_version_parser regular expression in > anaconda/lib/python2.7/platform.py on line 1363 and replaced it

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Wes
Wes added the comment: I just commented out the _sys_version_parser regular expression in anaconda/lib/python2.7/platform.py on line 1363 and replaced it with the _sys_version_parser from /usr/lib/python2.7/platform.py and everything worked fine. On Wed, Dec 18, 2013 at 5:53 PM, Ned Deily wrote

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Ned Deily
Ned Deily added the comment: The version string does not match either the Apple-supplied Python in 10.8 (Mountain Lion) nor that of a python.org Python. The "anaconda" directory name suggests this is probably a Python from the Anaconda Scientific distribution. There have been other issues wi

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Wes
Wes added the comment: Marc, Here was the initial output: >>> platform.__file__ '/Users/wesmadrigal/anaconda/lib/python2.7/platform.pyc' >>> import sys >>> sys.version '2.7.6 |Anaconda 1.8.0 (x86_64)| (default, Nov 11 2013, 10:49:09) \n[GCC 4.0.1 (Apple Inc. build 5493)]' Here is what I had wh

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 19.12.2013 00:39, Wes wrote: > > Marc > > Thanks for getting back to me so quickly on this. I'm running an apple > version of python from the looks of it. I was running an Anaconda version > at the time I posted this script, but I just reset my $PATH v

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Wes
Wes added the comment: Marc Thanks for getting back to me so quickly on this. I'm running an apple version of python from the looks of it. I was running an Anaconda version at the time I posted this script, but I just reset my $PATH variable to use the mac factory python and still got the erro

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I have tried this with a stock Python 2.7.6 version and don't get an error: >>> platform._sys_version('2.7.5 (default, Sep 12 2013, 21:33:34) \n[GCC 4.2.1 >>> Compatible Apple LLVM 5.0 (clang-500.0.68)]') ('CPython', '2.7.5', '', '', 'default', 'Sep 12 2013

[issue20019] platform.py line _sys_version function

2013-12-18 Thread Wes
New submission from Wes: Marc-Andre, I'm on a Macbook pro OSX Mountain Lion I've been automating virtual environment builds locally and remotely, but it seems that when my "pip install -r requirements.txt" tries to run and download.py in pip/ runs it invokes "platform.py". I'm getting a user-

[issue19946] Handle a non-importable __main__ in multiprocessing

2013-12-18 Thread Christian Heimes
Christian Heimes added the comment: The commit broken a couple of buildbots like all Windows bots and OpenIndiana. -- nosy: +christian.heimes resolution: fixed -> status: closed -> open ___ Python tracker

[issue5815] locale.getdefaultlocale() missing corner case

2013-12-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 18.12.2013 22:57, Serhiy Storchaka wrote: > > Marc-Andre, do you have comments or objections? Your last patch looks fine, but I don't have time to test it. Regarding the broken *devanagari* entries in the alias table: I think we should remove or correct

[issue2175] Expat sax parser silently ignores the InputSource protocol

2013-12-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +christian.heimes versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19380] Optimize parsing of regular expressions

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could someone please make a review? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue19020] Regression: Windows-tkinter-idle, unicode, and 0xxx filename

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is your opinion, Terry? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue5815] locale.getdefaultlocale() missing corner case

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Marc-Andre, do you have comments or objections? -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue18879] tempfile.NamedTemporaryFile can close the file too early, if not assigning to a variable

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately last patch causes resource leak on 3.3+. $ ./python -Wall -m test.regrtest test_tempfile [1/1] test_tempfile 1 test OK. sys:1: ResourceWarning: gc: 5 uncollectable objects at shutdown; use gc.set_debug(gc.DEBUG_UNCOLLECTABLE) to list them -

[issue20018] Replace dead URL with link to mirror

2013-12-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 656a40666937 by Benjamin Peterson in branch '3.3': update url to spec (closes #20018) http://hg.python.org/cpython/rev/656a40666937 New changeset c0dc1400866a by Benjamin Peterson in branch '2.7': update url to spec (closes #20018) http://hg.python.

[issue19902] logging docs don't document integer constants

2013-12-18 Thread Vinay Sajip
Vinay Sajip added the comment: The levels are documented here: http://docs.python.org/howto/logging.html#logging-levels -- nosy: +vinay.sajip resolution: -> invalid status: open -> pending ___ Python tracker

[issue19996] httplib infinite read on invalid header

2013-12-18 Thread Cory Benfield
Cory Benfield added the comment: Ok, here's a patch for 2.7 as well. I decided to allow the empty header names in rfc822.py as well, if only because I wanted the changed parsing code to match. If anyone thinks that's an excessive change, I'll happily remove it. -- Added file: http://b

[issue20018] Replace dead URL with link to mirror

2013-12-18 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Added patch file for Python 3.3 -- Added file: http://bugs.python.org/file33197/cookiejar.diff ___ Python tracker ___ _

[issue20018] Replace dead URL with link to mirror

2013-12-18 Thread Jeroen Van Goey
New submission from Jeroen Van Goey: The header of a cookie file generated by _MozillaCookieJar.py contains a link to the spec: http://www.netscape.com/newsref/std/cookie_spec.html This URL no longer exists (redirects to the AOL homepage). Attached patch replaces the link with a mirror where t

[issue20005] Minor typo in operator documentation

2013-12-18 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report and patch! -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list maili

[issue20005] Minor typo in operator documentation

2013-12-18 Thread Roundup Robot
New submission from Roundup Robot: New changeset f0eed36bab4c by Zachary Ware in branch '2.7': Issue #20005: Fix typo in operator docs. Patch by Claudiu Popa. http://hg.python.org/cpython/rev/f0eed36bab4c New changeset 17244b5df8b6 by Zachary Ware in branch '3.3': Issue #20005: Fix typo in oper

[issue20008] Clean up/refactor/make discoverable test_decimal

2013-12-18 Thread Zachary Ware
Zachary Ware added the comment: Stefan Krah wrote: > In any case, I would prefer a patch without stylistic changes. > Elimination of "return" is a personal preference, so are the > whitespace changes. The returns were removed in #19572, to reduce false positives in searching for silently skippe

[issue20016] make site.py Quitter call itself on repr

2013-12-18 Thread Éric Araujo
Éric Araujo added the comment: Sorry, it is a deliberate choice to not have reprs have side-effects, espercially as important as quitting the interpreter. The repr of quit/exit is used in places such as pydoc help; it would be bad to quit when the user wants to see documentation, for example.

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I don't like the heuristic of "ASCII only" characters. Accepting that may > lead to bugs if later you pass a non-ASCII character. What behavior you propose for non-ASCII values? > And is it not too late to change that in Python 2.7? Version released 3 > yea

[issue20011] Changing the signature for Parameter's constructor

2013-12-18 Thread Antony Lee
Antony Lee added the comment: Nobody replied so far... https://mail.python.org/pipermail/python-ideas/2013-December/024538.html -- ___ Python tracker ___

[issue19997] imghdr.what doesn't accept bytes paths

2013-12-18 Thread Claudiu.Popa
Claudiu.Popa added the comment: Added the new version. > (You may use a valid sound file of the Python suite test instead of > generating an invalid sounf file.) Oh, that's sndhdr, currently imghdr doesn't have valid image files in the Python suite test (there is another issue for adding a te

[issue20016] make site.py Quitter call itself on repr

2013-12-18 Thread Ramchandra Apte
Ramchandra Apte added the comment: -1 that would be weird behavior; typing a function name shouldn't run it. Python on the command line is still Python. -- nosy: +Ramchandra Apte ___ Python tracker ___

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2013-12-18 Thread STINNER Victor
STINNER Victor added the comment: Issue #20017 has been marked as a duplicate of this issue. Copy of the message: Running Windows 8 (64-bit) and Python 2.7.6 (64-bit). > python -m SimpleHTTPServer Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_

[issue20017] SimpleHTTPServer: UnicodeDecodeError on Windows 8 (64-bit)

2013-12-18 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of #9291. -- resolution: -> fixed status: open -> closed superseder: -> mimetypes initialization fails on Windows because of non-Latin characters in registry ___ Python tracker

[issue20017] SimpleHTTPServer: UnicodeDecodeError on Windows 8 (64-bit)

2013-12-18 Thread Hugo.Lol
New submission from Hugo.Lol: Running Windows 8 (64-bit) and Python 2.7.6 (64-bit). > python -m SimpleHTTPServer Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\Python27\lib\runpy.py", line

[issue13566] Array objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

2013-12-18 Thread STINNER Victor
STINNER Victor added the comment: > If you pickle an array object on python 3 the typecode is encoded as a > unicode string rather than as a byte string. This makes python 2 reject the > pickle. Pickles files of Python 3 are supposed to be compatible with Python 2? It looks very tricky to pr

[issue20016] make site.py Quitter call itself on repr

2013-12-18 Thread Derek Wilson
New submission from Derek Wilson: calling exit() or quit() is actually very cumbersome especially as most other commandline tools that have a command interface allow you to exit or quit by typing exit or quit and not by calling a function. if quitter's builtins are only available in the intera

[issue20012] Re: Allow Path.relative_to() to accept non-ancestor paths

2013-12-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's by design. If /etc is a symlink to e.g. /mnt/etc, the proposed result is wrong. -- ___ Python tracker ___ __

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2013-12-18 Thread Stefan Krah
Stefan Krah added the comment: I guess it makes porting to Python 3 easier, but can we do this in a stable release? -- nosy: +benjamin.peterson, skrah ___ Python tracker ___

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue20015 for more general and simple solution. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2013-12-18 Thread STINNER Victor
STINNER Victor added the comment: I don't like the heuristic of "ASCII only" characters. Accepting that may lead to bugs if later you pass a non-ASCII character. And is it not too late to change that in Python 2.7? Version released 3 years ago and widely used in production. -- nosy: +

[issue13566] Array objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue20015 for more general approach. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Py

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2013-12-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In most cases when str object required, unicode object is allowed too. "s" and "z" codes (with modifiers) in PyArg_Parse*() accept both str and unicode instances. But "c" code accepts only 1-character str, not unicode. This makes harder writing version-agn

[issue8220] site.py's Quitter pollutes builtins with exit and quit for non-interactive use

2013-12-18 Thread Brett Cannon
Brett Cannon added the comment: I still don't think it's worth the potential breakage to remove these from the built-in namespace; there is enough code in Python 3 to not warrant breaking them, nor making any porting harder for those still on Python 2. You can ask on python-dev, though, to see

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2013-12-18 Thread Tim Golden
Tim Golden added the comment: I'll try to look at this soonish. Thanks for bringing it back to the surface. -- ___ Python tracker ___ _

[issue8220] site.py's Quitter pollutes builtins with exit and quit for non-interactive use

2013-12-18 Thread Derek Wilson
Derek Wilson added the comment: could this be reconsidered for 3.5+? most of the legacy code that you were worried about breaking would not port without tonnes of work anyway. it would also be nice to modify quitter's repr actually exit (so you don't get that ridiculously annoying "Use exit()

[issue19997] imghdr.what doesn't accept bytes paths

2013-12-18 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hi, Victor! The second patch does use os.fsencode. I'll update the first one with this change. -- ___ Python tracker ___

[issue19997] imghdr.what doesn't accept bytes paths

2013-12-18 Thread STINNER Victor
STINNER Victor added the comment: imghdr_bytes.patch should use os.fsencode() to encode the filename, not filename.encode(). (You may use a valid sound file of the Python suite test instead of generating an invalid sounf file.) imghdr_files.patch looks overkill. I don't think that it's useful

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread R. David Murray
R. David Murray added the comment: Ah, I see. The BYE isn't issued until the next command is successfully transmitted. I'd call that a broken server, but obviously it's what you have to deal with, so we should handle it. Try this version. -- Added file: http://bugs.python.org/file33

[issue19492] Report skipped distutils tests as skipped

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Arfrever, Zachary and Éric for reviews. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue19492] Report skipped distutils tests as skipped

2013-12-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset b3f3e6afe966 by Serhiy Storchaka in branch '3.3': Issue #19492: Silently skipped distutils tests now reported as skipped. http://hg.python.org/cpython/rev/b3f3e6afe966 New changeset da3472687566 by Serhiy Storchaka in branch 'default': Issue #19492:

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
Daniël van Eeden added the comment: The patch doesn't seem to change the behaviour. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread R. David Murray
R. David Murray added the comment: Please try the attached patch and let me know if it improves things. If it works, figuring out how to write a test for this is going to be the hard part. The imaplib tests don't have very good coverage, even in python3 where there are at least more of them.

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2013-12-18 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2013-12-18 Thread Julian Gindi
Julian Gindi added the comment: Maciej, cool! I just wanted to move this patch forward because A) it seemed inactive and B) I would love to see this feature make it in :) I guess that means there is nothing that I need to do. Looking forward to this one, good work! -- ___

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
Daniël van Eeden added the comment: I've replace the user and password in both the test script and the log. -- Added file: http://bugs.python.org/file33190/imaplib_issue20013_san.log ___ Python tracker

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
Changes by Daniël van Eeden : Added file: http://bugs.python.org/file33189/test_san.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If people don't pay attention on explicit warning not to use certain parameters, is the lack of documentation will stop them? -- ___ Python tracker _

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think a patch can be much simpler. Perhaps make "c" to accept 1-character Unicode objects? -- nosy: +serhiy.storchaka ___ Python tracker __

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-12-18 Thread Nick Coghlan
Nick Coghlan added the comment: I was planning to fix pydoc to not show private keyword only arguments. -- ___ Python tracker ___ ___

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-12-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about my comments in msg203841? See http://comments.gmane.org/gmane.comp.python.devel/143943 for example how hard to get rid of private arguments in public functions. -- ___ Python tracker

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread R. David Murray
R. David Murray added the comment: Looks like a bug in the RFC, not including DELETE of current mailbox in the things that cause a transition back to 'authenticated' state. But yes, a clearer error message would be good. The code should be handling this correctly, so something odd is going on

[issue18578] Rename and document test.bytecode_helper as test.support.bytecode_helper

2013-12-18 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20011] Changing the signature for Parameter's constructor

2013-12-18 Thread R. David Murray
R. David Murray added the comment: Can you provide a link to the python-ideas discussion, please? -- nosy: +r.david.murray ___ Python tracker ___

[issue18576] Rename and document test.script_helper as test.support.script_helper

2013-12-18 Thread Nick Coghlan
Nick Coghlan added the comment: The attached patch just moves the file without leaving an alias behind. It turns out we use this one in a fair few places (mostly for "assert_python_ok"). I'm going to sit on this change for the moment - after reading the docs, it's quite clear that the last cou

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2013-12-18 Thread R. David Murray
R. David Murray added the comment: OK, that means the issue 15207 fix didn't fix it, since that's in 2.7.6. -- ___ Python tracker ___ _

[issue7464] circular reference in HTTPResponse by urllib2

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide some tests? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-b

[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2013-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Martin for clarification. Now I see the problem. Here is regenerated for Rietveld patch. Perhaps more safe will be not close socket, but only set the _closed attribute so that it will be closed just after closing SocketIO. if h.sock:

[issue20008] Clean up/refactor/make discoverable test_decimal

2013-12-18 Thread Stefan Krah
Stefan Krah added the comment: Assigning to myself, since my private 100% coverage test suite would have to be updated as well. I have just glanced at the patch and only have some superficial remarks: In any case, I would prefer a patch without stylistic changes. Elimination of "return" is a p

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2013-12-18 Thread Nick Coghlan
Nick Coghlan added the comment: Unassigning this one - I don't think the solution we used for 3.4 is appropriate in a maintenance release, but I'm not sure how else to resolve it. -- assignee: ncoghlan -> priority: critical -> high ___ Python tracke

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok
Changes by Vajrasky Kok : Added file: http://bugs.python.org/file33186/makes_array_accepts_ascii_unicode_typecode_v2.patch ___ Python tracker ___ ___

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok
Changes by Vajrasky Kok : Removed file: http://bugs.python.org/file33185/makes_array_accepts_ascii_unicode_typecode_v2.patch ___ Python tracker ___ _

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch with simpler unittest. -- Added file: http://bugs.python.org/file33185/makes_array_accepts_ascii_unicode_typecode_v2.patch ___ Python tracker _

[issue13566] Array objects pickled in 3.x with protocol <=2 are unpickled incorrectly in 2.x

2013-12-18 Thread Vajrasky Kok
Vajrasky Kok added the comment: Alexandre Vassalotti said: "We should still fix array in 2.7 to accept unicode object for the typecode though." I created issue #20014 (with the patch) for this feature. -- nosy: +vajrasky ___ Python tracker

[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok
New submission from Vajrasky Kok: >>> import array >>> array.array(u'i', [1,2,3]) Traceback (most recent call last): File "", line 1, in TypeError: must be char, not unicode In this ticket #13566, Alexandre Vassalotti said: "We should still fix array in 2.7 to accept unicode object for the ty

[issue7464] circular reference in HTTPResponse by urllib2

2013-12-18 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This is still a horrible, horrible, cludge. I've recently done some work in this area and will suggest a different approach. -- ___ Python tracker __

[issue20013] imaplib behaviour when deleting selected folder

2013-12-18 Thread Daniël van Eeden
New submission from Daniël van Eeden: When executing DELETE against a SELECTED imap folder the server responds: --- a8 SELECT SentMail * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. *