What is @ used for?

D

Darren Dale

I was looking through Pybliographer's source yesterday, and I dont
recognize this syntax:

version = "@version@"
progname = "@package@"

Presumably, this is reading values from somewhere. I havent seen '@'
discussed in the python manuals or books, only IPython's magic
functions. Maybe I'm not looking in the right place. Could anyone point
me in the right direction?
 
T

Thomas =?ISO-8859-1?Q?Kr=FCger?=

Darren said:
I was looking through Pybliographer's source yesterday, and I dont
recognize this syntax:

version = "@version@"
progname = "@package@"


It looks like a special string used by an external application working with
the source code.
CVS for example replaces (better expands) some keywords between $ characters
with information like version, author or history.
AFAIK there is no special meaning in Python.

Thomas
 
D

Dennis Lee Bieber

AFAIK there is no special meaning in Python.

Especially not while it is between quote marks...

Now, those "decorator" posts might be proposing a use for it...

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,666
Latest member
selsetu

Latest Threads

Top