I question the goodness of that piece of code.  It is very
disturbing.  Simple and clean, and no random dependencies.  This is
not a novel idea.  Many pieces of software use a set of integers to
represent a version.

On Apr 4, 2:55 pm, Gnomechomsky <[EMAIL PROTECTED]> wrote:
> Try this at a Python prompt:
>
> >>> from pkg_resources import parse_version
> >>> parse_version('1.1alpha2')
>
> ('00000001', '00000001', '*alpha', '00000002', '*final')
>
>
>
> On Apr 3, 8:46 pm, jotham <[EMAIL PROTECTED]> wrote:
>
> > I think you miss the point.  pyglet.version is not a numeric
> > indicator.  It's a string.  One version I am using states
> > '1.1alpha2'.  This can never be suitably converted to integer parts. I
> > was specifically suggesting a tuple, hence the code I wrote (After
> > being lambasted on here before for not providing code).
>
> > On Apr 3, 9:34 pm, "Txema Vicente" <[EMAIL PROTECTED]> wrote:
>
> > > > Try pyglet.version
>
> > > This works for me:
>
> > > from pyglet import version
> > > print version
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to