[Python-ideas] Make Python code read-only
dw+python-ideas at hmmz.org
dw+python-ideas at hmmz.org
Tue May 20 19:22:42 CEST 2014
On Tue, May 20, 2014 at 06:57:53PM +0200, Victor Stinner wrote:
> * With read-only code, monkey-patching cannot be used anymore. It's
> annoying to run tests. An obvious solution is to disable read-only
> mode to run tests, which can be seen as unsafe since tests are usually
> used to trust the code.
At least for me, this represents a material change to the philosophy of
the language. While frowned upon, monkey patching is extremely useful
while debugging, and occasionally in emergencies. :)
Definitely not worth it for a few extra % IMHO
David
More information about the Python-ideas
mailing list