How to extend/patch an existing module or package?
- by nat
I want to extend some locale-specific features of a python application named OpenERP. All I need is implementing a third party module.function that would be called every time OpenERP calls locale.setlocale() function without changing neither OpenERP nor locale module source code.
The only way I can imagine is provide a module named locale.py inside main application package dir, but It seems that is an unpythonic workaround.