-
Notifications
You must be signed in to change notification settings - Fork 53
Note
uxian edited this page Jul 25, 2012
·
11 revisions
I suggest not to use wildcard import, which looks like this
from errors import *
The following method are suggested
import errors
raise errors.SNSError
from errors import SNSError
With wildcard, you will never know you did a circular import Wildcard import VS Named import
and here are some older brother talk Should wildcard import be avoided
It should be no doubt to use UTF-8 to encode file, and end the line in file with LF(linux style) rather than CRLF(Windows style), for better compatibility. issue #3 discussed this problem.
dealing-with-line-endings in Github.
eclipse and windows newlines