Message9192

Author jeff.allen
Recipients Dolda2000, fwierzbicki, jeff.allen, zyasoft
Date 2014-11-08.12:30:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1415449849.82.0.521399236494.issue2037@psf.upfronthosting.co.za>
In-reply-to
Content
It's easy to add a check, which I'll do as a first step in the constructor(s).

The cost of doing this check grates a little.

When one steps through the example, a notable feature is that the construction happens twice, once by calling __str__(), which wraps the result of toString() in a PyString, and once by shelling that PyString to wrap its implementation string again. A simple fix ends up checking the String a second time. And it's not the only place where we shill check strings that we can tell are clean a priori. I'll look for ways to avoid that where it might be frequent, as a second step.

I note this is tagged 2.5. I'll fix in the tip. Do we intend to back-port it?
History
Date User Action Args
2014-11-08 12:30:49jeff.allensetmessageid: <1415449849.82.0.521399236494.issue2037@psf.upfronthosting.co.za>
2014-11-08 12:30:49jeff.allensetrecipients: + jeff.allen, fwierzbicki, zyasoft, Dolda2000
2014-11-08 12:30:49jeff.allenlinkissue2037 messages
2014-11-08 12:30:48jeff.allencreate