Reloading function obtained via 'from xxx import yyy'

bukzor workitharder at gmail.com
Sat May 24 02:15:00 EDT 2008


On May 23, 3:44 pm, "Joel Koltner" <zapwireDASHgro... at yahoo.com>
wrote:
> ""Martin v. Löwis"" <mar... at v.loewis.de> wrote in messagenews:4837225e$0$5507$9b622d9e at news.freenet.de...
>
> > Try all three of them, in sequence:
>
> Thanks, will do.
>
> > If you absolutely don't want to import test, write
>
> I can live with the import, I just don't want to have to type out the full
> names all the time.
>
> ---Joel

t = reload(test).testFunc
t()



More information about the Python-list mailing list