>>>>> "JH" == Jeremy Hylton <jeremy@zope.com> writes: JH> On many occasions I have externally patched a module's JH> namespace for debugging. It's been really convenient to JH> replace some function with a wrapper that does some logging or JH> updates a table tracking currently used resources. I've done JH> the same with builtin open/file. As you noted, it seems less JH> useful to override other builtins for this purpose. I've done the same, and when I've needed, it's been incredibly handy. Rare, but useful. Then again, I've also only done this with open(), so maybe something like an open() hook would suffice. I can imagine some of the other built-ins /might/ be useful to debuggingly replace, but that's just speculation on my part, and may be yagni. -Barry
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4