Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105305
| From | "Sven R. Kunze" <srkunze@mail.de> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: monkey patching __code__ |
| Date | 2016-03-20 17:46 +0100 |
| Message-ID | <mailman.407.1458492391.12893.python-list@python.org> (permalink) |
| References | <56EBEB5A.7050207@mail.de> <CAG93HwGKrN8y3k=3OFtHq-PbMjFzy=1U99-ZuJOLdEq69gosfg@mail.gmail.com> |
On 19.03.2016 00:58, Matt Wheeler wrote: > I know you have a working solution now with updating the code & > defaults of the function, but what about just injecting your function > into the modules that had already imported it after the > monkeypatching? > > Seems perhaps cleaner, unless you'd end up having to do it to lots of modules... Why do you consider it cleaner? Best, Sven
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: monkey patching __code__ "Sven R. Kunze" <srkunze@mail.de> - 2016-03-20 17:46 +0100
csiph-web