[PYTHON-CRYPTO] Package name
M.-A. Lemburg
mal at LEMBURG.COM
Thu Nov 22 09:52:51 CET 2001
Michael Ströder wrote:
>
> "M.-A. Lemburg" wrote:
> >
> > Andrew Kuchling wrote:
> > >
> > > And does anyone have a suggested interface for registering extensions?
> > > There seems no good Pythonic model for doing this sort of thing.
> >
> > Simple: just install the extensions in a well-known directory and
> > then have the API scan that directory for .py[c|o] files. Works
> > great ! Plug&Play sort-of :-)
>
> What to do if two packages A and B are both implementing algorithm c
> ?
There are multiple options:
1. first one found wins
2. raise an exception
3. the registration API of each package defines a preference
level and the one with the highest preference value wins (usually
the fastest implementation)
--
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Consulting & Company: http://www.egenix.com/
Python Software: http://www.lemburg.com/python/
More information about the python-crypto
mailing list