python newbie: some surprises
Mensanator
mensanator at aol.com
Thu May 8 13:24:40 EDT 2008
On May 8, 2:06 am, v4vijayakumar <vijayakumar.subbu... at gmail.com>
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.
You must type inconsistently.
I never had such a problem even when I used to use Notepad.
>
> 2. python requires to pass "self" to all instance methods
Who uses methods?
>
> and I missed ":" often. :)
Try using something like Seed7, where you have to use "then" with
"if" and "do" with "while" and "end" in every block. Maybe you'll
come to appreciate significant whitespace and ":".
More information about the Python-list
mailing list