why the string function / module change
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Thu Feb 22 11:02:16 EST 2001
21 Feb 2001 22:32:46 GMT, Remco Gerlich <scarblac at pino.selwerd.nl> pisze:
> > If you are appending to a list object you use <listobj>.append(), and
> > not listmodule.append(<listobj>). Similarly with dictionaries, and so on...
>
> But lists and dictionaries are mutable, and files are as well, in a way.
> Strings are not.
Why should it matter?
> Nor are tuples and integers, and those don't have methods either.
I see no fundamental reason why they should not, except that Python
already expressed them as builtin syntax or builtin functions which
recognize builtin types (+, ==, len).
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list