[Python-ideas] Making Python more enterprise technology
Dj Gilcrease
digitalxero at gmail.com
Mon May 10 16:29:20 CEST 2010
On Mon, May 10, 2010 at 10:04 AM, Jim Jewett <jimjjewett at gmail.com> wrote:
> The real concern is that running code can, for example, change the
> value of sys.stdout, and other programs will see that newly modified
> value.
No, no they wouldn't. It is not possible to run multiple python apps
in a single process, unless you write your own process that is
importing all these apps and running them in some way.
>
> And, again, the fact that they wouldn't normally be running in the
> same process anyhow doesn't seem to be sufficient answer. In some
> ways, this is just a FUD argument, but ... monkeypatching really *is*
> a pain for various audits and separations of authority. A variant to
> the python module type that prevents monkeypatching (and using that
> variant for the builtin libraries) might make some difference.
Monkeypatching only ever affects your application instance since other
applications are in other python processes there is no overlap or code
contamination.
More information about the Python-ideas
mailing list