is it possible to remove the ':' symbol in the end of lines starting with 'if', 'while' etc?

justme llansteffan at hotmail.com
Thu Feb 22 08:04:29 EST 2007


On 22 Feb, 11:49, open... at ukr.net wrote:
> I don't know to which forum should I post the message
> I hope someone related to the Python kernel development will read &
> consider the idea
> I'm (a former? meanwhile not sure) MATLAB user & it's very annoing
> typing each time for example
> while i:
>      print i
>      ...
> instead of
> while i
>     print i
>     ...
> of course if all is written in a single line ':' I guess should not be
> omited
>
> Thank you for you suggestions.
> Sorry my bad English.
>
> WBR, Dmitrey

Hi

Just a thought...
I've also just made the jump from Matlab to Python (or am straddling
the two at the moment!) and I find the ':' really useful for
delimiting blocks of code. Took a while to get used to it but I reckon
it helps me explain my code to non-programmers as they can see the
blocks I use.

Al




More information about the Python-list mailing list