[ZODB-Dev] ZODB.__version__

Jim Fulton jim at zope.com
Mon Jun 8 17:04:03 EDT 2009


On Jun 8, 2009, at 4:30 AM, Pedro Ferreira wrote:

> Hello,
>
> I've noticed that the __version__ variable hasn't been updated lately:
>
> i.e. on 3.8.1:
>
>>>> import ZODB
>>>> ZODB.__version__
> '3.7.0b3'
>
> And on 3.9x it doesn't even exist.
> Was it officially deprecated?

Yes


> If so, is there any other way to check the
> library version?


Why do you want to?

If ZODB is installed using setuptools (e.g. buildout), then you can  
use pkg_resources to find out what version is installed.

Jim

--
Jim Fulton
Zope Corporation




More information about the ZODB-Dev mailing list