import module name collision

Peter Maas peter.maas at mplusr.de
Mon Sep 6 04:45:16 EDT 2004


Chris Foote schrieb:

> Today I happened to accidentally name one of my project's
> files 'email.py', which collides with the module of the
> same name in Python's standard library:
> 
 >     from email.MIMEText import MIMEText

from email.MIMEText import MIMEText as YetAnotherMIMEText

-- 
-------------------------------------------------------------------
Peter Maas,  M+R Infosysteme,  D-52070 Aachen,  Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------



More information about the Python-list mailing list