Page 1 of 1

Python module version types.

PostPosted: Sat Oct 22, 2005 9:16 pm
by Lejon
The 2 most common types for module versions seams to be
string (eg. 1.2.3) and tuple (eg. (1, 2, 3)).

Witch of thes two do you prefer?

My thoughts.
The String one can ofcourse be printed easaly for a report.
While the tuple is easyer for advanced compair.
And I find it easyer/faster to convert from tuple to string, than from string to tuple.

Do'h, cant Edit the Pool question.
Ofcourse it is ment to be "do..." not "fo..."

RE: Python module version types.

PostPosted: Mon Oct 24, 2005 8:17 am
by M-Saunders
Corrected :-)

M

Re: RE: Python module version types.

PostPosted: Mon Oct 24, 2005 8:21 am
by Lejon
M-Saunders wrote:Corrected :-)

M

Thanx :D

Now if people only could start to vote!
Am I the only python dev here? I know I am not alone!

RE: Re: RE: Python module version types.

PostPosted: Mon Oct 24, 2005 12:29 pm
by overflow
Our version numbers are inserted by CVS so it has to be strings.

Re: RE: Re: RE: Python module version types.

PostPosted: Mon Oct 24, 2005 12:32 pm
by Lejon
overflow wrote:Our version numbers are inserted by CVS so it has to be strings.


Dose not "has to be".
As you can easy create a function that can return it as a tuple.
However I see your point.