[Python-bugs-list] [ python-Bugs-419201 ] sys.setdefaultencoding() missing

noreply@sourceforge.net noreply@sourceforge.net
Thu, 26 Apr 2001 15:06:36 -0700


Bugs item #419201, was updated on 2001-04-26 10:32
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=419201&group_id=5470

Category: Unicode
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andreas Jung (ajung)
Assigned to: Nobody/Anonymous (nobody)
Summary: sys.setdefaultencoding() missing 

Initial Comment:
yetix@/usr/home/ajung/new/Python-2.1/Python(253)% python2.1
Python 2.1 (#1, Apr 24 2001, 19:56:49)
[GCC 2.95.3 20010315 (release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.setdefaultencoding('iso-8859-1')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'sys' module has no attribute 'setdefaultencoding'

Where has it gone ?

Andreas

----------------------------------------------------------------------

>Comment By: Fredrik Lundh (effbot)
Date: 2001-04-26 15:06

Message:
Logged In: YES 
user_id=38376

the default encoding is an experimental feature that can
only be changed during startup (from within the site.py
module)

see the site.py file for more info.

and remember that this function may go away completely
in a future version.  don't rely on it.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=419201&group_id=5470