In a file a.py, I have the lines:


import gevent
gevent.monkey.patch_all()

import b
# etc, etc


In file b.py is it necessary to monkey patch again? Is there anything wrong with monkey patching multiple times?
Normally there's just one entry in sys.modules for each module. ie, the same module object is shares, so it affects the module as long as it's imported the same way.
It's possible to have the same module in sys.modules under two or more entries if it is imported differently.
Is Python's monkey patching local to the current module?