Message108024
| 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.0021249803 |
| 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. |
|