| View previous topic :: View next topic |
| What module version type do you prefer? |
| String (eg. 1.2.3) |
|
33% |
[ 2 ] |
| Tuple (eg. (1, 2, 3)) |
|
66% |
[ 4 ] |
|
| Total Votes : 6 |
|
| Author |
Message |
Lejon LXF regular

Joined: Wed Oct 19, 2005 8:24 pm Posts: 150 Location: Sweden
|
Posted: Sat Oct 22, 2005 10:16 pm Post subject: Python module version types. |
|
|
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 |
|
 |
M-Saunders Moderator

Joined: Mon Apr 11, 2005 1:14 pm Posts: 2883
|
Posted: Mon Oct 24, 2005 9:17 am Post subject: RE: Python module version types. |
|
|
Corrected
M |
|
| Back to top |
|
 |
Lejon LXF regular

Joined: Wed Oct 19, 2005 8:24 pm Posts: 150 Location: Sweden
|
Posted: Mon Oct 24, 2005 9:21 am Post subject: Re: RE: Python module version types. |
|
|
| M-Saunders wrote: | Corrected
M |
Thanx
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 |
|
 |
overflow LXF regular

Joined: Tue Aug 23, 2005 2:40 pm Posts: 158 Location: London
|
Posted: Mon Oct 24, 2005 1:29 pm Post subject: RE: Re: RE: Python module version types. |
|
|
Our version numbers are inserted by CVS so it has to be strings. _________________ overflow |
|
| Back to top |
|
 |
Lejon LXF regular

Joined: Wed Oct 19, 2005 8:24 pm Posts: 150 Location: Sweden
|
Posted: Mon Oct 24, 2005 1:32 pm Post subject: Re: RE: Re: RE: Python module version types. |
|
|
| 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 previous topic :: View next topic |
|