[Python-3000] turtle.Screen- how to implement best a Singleton

2008-08-18 Thread Gregor Lingl
Hi, this posting - concerning the new turtle module - goes to the Python-Dev and Python-3000 lists and to a couple of 'power users' of turtle graphics, hoping to recieve feedback from the developer's point of view as well as from the user's point of view. Currently the implementations of the

Re: [Python-3000] turtle.Screen- how to implement best a Singleton

2008-08-18 Thread Gregor Lingl
Thanks for the feedback, Gregor Vern Ceder schrieb: Gregor, I don't feel authoritative on the correctness/appropriateness of the implementation, but I do agree completely that behavior b, or what you have in the 3.0 version, is vastly preferable. Cheers, Vern Gregor Lingl wrote: Hi, this

[Python-3000] XML as bytes or unicode?

2008-08-18 Thread Antoine Pitrou
I took a look at test_sax and it seems sax.parser expects all (XML) input as unicode rather than bytes. Apparently ElementTree does the same. Is there any rationale for this decision? cheers Antoine. ___ Python-3000 mailing list Python-3000@python.or

Re: [Python-3000] XML as bytes or unicode?

2008-08-18 Thread Benjamin Peterson
On Mon, Aug 18, 2008 at 11:33 AM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > I took a look at test_sax and it seems sax.parser expects all (XML) input as > unicode rather than bytes. Apparently ElementTree does the same. Is there any > rationale for this decision? Well, unless the parser decode

Re: [Python-3000] XML as bytes or unicode?

2008-08-18 Thread Antoine Pitrou
Benjamin Peterson gmail.com> writes: > > Well, unless the parser decodes explicitly, I believe this should be true. XML documents have an encoding declaration... the parser's should be able to handle it, no? Actually, I've just checked and ElementTree does support bytes input, including with no

Re: [Python-3000] XML as bytes or unicode?

2008-08-18 Thread Brett Cannon
On Mon, Aug 18, 2008 at 9:54 AM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > Benjamin Peterson gmail.com> writes: >> >> Well, unless the parser decodes explicitly, I believe this should be true. > > XML documents have an encoding declaration... the parser's should be able to > handle it, no? > We

Re: [Python-3000] XML as bytes or unicode?

2008-08-18 Thread Stefan Behnel
Antoine Pitrou wrote: > I took a look at test_sax and it seems sax.parser expects all (XML) input as > unicode rather than bytes. Apparently ElementTree does the same. Is there any > rationale for this decision? There can't be. Serialised XML is about bytes, not characters. Taking lxml as a refer

Re: [Python-3000] turtle.Screen- how to implement best a Singleton

2008-08-18 Thread Terry Reedy
I, for my part, prefer the latter solution (b). Example: a student, having (interactively) produced some design using some turtle t = Turtle() decides spontaneously to change backgroundcolor. s = Screen(); s.bgcolor("pink") should do this for her - My perhaps naive view is that students shou

Re: [Python-3000] [Python-Dev] parse_qs and parse_qsl functions

2008-08-18 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 16, 2008, at 12:52 PM, Brett Cannon wrote: >On Sat, Aug 16, 2008 at 7:04 AM, Facundo Batista ><[EMAIL PROTECTED]> wrote: >> Hi! >> >> The issue 600362 has two patches (one for 2.6 and the other for 3.0) >> that are ready to commit (with a small

[Python-3000] Beta 3 planned for this Wednesday

2008-08-18 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello everyone, I am going to try to release the last planned beta of 2.6 and 3.0 this Wednesday. Looking at the stable buildbots and showstopper bugs indicates some work to do between now and then. Here are the showstoppers, along with my recommend