Friday, March 27, 2009

Eclipse, pydev notes, refresh errors and warnings

To refresh all errors project(s) widely do:
Project (from menu) -> Clean

Very useful when refactoring classes as all files will be parsed.

Thursday, March 26, 2009

Python notes, halving list

Splitting list from the middle:
>>> a = [34,412,3,2,4,6,78,9,2]
>>> [a.pop(0) for alk in a]
[34, 412, 3, 2, 4]
... tricky ain't it.