[RFC] importing 'email' package on Python 3

Dirkjan Ochtman dirkjan at ochtman.nl
Tue Aug 4 02:22:54 CDT 2009

On Fri, Jul 31, 2009 at 23:17, Alejandro Santos<alejolp at alejolp.com> wrote:
> Option 3: Create a wrapper class and use the __getattr__ trick to
> follow a Py2.5+ naming convention:
> class emailwrap(object):
>    def __getattr__(self, name):
>        # ...
> from emailwrap.mime.multipart import MIMEMultipart
> import emailwrap.utils

I actually kind of like this option, but option 2 would do as well. If
you do end up going with option 2, don't import as emailutils or
whatever, that's just too tedious.



More information about the Mercurial-devel mailing list