[Python-ideas] Extend module objects to support properties
Eric Snow
ericsnowcurrently at gmail.com
Tue Feb 5 00:57:05 CET 2013
On Thu, Jan 31, 2013 at 5:50 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On Fri, Feb 1, 2013 at 5:56 AM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
>> ... or making sys an
>> instance of another type, as someone suggested.
>
> sys is already special cased so heavily in the interpreter
> initialization, making it a little more special really wouldn't bother
> me much :)
One benefit of this is that sys.modules could be made a [carefully
done] property that wraps interp->modules, making sys.modules truly
replaceable, which would simplify a number of different places where
we've had to work around it.
-eric
More information about the Python-ideas
mailing list