Message7723

Author amak
Recipients amak, fwierzbicki, pjenvey, ssteiner
Date 2013-02-20.08:58:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361350733.63.0.0976762553646.issue1552@psf.upfronthosting.co.za>
In-reply-to
Content
This issue is about 'import'ing site into all embedded interpreters, by default, which does not happen right now, and should.

Back when the issue was reported, I put special coding into modjy to handle this.

http://hg.python.org/jython/rev/933c4138dad6

Now that we're changing major versions (2.5 to 2.7 is major), it's time to put that right, and remove that support from modjy and push it down into PySystemState.

Question is, how do we enable the user to switch it off, akin to the "-S" command line option?

I think we need a new registry property for this, the default value of which causes loading of site.py.

Possibilities include

A: "python.site", a brand new property, which defaults to "true".
B: "python.options.site", a brand new property, which defaults to "true".


I will undertake the relevant work.

When this is complete, this is a fairly major change that will affect all users who embed jython, a very substantial part of our user base, I believe.

So we'll have to get our messaging right on this.
History
Date User Action Args
2013-02-20 08:58:53amaksetmessageid: <1361350733.63.0.0976762553646.issue1552@psf.upfronthosting.co.za>
2013-02-20 08:58:53amaksetrecipients: + amak, fwierzbicki, pjenvey, ssteiner
2013-02-20 08:58:53amaklinkissue1552 messages
2013-02-20 08:58:53amakcreate