Characters contain themselves?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Fri Apr 7 18:33:55 EDT 2006


WENDUM Denis 47.76.11 (agent) a écrit :
> 
> While testing recursive algoritms dealing with generic lists I stumbled 
> on infinite loops which were triggered by the fact that (at least for my 
> version of Pyton) characters contain themselves.

There is *no* character type in Python. 'a' is a string, and of course 
the string 'a' is a substring of string 'a'.



More information about the Python-list mailing list