[Python-Dev] Also bsddb (was: Re: Further PEP 8 compliance issues in threading and multiprocessing) (original) (raw)
Jesus Cea jcea at jcea.es
Tue Sep 2 20:20:15 CEST 2008
- Previous message: [Python-Dev] Further PEP 8 compliance issues in threading and multiprocessing
- Next message: [Python-Dev] Further PEP 8 compliance issues in threading and multiprocessing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Jean-Paul Calderone wrote:
Here's a complaint. It's surprising that you can't use Event et al with isinstance. This is something I'm sure a lot of people run into (I did, many years ago) when they start to use these APIs. Once you do figure out why it doesn't work, it's not clear how to do what you want, since Event is private.
I have similar issues with bsddb. Here, there are Factory functions like "DBEnv" or "DB", creating "DBEnv" and "DB" class instances. Note the name aliasing.
I don't understand why these functions exist. It causes a few problems, like being unable to subclass the bsddb classes, for example.
For future bsddb4.6.4 (Late october, I think) I plan to remove the Factory functions, exporting the classes directly, and allowing subclassing. The code should be 100% compatible.
Any opinion?
Jesus Cea Avion // /// /// jcea at jcea.es - http://www.jcea.es/ // // // // // jabber / xmpp:jcea at jabber.org // // ///// . // // // // // "Things are not so easy" // // // // // // "My name is Dump, Core Dump" /// //_/ // // "El amor es poner tu felicidad en la felicidad de otro" - Leibniz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCUAwUBSL2D3Jlgi5GaxT1NAQLJugP4qynGMZI8nN06rDyPU8FQ2kHig6uReuSE GW2fTuKXrYLlwRW5vA1GV/nA1y+6dUPuOF5erwCjVsXp28jMKNlk0BfIXmqe1wz9 +N6bIVYlFeChp5M05TDYaCNUNgRGuHURV44DvZ+vjr9GqxHuVWHHcl0EKTTSlpMi K6FBYiZjbw== =DGEq -----END PGP SIGNATURE-----
- Previous message: [Python-Dev] Further PEP 8 compliance issues in threading and multiprocessing
- Next message: [Python-Dev] Further PEP 8 compliance issues in threading and multiprocessing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]