[Zope-Coders] Re: [Zope-dev] Unicode treatment in 2.6b1

Florent Guillaume fg@nuxeo.com
07 Oct 2002 00:25:51 +0200


On Mon, 2002-10-07 at 00:20, Guido van Rossum wrote:
> >  - we check some command line switch (-E foo for instance) and if it is
> >    set then we call sys.setdefaultencoding(foo),
> >  - we import site.py to get original behavior.
> 
> You can't call sys.setdefaultencoding() except in a sitecustomize.py
> module.

I assumed you couldn't call it before it had been deleted from the 'sys'
module by site.py (as it's called in my Debian -- is it sitecustomize.py
in some other places?). So the plan was to start python with -S to make
it not read site.py, and then "import site". You're saying this won't
work?

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com