Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/a/n/anybox.recipe.openerp-1.8.3/anybox/recipe/openerp/runtime/session.py   anybox.recipe.openerp(Download)
            other = str(other)  # Works with distutils' Version classes
 
        other = self.__class__(other)
        return cmp(self.components, other.components)
 

src/4/s/4Suite-XML-1.0.2/Ft/Lib/DistExt/Version.py   4Suite-XML(Download)
    def __cmp__(self, other):
        if isinstance(other, str):
            other = self.__class__(other)
        compare = cmp(self.version, other.version)
        if compare == 0: