this must be a stupid question ...

Gary Herron gherron at
Sun Jul 29 00:41:56 CEST 2007

Stef Mientki 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.
> thanks,
> Stef Mientki
The $ is not used in any Python syntax.  Neither in  variable names nor 
any syntactical construct.

Of course, like any character, it can be used in strings.  (And some 
packages, like re, will make special use of a $ in a string.)

Gary Herron

More information about the Python-list mailing list