Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Ask HN: Is function patching in Python acceptable for a library to do?
3 points
by
roh26it
on Aug 23, 2024
|
hide
|
past
|
favorite
|
2 comments
patrakov
on Aug 23, 2024
[–]
Yes, if this is documented and not done by default. Example:
https://www.gevent.org/api/gevent.monkey.html
brodouevencode
on Aug 23, 2024
|
parent
[–]
Implementing like gevent did is also preferable, where you can patch some or all as arguments to the patch call.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: