How can I create customized classes that have similar properties as 'str'?

Marc 'BlackJack' Rintsch bj_666 at
Sat Nov 24 14:42:48 CET 2007

On Sat, 24 Nov 2007 13:40:40 +0100, Bjoern Schliessmann wrote:

> Licheng Fang wrote:
>> On Nov 24, 7:05 pm, Bjoern Schliessmann <usenet-
>> Wow, I didn't know this. But exactly how Python manage these
>> strings? 
> I don't know (use the source, Luke). :) Or perhaps there is a Python
> Elder here that knows?

AFAIK strings of length 1 and strings that would be valid Python
identifiers are treated this way.

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list