PEP 285: Adding a bool type

Max M maxm at mxm.dk
Fri Apr 5 06:44:15 EST 2002


Alex Martelli wrote:

 > Actually, the VIM-only case-insensitivity flag is crucial here,
 > since it lets you substitute both uppercase 1 and lowercase 1
 > in one sweep (pity that, as written, it works for one line only,
 > but, if one's Python code IS just one line in all, that's OK).

Maybe I should brush up on my reg-ex's

But though I love the Python syntax I really HATE the indentation issue. 
So to keep my code more readable I usually put it all in one line, as my 
editor wraps it automatically at #80.

If I need more code than can fit into a single line I just write it in 
another file.

All those files also makes the project almost self-documenting.

Maybe lesser programmers choose to do othervise, but see how simple my 
regex for replacing is as an added bonus.

;-) <- smiley added this time around

regards Max M




More information about the Python-list mailing list