On 12/30/2014 01:29 PM, Strap wrote:
La documentazione di pip il linkhttp://bit.ly/1HZ5fDb porta ahttp://bit.ly/1B1jYgG Poi, guardando il codice sorgente di setuptools ho trovato queste righe
(perdona l'indentazione, questo e` il link -http://bit.ly/1EEn7aa):

     def as_requirement(self):
         """Return a ``Requirement`` that matches this distribution exactly"""
         if isinstance(self.parsed_version, packaging.version.Version):
             spec = "%s==%s" % (self.project_name, self.parsed_version)
         else:
             spec = "%s===%s" % (self.project_name, self.parsed_version)

         return Requirement.parse(spec)

Deduco che '==' e '===' siano la stessa cosa.

Che dici, siamo sulla strada giusta?:-)

Good catch! Direi che la strada è esatta! Guarda un po' cosa non si può imparare dalle malefatte della sintassi!

Ciao,
Fabrizio.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a