this must be a stupid question ...

David Wilson dw at botanicus.net
Sat Jul 28 18:57:15 EDT 2007


On 28/07/07, Stef Mientki <S.Mientki-nospam at mailbox.kun.nl> wrote:
> but I can;t find the answer ;-)
>
> As searching for the '$' sign doesn't work well in the help files,
> I can not find out, where is the '$' sign used for.
>
> If I try to use it in names,
> I get a compiler error,
> so it probably has some special meaning.

Hi Stef,

It has no special meaning in the Python language, beyond being invalid
for use in identifiers. I believe there is a new string formatting
module which interprets it when it is part of a format string, but
nothing in the core language.

If you look at the language grammar, you can see why this is an error

    http://docs.python.org/ref/identifiers.html


David.


>
> thanks,
> Stef Mientki
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list