[BangPypers] Python "Wat"s

Shabda Raaj shabda at agiliq.com
Tue Sep 10 07:27:49 CEST 2013


> A variable is either local or global. It is decided at the compile time.

Erm, compile?


Python's scoping rules are , erm, interesting:

http://me.veekun.com/blog/2011/04/24/gotcha-python-scoping-closures/

The mnemonic for scoping is LEGB:
http://stackoverflow.com/questions/291978/short-description-of-python-scoping-rules


More information about the BangPypers mailing list