__version__ hack in Matrix.py is busted

April 8, 2000
10:54 p.m.
I can't import "Matrix" due to the following cruft: __id__ = """ $Id: Matrix.py,v 1.1.1.1 2000/01/13 21:23:06 dubois Exp $ """[1:-1] import string __version__ = int(__id__[string.index(__id__, '#')+1:-1]) You can't count on the CVS ID having a "#" character in it; each time the file is checked in and out of CVS the Id is rewritten. I don't think this trick can be made to work. I think what is needed is either a simpler more failsafe way of setting __version__, or simply to eliminate __version__ altogether.
9087
Age (days ago)
9087
Last active (days ago)
0 comments
1 participants
participants (1)
-
Charles G Waldman