Getting Better
This page provides a few resources that will help you become a better programmer. It is designed for people that feel fairly familiar with the basics of Python.
Please note, this page is incomplete. Please help to improve the page if you have any resources.
Finding Code Recipies
http://nullege.com/ is a search engine just for Python source code. It indexes Python source from several thousand open source projects. Great for making sure that your code works on live products.
http://code.activestate.com/recipes/langs/python/
Learning
Online courses
Google's Python Class is a series of videos and exercises from an intensive Python programming course that was run at Google. All content is licenced under CC-BY 2.5 Unported licence.
Videos
Intermediate Python features
Comprehensions
- List comprehensions
- Set comprehensions
Generator expressions
Generator expressions allow programmers to 'return' a value, pause the execution of the code and re-enter at the point that it left.
1 >>> def example():
2 ... yield 1
3 ... yield 2
4 >>> a = example()
5 >>> a.next()
6 1
7 >>> a.next()
8 2
- Using the
Descriptors
Understanding each of Python's hidden methods
__add__
__class__
__contains__
__delattr__
__doc__
__eq__
__format__
__ge__
__getattribute__
__getitem__
__getnewargs__
__getslice__
__gt__
__hash__
__init__
__le__
__len__
__lt__
__mod__
__mul__
__ne__
__new__
__reduce__
__reduce_ex__
__repr__
__rmod__
__rmul__
__setattr__
__sizeof__
__str__
__subclasshook__
Meta
