Skip to content
uxian edited this page Jul 25, 2012 · 11 revisions

Some discoveries, or warnings, disciplines.

1. No wildcard import

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

2. UTF-8 and LF

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

Clone this wiki locally