Re: [Python-Dev] Supporting raw bytes data in urllib.parse.* (was Re: Polymorphic best practices)

2010-09-19 Thread Glyph Lefkowitz
On Sep 18, 2010, at 10:18 PM, Steve Holden wrote: >> I could probably be persuaded to merge the APIs, but the email6 >> precedent suggests to me that separating the APIs better reflects the >> mental model we're trying to encourage in programmers manipulating >> text (i.e. the difference between t

Re: [Python-Dev] Some news from my sandbox project

2010-09-19 Thread Greg Ewing
Victor Stinner wrote: By "program" you mean a "process"? No, I mean whatever *you* meant by "program" when you said that different programs could otherwise interfere with each other. If you have conceptually separate programs running in the same interpreter that need to be isolated, each one s

Re: [Python-Dev] Rework nntplib?

2010-09-19 Thread R. David Murray
On Mon, 20 Sep 2010 06:55:50 +1000, Nick Coghlan wrote: > On Mon, Sep 20, 2010 at 3:27 AM, Antoine Pitrou wrote: > > > > For the record, the code is pretty much done now: > > http://bugs.python.org/issue9360 > > Generally looks pretty reasonable. As I noted on the issue, my one > concern is that

Re: [Python-Dev] Rework nntplib?

2010-09-19 Thread Nick Coghlan
On Mon, Sep 20, 2010 at 3:27 AM, Antoine Pitrou wrote: > > For the record, the code is pretty much done now: > http://bugs.python.org/issue9360 Generally looks pretty reasonable. As I noted on the issue, my one concern is that the current API seems to rely on the programmer remembering which meth

Re: [Python-Dev] Rework nntplib?

2010-09-19 Thread Antoine Pitrou
For the record, the code is pretty much done now: http://bugs.python.org/issue9360 Regards Antoine. On Tue, 14 Sep 2010 12:17:44 +0200 Antoine Pitrou wrote: > > Hello, > > Like the email package, nntplib in py3k is broken (because of > various bytes/str mismatches; I suppose the lack of a t

Re: [Python-Dev] Some news from my sandbox project

2010-09-19 Thread Antoine Pitrou
On Sun, 19 Sep 2010 12:19:44 +0200 Victor Stinner wrote: > Le dimanche 19 septembre 2010 01:05:45, Greg Ewing a écrit : > > I don't follow. Trusted functions such as proxy() shouldn't > > be sharing a __builtins__ dict with sandboxed code. > > (...) > > So give each program its own copy of __built

Re: [Python-Dev] Some news from my sandbox project

2010-09-19 Thread Victor Stinner
Le dimanche 19 septembre 2010 01:05:45, Greg Ewing a écrit : > I don't follow. Trusted functions such as proxy() shouldn't > be sharing a __builtins__ dict with sandboxed code. > (...) > So give each program its own copy of __builtins__. By "program" you mean a "process"? proxy() and untrusted fun