Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Python3UnicodeDecodeError (Was: Proposed Python 3.0 schedule)

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


martin at v

Oct 7, 2008, 1:06 PM

Post #1 of 4 (159 views)
Permalink
Python3UnicodeDecodeError (Was: Proposed Python 3.0 schedule)

> First of all, please read my document:
> http://wiki.python.org/moin/Python3UnicodeDecodeError

I have problems understanding that document. Is it supposed to
be a PEP (i.e. a proposal to enhance Python), or is it a description
of the status quo?

If it is a PEP, it should clearly separate status quo, specification,
and rationale (in any order that you find reasonable). It should also
have an "open issues" section, explicitly listing the questions that
haven't been resolved, and it should record objections to the proposal.

I think I would object to the specification (perhaps to the degree
of proposing a counter-PEP), but to do so, I first need a specification
to object to.

In terms of time-line, I think any such PEP is *clearly* out of scope
for Python 3.0. All the remaining issues should deferred to 3.1.

That the approach "we can use bytes in the file system API" was so
rushed into the code base is already unfortunate, but I can understand
the motivation - people want to write backup programs in Python.

If I take the text as if it was a specification, here are some of my
objections:

- Default encoding:
a) seems irrelevant for the PEP. The default encoding doesn't nearly
have the role anymore that it had in 2.x, and shouldn't have any
effect on how file names are treated.
b) I would propose that the notion of a default encoding is entirely
eliminated from Python, along with sys.(get|set)defaultencoding
- argv and environ: are you suggesting that the behavior described
in the PEP is desirable? I don't think it is (but I don't think it
should change for 3.0, either, only for 3.1)

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev[at]python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


fdrake at acm

Oct 7, 2008, 1:18 PM

Post #2 of 4 (152 views)
Permalink
Re: Python3UnicodeDecodeError [In reply to]

On Oct 7, 2008, at 4:06 PM, Martin v. Löwis wrote:
> b) I would propose that the notion of a default encoding is entirely
> eliminated from Python, along with sys.(get|set)defaultencoding

+1


-Fred

--
Fred Drake <fdrake at acm.org>

_______________________________________________
Python-Dev mailing list
Python-Dev[at]python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


guido at python

Oct 7, 2008, 1:29 PM

Post #3 of 4 (150 views)
Permalink
Re: [Python-3000] Python3UnicodeDecodeError [In reply to]

On Tue, Oct 7, 2008 at 1:18 PM, Fred Drake <fdrake[at]acm.org> wrote:
> On Oct 7, 2008, at 4:06 PM, Martin v. Löwis wrote:
>>
>> b) I would propose that the notion of a default encoding is entirely
>> eliminated from Python, along with sys.(get|set)defaultencoding
>
> +1

I expect that the only effect of this change would be that the
filesystem encoding would become the de-facto default encoding for
other contexts as well.

Not that that is necessarily a bad thing...

--
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-Dev mailing list
Python-Dev[at]python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com


mal at egenix

Oct 7, 2008, 1:52 PM

Post #4 of 4 (150 views)
Permalink
Re: Python3UnicodeDecodeError [In reply to]

On 2008-10-07 22:18, Fred Drake wrote:
> On Oct 7, 2008, at 4:06 PM, Martin v. Löwis wrote:
>> b) I would propose that the notion of a default encoding is entirely
>> eliminated from Python, along with sys.(get|set)defaultencoding
>
> +1

As already mentioned in my reply to Viktor: +1. It's not adjustable
anymore, so we might as well get rid off the sys module APIs.

The term "default encoding" itself still has some value in that it
is associated with the C API char* encoding used for PyUnicode
objects in Python 3.0.

--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source (#1, Oct 07 2008)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::


eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
_______________________________________________
Python-Dev mailing list
Python-Dev[at]python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.