May 2012
1 post
May 31st
1 note
April 2012
3 posts
3 tags
HTML Parsing
Reference “HOWTO Fetch Internet Resources Using the Urllib Package” - file:///Library/Frameworks/Python.framework/Versions/3.2/Resources/English.lproj/Documentation/howto/urllib2.html?highlight=urlopen “Python and HTML Processing” - http://www.boddie.org.uk/python/HTML.html (version 2.x) Fetching URLs import urllib.request req =...
Apr 16th
3 tags
Changing IDLE default path
/Applications/Python 3.x/IDLE.app/Contents/Resources os.chdir(os.path.expanduser(‘~/Desktop/CWD’)) When this cause IDLE to crash with some idiotic message, this is because some file(s) in the folder you set as the default path, contains “import pickle”. Delete this file!
Apr 11th
2 tags
Python: Module Distribution & Importation
Definition A module - ‘a text file that contains Python code’ Sequences 1. Don’t forget to comment the code: module comment & function comment on the function itself and the argument positions. 2. Create the Folder of <namespace>. Save the function as ‘sth.py’ in the namespace. Create ‘setup.py’ 
Apr 5th