Tim Peters wrote:
[Shane Hathaway]
It can do this because it has to provide its own DB and Connection
objects anyway.



I trust that's for more reasons than _just_ because it doesn't want to use
'\0'*8 as the root-object oid.

It's for uniformity. In Ape, the strategy for choosing OIDs is pluggable, and the plugin that chooses OIDs has the opportunity to choose the root OID. Otherwise the root OID would be a special case that every OID chooser would have to be aware of.

However, I wouldn't have gone to this effort if it weren't so easy. There's very little code that cares what the root OID is.

Shane
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to