[issue10551] mimetypes read from the registry should not overwrite standard mime mappings

2012-10-09 Thread Ben Hoyt
Ben Hoyt added the comment: This is definitely a real issue, and makes mimetypes.guess_type() useless out of the box on Windows. However, I believe the reason it's broken is that the fix for Issue4969 doesn't actually work, and I'm not sure this is possible with the Windows registry. You see,

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > This issue may be related or a duplicate of #11461. Oh, yes, it is a duplicate. I totally forgot about it and made the work again. > Only incremental decoder should return partial results. Other decoders are > strict and (usually) stateless. Yes, there is

[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: > The main reason for keeping the compatibility is that the module is > also being used outside the stdlib for Python versions starting from > 2.4 and later. I don't want to maintain two separate versions. Which projects use their own copy of platform.py? Where

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: >>> codecs.utf_8_decode('\u20ac'.encode('utf8')[:2]) ('', 0) Oh... codecs.CODEC_decode are incremental decoders? I misunderstood completly this. "The bug is an issue in the design of codecs.Stream* classes: incremental decoders and encoders should be used ins

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Roumen Petrov
Roumen Petrov added the comment: As Victor point configure script already check for endian (macro AC_C_BIGENDIAN) but you should ask python OS X guru to review . Macro is not adjusted to python needs as action for universal build is not defined yet. The default is to define AC_APPLE_UNIVERSAL_

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Hum no. The bug is an issue in the design of codecs.Stream* classes: > incremental decoders and encoders should be used instead of classic > decoders/encoders. I don't understand you. StreamReader and IncrementalDecoder both use the same decoder. class I

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-09 Thread STINNER Victor
STINNER Victor added the comment: > I don't understand you. Read my last message, I was wrong. -- ___ Python tracker ___ ___ Python-b

[issue16177] IDLE Crash on Open Parens

2012-10-09 Thread Roger Serwy
Roger Serwy added the comment: Brian, can you post the files from your .idlerc-disabled directory? The directory contains configuration text files. I want to find out what configuration caused the bug. (You may want to omit the recent-files.lst if you don't want to disclose that.) --

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: If this is going to be available for Windows, I would like to help to integrate too the "Event Completion Framework" of Solaris 10 and up. -- ___ Python tracker _

[issue16175] Add I/O Completion Ports wrapper

2012-10-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Some old documentation: http://web.archive.org/web/20110719052845/http://developers.sun.com/solaris/articles/event_completion.html -- ___ Python tracker _

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Python under Unix uses its own path to determine where the standard library > is, and it does so by inspecting argv[0]. Actually, how is the above able to work if sys.argv[0] is set to "-c" when Python is invoked using the "-c" option (as it is in the test).

[issue15927] csv.reader() does not support escaped newline when quoting=csv.QUOTE_NONE

2012-10-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-10-09 Thread Charles-François Natali
Charles-François Natali added the comment: wget trace: Here a 404 is treated correctly: """ socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5 connect(5, {sa_family=AF_INET, sin_port=htons(4242), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 select(6, NULL, [5], NULL, {900, 0})= 1 (out [5], left {900,

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: Never mind on the above question. Those are different argv's. -- ___ Python tracker ___ ___ Python-

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14313] zipfile should raise an exception for unsupported compression methods

2012-10-09 Thread Stephen McInerney
Stephen McInerney added the comment: The patch is great, can you approve it urgently please? It is seriously buggy to silently return a bad filestream, and not just throw the exception. I just wasted over a day's productivity due to this. I'm not alone. I would argue for raising priority to H

[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-09 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Ned, could you possibly send a Contributor Form Agreement? http://www.python.org/psf/contrib/ -- nosy: +jcea ___ Python tracker ___ __

[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-09 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue16177] IDLE Crash on Open Parens

2012-10-09 Thread Roger Serwy
Roger Serwy added the comment: Thanks for the directory contents. The only difference I see is the "encoding = locale" which could only be set manually since the configuration editor in IDLE does not offer a way of setting it. -- ___ Python tracker

[issue16152] Trailing whitespace makes tokenize.generate_tokens pathological

2012-10-09 Thread Ned Batchelder
Ned Batchelder added the comment: Jesús, done! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12322] ElementPath 1.3 expressions documentation

2012-10-09 Thread Mike Hoy
Mike Hoy added the comment: >> Mike - a note for the future: when you create an updated patch, create it >> anew vs. a clean repo. Don't "compound" patches. No problem, thanks for committing the patch. Wasn't aware that compounding patches caused a problem. -- ___

[issue16115] test the executable arg to Popen() and improve related docs

2012-10-09 Thread Chris Jerdonek
Chris Jerdonek added the comment: I would like to make a few more miscellaneous improvements to the Popen() docs, including a clarification resulting from issue #16170, which stemmed from this issue. The proposed patch is attached. -- resolution: fixed -> stage: committed/rejected ->

[issue16173] Wrong offset on SyntaxError when identifier contains non-ascii characters

2012-10-09 Thread Ezio Melotti
Ezio Melotti added the comment: I was just in a hurry and didn't have time to check if they were indeed the same issue. Looks like they are, so I'm closing this as duplicate. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> [Py3k] Syntax

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2012-10-09 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16160] subclassing types.SimpleNamespace does not work

2012-10-09 Thread Eric Snow
Eric Snow added the comment: Here's a patch that fixes subclass support. It was supposed to work in the first place. Guess I had tunnel vision at the time. The fix is essentially a copy of the code in dict_new() in Objects/dictobject.c. I left out the part about releasing GC if the type is

<    1   2