Autoloader (was Re: CSV Error)

Chris Angelico rosuav at gmail.com
Sun Dec 28 09:03:18 EST 2014


On Mon, Dec 29, 2014 at 12:58 AM, Skip Montanaro
<skip.montanaro at gmail.com> wrote:
> (Ignore the "autoloading" message. I use an autoloader in interactive
> mode which comes in handy when I forget to import a module, as I did
> here.)

We were discussing something along these lines a while ago, and I
never saw anything truly satisfactory - there's no easy way to handle
a missing name by returning a value (comparably to __getattr__), you
have to catch it and then try to re-execute the failing code, which
isn't perfect. How does yours work? Or was it one of the ones that was
mentioned last time?

ChrisA



More information about the Python-list mailing list