Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reload(sys)
- From: rainwatching at gmail.com (Sönmez Kartal)
- Subject: reload(sys)
- Date: Fri, 31 Aug 2007 00:45:43 -0000
Hello,
I've had an encoding issue and solved it by
"sys.setdefaultencoding('utf-8')"...
My first try wasn't successful since setdefaultencoding is not named
when I imported sys module. After, I import sys module, I needed to
write "reload(sys)" also.
I wonder why we need to call "reload(sys)" to get setdefaultencoding
named?
Happy coding
- Follow-Ups:
- reload(sys)
- From: Steven Bethard
- reload(sys)
- Prev by Date: status of Programming by Contract (PEP 316)?
- Next by Date: Python doesn't see the directories I create
- Previous by thread: Automation and scheduling of front page publishing using python
- Next by thread: reload(sys)
- Index(es):