setdefaultencoding error

Discussion in 'Python' started by smalltalk, Dec 8, 2007.

  1. smalltalk

    smalltalk Guest

    import sysTraceback (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?
    smalltalk, Dec 8, 2007
    1. Advertisements

  2. smalltalk

    John Machin Guest

    You need to do more than find an attribute in a manual, you need to
    read what the manual says about that attribute.
    John Machin, Dec 8, 2007
    1. Advertisements

  3. smalltalk

    smalltalk Guest

    thank you very much
    I have solved
    smalltalk, Dec 10, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.