Quoted identifiers in Python?
Remco Gerlich
scarblac at pino.selwerd.nl
Thu Mar 29 15:15:41 EST 2001
Eddie and Babs <kca17 at dial.pipex.com> wrote in comp.lang.python:
> While reading an article about the Dylan language a few years ago, I was
> surprised to find that you could have quoted identifiers (ie, variable and
> function names, etc). So you could have a function named "turn around" (with
> quotes) and then call it using something like:
>
> "turn around"(xxx)
>
> The idea is that you can put any characters within the quotes.
So when I do
x = "turn around"
How does Python know whether I mean the string or the identifier?
--
Remco Gerlich
More information about the Python-list
mailing list