Re: [Modeling-users] Fetching raw rows
Status: Abandoned
Brought to you by:
sbigaret
|
From: Yannick G. <ygi...@yg...> - 2003-07-18 10:35:31
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 18 July 2003 04:19, Sebastien Bigaret wrote:
> > And if you read carefully the python cookbook you will find some
> > really impressive performance boost while using some map.. and
> > other in list or dict. But there is a drawback code isn't really
> > eye candy after this tweak
>
> I'll check that however.
Another trick is that Psyco is *much* more effective with the new style
classes (derived from object). Since you want to keep Zope support it
may be a problem but there is an other trick that most people ignore.
The parent in a class declaration is an expression. So this is
valid :
class Object:
pass
def topLevelClass():
try:
return object
except NameError:
return Object
class MySuperFastClass(topLevelClass()):
pass
- --
Yannick Gingras
Coder for OBB : Optimum Brawny Buspirone
http://OpenBeatBox.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE/F1iXrhy5Fqn/MRARAoPeAKCSnbp5IvdDeHoFrrS7Ux8r7+520wCfTrgU
dLN9tQ3/jMw2di2AT+8MKoo=
=QwvZ
-----END PGP SIGNATURE-----
|