setdefaultencoding error

John Machin sjmachin at lexicon.net
Sat Dec 8 05:10:20 EST 2007


On Dec 8, 8:36 pm, smalltalk <ttkk1... at gmail.com> wrote:
> >>> import sys
> >>> sys.setdefaultencoding(utf8)
>
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in <module>
> AttributeError: 'module' object has no attribute 'setdefaultencoding'
>
> but i find the attribute"setdefaultencoding" in python manuals
>
> where is the error?

You need to do more than find an attribute in a manual, you need to
read what the manual says about that attribute.



More information about the Python-list mailing list