The Python Oracle

Can you monkey patch methods on core types in Python?

This video explains
Can you monkey patch methods on core types in Python?

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Romantic Lands Beckon

--

Chapters
00:00 Question
01:22 Accepted answer (Score 46)
02:36 Answer 2 (Score 80)
03:24 Answer 3 (Score 32)
04:09 Answer 4 (Score 31)
04:28 Thank you

--

Full question
https://stackoverflow.com/questions/1926...

Question links:
[Rspec]: http://rspec.info/

Accepted answer links:
[several slightly different definitions]: http://wikipedia.org/wiki/Monkey_patch

Answer 2 links:
[C API]: https://docs.python.org/3/c-api/init.htm...
[some effort]: https://www.python.org/dev/peps/pep-0554/

Answer 3 links:
[http://clarete.github.io/forbiddenfruit/...]: http://clarete.github.io/forbiddenfruit/...
[https://pypi.python.org/pypi/forbiddenfr...]: https://pypi.python.org/pypi/forbiddenfr...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #programminglanguages #monkeypatching #fluentinterface

#avk47