Author belopolsky
Recipients amaury.forgeotdarc, belopolsky, brett.cannon, brian.curtin, daniel.urban, lemburg, pitrou, r.david.murray, techtonik, vstinner
Date 2010-06-17.14:49:14
SpamBayes Score 0.00212498
Marked as misclassified No
Message-id <1276786156.3.0.931625302259.issue7989@psf.upfronthosting.co.za>
In-reply-to
Content
> To avoid the wasted memory and import time, it's better to use:
>
> try:
>    from _cmodule import *
> except ImportError:
>    from _pymodule import *
>

.. also this makes it harder to prototype things in Python or have mixed Python/C modules.  The goal is to use Python implementation unless native implementation exists on per function/class basis.  The syntax above makes it all or nothing.
History
Date User Action Args
2010-06-17 14:49:16belopolskysetrecipients: + belopolsky, lemburg, brett.cannon, amaury.forgeotdarc, pitrou, vstinner, techtonik, r.david.murray, brian.curtin, daniel.urban
2010-06-17 14:49:16belopolskysetmessageid: <1276786156.3.0.931625302259.issue7989@psf.upfronthosting.co.za>
2010-06-17 14:49:14belopolskylinkissue7989 messages
2010-06-17 14:49:14belopolskycreate