Decoupling the version of the file from the name of the module.
roy at panix.com
Sun Jan 29 00:54:53 CET 2006
In article <1138485449.572701.214790 at z14g2000cwz.googlegroups.com>,
bobueland at yahoo.com wrote:
> I'm a newbie experimenting with Python. I want to incrementally develop
> a module called 'circle'. The problem is now that the file name is used
> for two purposes. To keep track of the version number and as the name
> for the module. So when I develop the first version of my file I have
> to call it circle_a.py. The name of the module then automatically
> becomes circle_a. But when I develop the next increment and call my
> file circle_b.py the module name changes as well.
> Basically I want to decouple the version of my file from the name of
> the module.
> Is there a *simple* way out of this dilemma.
Why do you have to change the name of the file each time you come out with
a new version? I think that's where you're going wrong. Put something
*inside* the file to indicated the version number, but keep the name of the
file the same.
More information about the Python-list