PEP 285: Adding a bool type

Alex Martelli aleax at aleax.it
Fri Apr 5 04:52:50 EST 2002


Van Gale wrote:

> 
> "Max M" wrote:
> 
>> Oh stop whining!
> 
> Was that really necessary?

Indispensable!  Have you never taken Flamewars 101?  Starting with an
offensive tone is one of the best-known techniques in the business.
Deadpan is a more advanced subject, of course, although worthwhile.


>> Just do a search and replace in your codebase::
>>
>>      s/1/True/gi
>>
>> That should solve all those problems in a few seconds.
> 
> Yeah... it'll solve **those** problems, but think about it for a sec.
> Maybe, just maybe, this will create a slew of entirely different problems?

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).


Alex




More information about the Python-list mailing list