|
Re: Cheetah and PEP255: msg#00056python.cheetah
On Wed, Oct 22, 2003 at 10:10:39AM +0200, JZ wrote: > I get many "DeprecationWarning: Non-ASCII character" warnings from > compiled templates after I changed Python version from 2.x to 2.3.x. > > Cheetah compiler ignores PEP 255 introduced in 2.3 version. > For Python 2.4 this will raise an error, not only the warning. > http://www.python.org/doc/2.3/whatsnew/section-encodings.html So, what do we do about this? Cheetah copies the literal portions of the template definition into the template class as string literals, whether 7 bit or 8 bit. I guess that's what the warning is complaining about. But we don't know what the encoding should be. I suppose we could add a directive or compiler setting for it. -- -Mike Orr (aka. Sluggo), mso@xxxxxx (iron@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Cheetah and PEP255, Tavis Rudd |
|---|---|
| Next by Date: | Re: Import speed issue, Mike Orr |
| Previous by Thread: | Re: Cheetah and PEP255, Tavis Rudd |
| Next by Thread: | Re: Cheetah and PEP263, JZ |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |