Marc 'BlackJack' Rintsch wrote:
>> 2) Once I assign mymodule.test with override, will modules that
>> imported my module *PRIOR* to the assignment get override, or will they
>> keep the original function test()?
> 
> They see the `override()` function.

That depends on how the import was done.

If you do 'import mymodule' and then use 'mymodule.test' to access the
function, then they'll see the new 'override' function.

Alternatively, If you do 'from mymodule import test', and use 'test',
then they'll see the original 'test' function.

Regards
Sreeram

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to