[Python-3000] PEP: Python3 and UnicodeDecodeError

2008-10-02 Thread Victor Stinner
This is a PEP describing the behaviour of Python3 on UnicodeDecodeError. It's a *draft*, don't hesitate to comment it. This document suppose that my patch to allow bytes filenames is accept which is not the case today. While I was writing this document I found poential problems in Python3. So h

Re: [Python-3000] PEP: Python3 and UnicodeDecodeError

2008-10-02 Thread M.-A. Lemburg
On 2008-10-02 13:50, Victor Stinner wrote: > This is a PEP describing the behaviour of Python3 on UnicodeDecodeError. The PEP doesn't appear to address any potential changes. Wouldn't it be better to add such information to the Python3 documentation itself ?! > It's > a *draft*, don't hesitate

Re: [Python-3000] PEP: Python3 and UnicodeDecodeError

2008-10-02 Thread Nick Coghlan
M.-A. Lemburg wrote: > On 2008-10-02 13:50, Victor Stinner wrote: >> This is a PEP describing the behaviour of Python3 on UnicodeDecodeError. > > The PEP doesn't appear to address any potential changes. Wouldn't > it be better to add such information to the Python3 documentation > itself ?! True

Re: [Python-3000] PEP: Python3 and UnicodeDecodeError

2008-10-02 Thread Victor Stinner
Le Thursday 02 October 2008 14:07:50 M.-A. Lemburg, vous avez écrit : > On 2008-10-02 13:50, Victor Stinner wrote: > > This is a PEP (...) > > The PEP doesn't appear to address any potential changes. Wouldn't > it be better to add such information to the Python3 documentation > itself ?! I don't k

[Python-3000] Issues about Python script encoding

2008-10-02 Thread Victor Stinner
Python3 traceback have bugs making debugging harder: [Py3k] line number is wrong after encoding declaration http://bugs.python.org/issue2384 PyTraceBack_Print() doesn't respect # coding: xxx header http://bugs.python.org/issue3975 Both issues has patch + testcase. -- About the coding hea

Re: [Python-3000] PEP: Python3 and UnicodeDecodeError

2008-10-02 Thread Victor Stinner
Le Thursday 02 October 2008 14:31:06, vous avez écrit : > Victor - the Python wiki is also one of the easiest places to work on > early PEP drafts. See > http://wiki.python.org/moin/PythonEnhancementProposals. Ok, I converted the document to the wiki syntax: http://wiki.python.org/moin/Python3Unic

Re: [Python-3000] Issues about Python script encoding

2008-10-02 Thread Martin v. Löwis
> About the coding header, IDLE doesn't read #coding: header. Here is a fix > (use > tokenize.detect_encoding): > http://bugs.python.org/issue4008 Are you really sure about that? It did in the past. Regards, Martin ___ Python-3000 mailing list Python-

Re: [Python-3000] PEP: Python3 and UnicodeDecodeError

2008-10-02 Thread Martin v. Löwis
>> sys.setdefaultencoding() should probably be dropped altogether from >> Python3. > > Isn't that method still there to allow other implementations to be more > permissive about allowing the default encoding to be changed? That never was my understanding - although it's an interesting thought. I

Re: [Python-3000] Issues about Python script encoding

2008-10-02 Thread Victor Stinner
Le Thursday 02 October 2008 22:32:43 Martin v. Löwis, vous avez écrit : > > About the coding header, IDLE doesn't read #coding: header. Here is a fix > > (use tokenize.detect_encoding): > > http://bugs.python.org/issue4008 > > Are you really sure about that? It did in the past. Try IDLE in an ASCI

[Python-3000] Automatic Reply: Sound (Python-3000 Digest, Vol 32, Issue 9)

2008-10-02 Thread James E. Collins III
Silence is one of hardest arguments to refute Have a great day!<><><><>___ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40ma