[Python-3000] dbm package creation

Georg Brandl g.brandl at gmx.net
Mon May 26 11:14:06 CEST 2008


Brett Cannon schrieb:
> On Sun, May 25, 2008 at 12:21 PM, Georg Brandl <g.brandl at gmx.net> wrote:
>> Hi,
>>>> I'll handle the PEP 3108 dbm package if nobody else is already at it.
>>>> I know I have not started the work.
>>> Two questions though:
>>>> * the whichdb() function returns strings that are module names. These
>> names won't be importable anymore in 3k. Should the return values
>> remain the same in 3k, or should whichdb() return the new names, and
>> if the latter, including "dbm." or not?
>>>> New names with the package name prepended.
>> Should probably change the API at some point to just return the module
> to use instead of the name.
>>> * two of the previous modules are C modules, namely dbm and gdbm. They
>> can't be easily moved into the package. I expect the solution is to
>> create stub Python modules and rename the C modules with a leading
>> underscore? (It's already like this for bsd, except that the C module
>> name, bsddb, has no underscore.)
>>>> Yep. I don't know of any package in the stdlib that uses a extension
> module in some other fashion.

Okay, that's settled then!
Georg


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /