python newbie: some surprises

Mensanator mensanator at aol.com
Fri May 9 00:58:42 EDT 2008


On May 8, 11:47�pm, Yves Dorfsman <y... at zioup.com> wrote:
> Mensanator wrote:
> >> 2. python requires to pass "self" to all instance methods
>
> > Who uses methods?
>
> Is this a joke ?

Yes.

> What are the alternatives ?
>
>
>
> >> 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 ":".
>
> I see the point of the OP. Couldn't the new-line be used as an equivalent of
> � ':', for example, do you find this difficult to read:
>
> if a == 3
> � �do_something()
>
> if a == 3: do_something()
>
> And surely, it should be easy to parse by the compiler.

If they were to chane it, I wouldn't complain.

I just think it doesn't deserve complaints when
compared to other systems.

>
> Yves.http://www.SollerS.ca




More information about the Python-list mailing list