Message11123

Author stefan.richthofer
Recipients darjus, jeff.allen, stefan.richthofer, zyasoft
Date 2017-02-24.11:52:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487937156.72.0.0701138899751.issue2557@psf.upfronthosting.co.za>
In-reply-to
Content
I am currently implementing a way that will give us fine-grained control of how Jython displays os.name and sys.platform to certain modules.
Actually to certain classes and even certain methods as well.
Opening this issue to keep track of that development and to collect ideas for tagets.

It is based on an idea from JyNI, which we also discussed in #2521.

However it seems that implementing the PyShadowString idea as mentioned in #2521 would break to much code (I did some experiments).
So I added more control by allowing to add 'targets' to PyShadowString. PyShadowString will then only apply its fake-__eq__ implementation if a target is in the traceback. A target can be any regex-String and can be registered with scope on class or scope on method.

This will get clearer once I can come up with an actual implementation. Stay tuned...
History
Date User Action Args
2017-02-24 11:52:36stefan.richthofersetrecipients: + stefan.richthofer, zyasoft, jeff.allen, darjus
2017-02-24 11:52:36stefan.richthofersetmessageid: <1487937156.72.0.0701138899751.issue2557@psf.upfronthosting.co.za>
2017-02-24 11:52:36stefan.richthoferlinkissue2557 messages
2017-02-24 11:52:35stefan.richthofercreate