A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-July/121045.html below:

[Python-Dev] Use function names instead of functions for os.supports_dir_fd?

[Python-Dev] Use function names instead of functions for os.supports_dir_fd? [Python-Dev] Use function names instead of functions for os.supports_dir_fd?Antoine Pitrou solipsis at pitrou.net
Thu Jul 19 20:48:21 CEST 2012
On Wed, 18 Jul 2012 02:26:14 +0200
Victor Stinner <victor.stinner at gmail.com> wrote:

> >> Monkey patching is a common practice in Python. test_os.py replaces
> >> os.exec*() functions temporary for example.
> >
> > Perhaps for testing, but I don't think monkey-patching is common in
> > production code. Perhaps you are thinking of Ruby :)
> 
> The gevent library does monkey-patch os.fork (and time.sleep and many
> other functions), but gevent is maybe not ready for production? :-)

Extensive monkey-patching of core OS functions would certainly make me
weary of using such a third-party library, even if it claims to be
"serious".

Regards

Antoine.


-- 
Software development and contracting: http://pro.pitrou.net


More information about the Python-Dev mailing list

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