A few days ago I got my first Python project. I’d like to share references I’ve found, and what I like or dislike about the language. I hope to give insight to would-be Python dabblers and ideas to current Pythoneers.
Good resources I’ve found
I have found some good resources online for Python and Jython, but I know I didn’t find them all so if you Python-istas could put some in the comments I’d be very grateful :)
- The somewhat famous Python is not Java article
- Python Documentation Index
- Python 2.6.1 Docs
- Python Language Notes by Chris Rathman
- The Jython Project
What I like so far
I like that a lot of common operations are very easy. Take for example:
as opposed to
There are a bunch of other features that come to mind, like string formatting, list manipulation, and variable and default-valued arguments. Oh, and of course closures are very straightforward:
I could go on and on, but you really ought to read the documentation to see all of its features. Actually there’s not all that much to it!
Troubles I have with it
I wish I could find more documentation with simple code examples. I’m sure there are a bunch of blog posts out there but it’d be nice if there were more included with the documentation.
Passing arguments by reference doesn’t seem to be possible, which is fine, but different. I’m not totally used to the lack of curly braces, but I like the fact that you must have good formatting to have runnable Python. I was surprised to learn that Python is strongly typed which in some way I think is odd because it seems like it’d be simpler if it was weakly typed.
One last thing is classes. I’m not sure I have my head around how they really work in Python. I’m sure I’ll get the hang of it soon.
Overall I’m thoroughly impressed with the language. There almost seems to be a Zen-like aura around Python code that is written with the simplicity the language creators intended.
Obviously I still have a lot to learn, so please help me out if you have some advice in the comments!