-
Notifications
You must be signed in to change notification settings - Fork 50
Python
Very simple stuff here only.
-
PEP 8 - General formatting and structure guidelines.
-
Working with matrix math for doing geostats or image processing? Install NumPy and SciPy ».
Using a poorly documented library? Use the built in pydoc program by typing on the command line:
pydoc -p 8080
Then load in a web browser:
http://localhost:8080/
For instance, the docs for OGR is:
http://localhost:8080/osgeo.ogr.html
http://wiki.python.org/moin/HowTo/Sorting
http://www.doughellmann.com/PyMOTW/csv/
http://www.tutorialspoint.com/python/python_basic_operators.htm
- Arithmetic Operators
- Comparison Operators
- Logical (or Relational) Operators
- Assignment Operators
- Conditional (or ternary) Operators
http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder
http://stackoverflow.com/questions/1225637/python-string-formatting
http://docs.python.org/library/string.html#format-specification-mini-language
Python doesn't scope code to the local class automatically; you need to tell it to.
pp = self.foobar(arg1, arg2)
http://stackoverflow.com/questions/4068785/python-nameerror-global-name-foobar-is-not-defined
http://stackoverflow.com/questions/986006/python-how-do-i-pass-a-variable-by-reference
http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/
http://stackoverflow.com/questions/473099/python-how-to-check-if-a-given-index-in-a-dict-exists-yet
##Random