how to make a piece of code lowercase, except strings / comment ?

Stef Mientki stef.mientki at gmail.com
Thu May 6 13:46:21 EDT 2010


hello,

I use Python with some simplifications and a few extensions,
as a scripting language for non-programmers.

One of the simplifications is that the language should be case-insensitive.
This is done by making the code lowercase.
But now the strings in the code are also converted to lowercase.

Is there an easy way to make a piece of code lowercase,
except all string items (single / double /triple quoted and comment) ?

thanks,
Stef Mientki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100506/6637579a/attachment.html>


More information about the Python-list mailing list