curly-brace-aphobic?
Remco Gerlich
scarblac at pino.selwerd.nl
Tue Jan 30 19:57:48 EST 2001
D-Man <dsh8290 at rit.edu> wrote in comp.lang.python:
> | It's almost odd that list/dict indexing is different from indexing a module
> | or instance...
>
> I'm not familiar with indexing a module or instance. What exactly
> does it mean?
Well, writing "string.split" is inconsistent, shouldn't it be string[split]
or string["split"]?
It's like indexing the module. It is actually a dict lookup internally.
They're not the same thing really since an identifier suddenly becomes a
string and so on, but it's just a connection my mind made...
--
Remco Gerlich
More information about the Python-list
mailing list