python newbie: some surprises

Martin P. Hellwig xng at xs4all.nl
Thu May 8 03:17:49 EDT 2008


v4vijayakumar wrote:
> When I started coding in python, these two things surprised me.
> 
> 1. my code is inconsistently indented with the combination of tabs and
> spaces. Even lines looked intended, but it is not.
> 
Even the standard editor Idle tries to guess the intendation, so this 
was never a problem for me. Though these days I use PyDev a lot.

> 2. python requires to pass "self" to all instance methods
A lot of editors help you with these 'unnecessary' things by 
auto-completion might be worth looking into one.
> 
> and I missed ":" often. :)
Still do after 5 years of python abuse :-)

-- 
mph



More information about the Python-list mailing list