Mechanize Installation
There is one thing I like about python, it's that everything comes with a general installation script:
python setup.py install
Unlike Java, you need to mess around with path, classpath, and jar files.
So, to install Mechanize, it's as simple as downloading the archive, and then unpack followed by running the command with sudo.
Editor
For editor, I'm using Eclipse with PyDev plugin.
To install this Plugin, simply go to Help | Install New Software, and then setup new site: http://pydev.org/updates.
Later, just go to Preference and setup this section: "Interpreter - Python".
Reference
For me, code convention is very important. And thus, here is the general convention of Python - PEP 8.
Let me summarize here things that are new to me:
- For indentation use 4 spaces, not tab
- No space before and after = to indicate a keyword argument or default parameter
- For package and module name use lowercase no underscore
- For class name use CamelCase
- For internal class name use CamelCase and one leading underscore
- Exception name should have the suffix "Error"
- Function/method/instance variables names use underscored lowercase
- Non-public method/instance variables names use underscored lowercase and one leading underscore
0 comments: (+add yours?)
Post a Comment