Comments in pickles?
Richard Jones
rjones at ekit-inc.com
Tue Jul 2 23:35:41 EDT 2002
On Wed, 3 Jul 2002 1:23 pm, Roy Smith wrote:
> Tim Peters <tim.one at comcast.net> wrote:
> >> Our usual practice is to imbed the CVS id string ($Id: ) in every
> >> checked-in file as a comment.
> >
> > I encourage you to question that practice.
>
> This is getting a little off-topic, but why do you say that? It's the
> most convenient way I know of to identify a file when you're looking at
> it.
Later in his reponse, Tim encourages you to store the information in something
that isn't just turfed during parsing: a string. A good place to store that
is in a string called "version" at the module toplevel. Another is just in
the module docstring, if you don't need to access the version directly.
Richard
More information about the Python-list
mailing list