On Wed, Feb 9, 2011 at 10:21 PM, Hartmut Goebel
<h.goe...@goebel-consult.de>wrote:
> Am 09.02.2011 21:59, schrieb nap:
> > I look on a eeebuntu, and it also give me a + on the
> > platform.python_version_tuple(), so it do not look as a limited ubuntu
> > python dev, but a real bug. It seems that the sys.versionçnfo do not
> > have this '+' issue, but have another :
> > sys.version_info :
> > (2, 6, 6, 'candidate', 1).
> >
> > Maybe we can just take the first 2 items.
> >
> As you may have notices, this is already fixed :-)
>
Ho! Too fast :)
Thanks :)
Tamas : i'm adding you to the THANKS file too for this bug report :)
Jean
>
> And regarding the version_info: We can happily compare a n-tuple with a
> 2-tuple:
>
> >>> import sys
> >>> sys.version_info
> (2, 6, 5, 'final', 0)
> >>> sys.version_info < (2,7)
> True
> >>> sys.version_info > (2,6)
> True
> # ough!
> >>> sys.version_info < (2,6)
> False
> >>> sys.version_info <= (2,6)
> False
> >>> sys.version_info >= (2,)
> True
> >>> sys.version_info < (2,6)
> False
> >>> sys.version_info < (2,7)
> True
> >>>
>
> --
> Schönen Gruß - Regards
> Hartmut Goebel
> Dipl.-Informatiker (univ.), CISSP, CSSLP
>
> Goebel Consult
> Spezialist für IT-Sicherheit in komplexen Umgebungen
> http://www.goebel-consult.de
>
> Monatliche Kolumne: http://www.cissp-gefluester.de/
> Goebel Consult mit Mitglied bei http://www.7-it.de
> [...]
>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel