470,810 Members | 880 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

What is @ used for?

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?
Jul 18 '05 #1
2 1300
Darren Dale wrote:
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
Jul 18 '05 #2
On Sun, 08 Aug 2004 21:01:15 +0200, Thomas Krger <kr*****@k-dns.de>
declaimed the following in comp.lang.python:
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...

-- ================================================== ============ <
wl*****@ix.netcom.com | Wulfraed Dennis Lee Bieber KD6MOG <
wu******@dm.net | Bestiaria Support Staff <
================================================== ============ <
Home Page: <http://www.dm.net/~wulfraed/> <
Overflow Page: <http://wlfraed.home.netcom.com/> <

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ravi Tallury | last post: by
54 posts views Thread by Brandon J. Van Every | last post: by
121 posts views Thread by typingcat | last post: by
669 posts views Thread by Xah Lee | last post: by
11 posts views Thread by Paul Brady | last post: by
89 posts views Thread by Tubular Technician | last post: by
32 posts views Thread by Stephen Horne | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.