Settings

Theme

Ask HN: Is function patching in Python acceptable for a library to do?

3 points by roh26it a year ago · 2 comments

Reader

patrakov a year ago

Yes, if this is documented and not done by default. Example: https://www.gevent.org/api/gevent.monkey.html

  • brodouevencode a year ago

    Implementing like gevent did is also preferable, where you can patch some or all as arguments to the patch call.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection