Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Also bsddb (was: Re: Further PEP 8 compliance issues in threading and multiprocessing)

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


jcea at jcea

Sep 2, 2008, 11:20 AM

Post #1 of 1 (362 views)
Permalink
Also bsddb (was: Re: Further PEP 8 compliance issues in threading and multiprocessing)

-----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-----
_______________________________________________
Python-Dev mailing list
Python-Dev[at]python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.