On Jun 22, 2006, at 11:48 AM, Phillip J. Eby wrote: > At 07:25 AM 6/22/2006 -0400, Jim Fulton wrote: >> I can get at the specifiers. What I want is either a public API for >> getting the >> specifiers, or an API that lets me retrieve the upper bound, if there >> is one. >> (Obviously, it could return None if no upper bound exists.) > > Use the specs attribute, which is a list of (op,ver) pairs in > ascending version order (and an undefined order among pairs that > have equivalent versions). The 'ver' is an *unparsed* version > number, so you should parse it in order to do comparisons. > > The specs attribute is currently undocumented, but I'll document > it. It has to be the way it is, because it's needed in order to > produce a consistent string representation of a particular > requirement.
Cool. Thanks. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
