Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > setdefaultencoding error

Reply
Thread Tools

setdefaultencoding error

 
 
smalltalk
Guest
Posts: n/a
 
      12-08-2007
>>> import sys
>>> sys.setdefaultencoding(utf

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?
 
Reply With Quote
 
 
 
 
John Machin
Guest
Posts: n/a
 
      12-08-2007
On Dec 8, 8:36 pm, smalltalk <(E-Mail Removed)> wrote:
> >>> import sys
> >>> sys.setdefaultencoding(utf

>
> 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.
 
Reply With Quote
 
 
 
 
smalltalk
Guest
Posts: n/a
 
      12-10-2007

thank you very much
I have solved
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is setdefaultencoding bad? moerchendiser2k3 Python 4 02-24-2011 02:24 AM
Why there is no "setdefaultencoding" in sys module? crow Python 5 07-09-2010 09:48 PM
sys.setdefaultencoding Robin Becker Python 1 08-28-2007 05:13 PM
sys.setdefaultencoding(name) Askari Python 5 09-20-2004 12:07 PM
xml processing and sys.setdefaultencoding christof hoeke Python 4 07-21-2003 05:32 AM



Advertisments