Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Python module version types.

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  

What module version type do you prefer?
String (eg. 1.2.3)
33%
 33%  [ 2 ]
Tuple (eg. (1, 2, 3))
66%
 66%  [ 4 ]
Total Votes : 6

Author Message
Lejon
LXF regular


Joined: Wed Oct 19, 2005 8:24 pm
Posts: 150
Location: Sweden

PostPosted: Sat Oct 22, 2005 10:16 pm    Post subject: Python module version types. Reply with quote

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..."
_________________
I am the one you thought I was! Just not the way, you expected...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
M-Saunders
LXF regular


Joined: Mon Apr 11, 2005 1:14 pm
Posts: 2893

PostPosted: Mon Oct 24, 2005 9:17 am    Post subject: RE: Python module version types. Reply with quote

Corrected Smile

M
Back to top
View user's profile Send private message Visit poster's website
Lejon
LXF regular


Joined: Wed Oct 19, 2005 8:24 pm
Posts: 150
Location: Sweden

PostPosted: Mon Oct 24, 2005 9:21 am    Post subject: Re: RE: Python module version types. Reply with quote

M-Saunders wrote:
Corrected Smile

M

Thanx Very Happy

Now if people only could start to vote!
Am I the only python dev here? I know I am not alone!
_________________
I am the one you thought I was! Just not the way, you expected...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
overflow
LXF regular


Joined: Tue Aug 23, 2005 2:40 pm
Posts: 158
Location: London

PostPosted: Mon Oct 24, 2005 1:29 pm    Post subject: RE: Re: RE: Python module version types. Reply with quote

Our version numbers are inserted by CVS so it has to be strings.
_________________
overflow
Back to top
View user's profile Send private message
Lejon
LXF regular


Joined: Wed Oct 19, 2005 8:24 pm
Posts: 150
Location: Sweden

PostPosted: Mon Oct 24, 2005 1:32 pm    Post subject: Re: RE: Re: RE: Python module version types. Reply with quote

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.
_________________
I am the one you thought I was! Just not the way, you expected...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast