PEP263 and execfile()

Martin v. Löwis martin at v.loewis.de
Tue Nov 18 14:13:58 EST 2003


Roman Suzi <rnd at onego.ru> writes:

> But is there solution possible without modification of
> all those files I do execfile() on?

Yes, call warnings.filterwarnings() before calling execfile().

Regards,
Martin




More information about the Python-list mailing list