Newb question: underscore

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Fri Jun 6 11:33:26 EDT 2008


John Fabiani a écrit :
> Skye wrote:
> 
>> What is this doing?
>>
>>     print >> fd, _(__doc__)
>>
>>
>> I'm guessing line-splitting __doc__ into a list, but what's that
>> leading underscore do?
>>
>> Thanks!
> I think it is standard practice to use the underscore for unicode converts.

Actually, it's for i18n, not for encoding.



More information about the Python-list mailing list