Why is there no post-pre increment operator in python
gene tani
gene.tani at gmail.com
Fri Jan 13 04:23:40 EST 2006
riteshtijoriwala at gmail.com wrote:
> Anyone has any idea on why is there no post/pre increment operators in
> python ?
> Although the statement:
> ++j
> works but does nothing
"+=1" and "-=1" inflate your KLOC by .001, but they always work as
expected with integers, it's when you do augmented assignments on lists
and tuples that shit happens
http://zephyrfalcon.org/labs/python_pitfalls.html
More information about the Python-list
mailing list