Re: [Python-Dev] XML codec?

2007-11-12 Thread Andrew McNamara
>On Nov 12, 2007, at 8:16 AM, M.-A. Lemburg wrote: >> We have a -1 from Martin and a +1 from Walter, Guido and myself. >> Pretty clear vote if you ask me. I'd say we end the discussion here >> and move on. > >If we're counting, you've got a -1 on the codec from me as well. >Martin's right: there

[Python-Dev] Fwd: volunteers for a test

2007-11-12 Thread Guido van Rossum
Please indulge this off-topic post. I know there are a lot of Python developers here whose mother tongue is not English; would those folks mind participating in the experiment below? --Guido -- Forwarded message -- From: Jose Oriol Lopez Berengueres <[EMAIL PROTECTED]> Date: Nov 1

Re: [Python-Dev] Proposal for new 2to23 tool

2007-11-12 Thread Guido van Rossum
On Nov 11, 2007 7:24 PM, Jan Claeys <[EMAIL PROTECTED]> wrote: > Graham wants to convert his code such that it works on both Python 2.x > (probably even early versions of it?) & Python 3.x. Not 2 instances of > code, but one source that works on both 2.x and 3.x... The transition strategy for 3.0

Re: [Python-Dev] Proposal for new 2to23 tool

2007-11-12 Thread Steve Holden
Collin Winter wrote: > On Nov 12, 2007 12:50 AM, Graham Horler <[EMAIL PROTECTED]> wrote: >> On 12 Nov 2007, 03:24:34, Jan Claeys wrote: >>> Op zondag 11-11-2007 om 17:19 uur [tijdzone -0800], schreef Brett >>> Cannon: On Nov 11, 2007 4:00 PM, Graham Horler <[EMAIL PROTECTED]> wrote: > I h

Re: [Python-Dev] Proposal for new 2to23 tool

2007-11-12 Thread Collin Winter
On Nov 12, 2007 12:50 AM, Graham Horler <[EMAIL PROTECTED]> wrote: > On 12 Nov 2007, 03:24:34, Jan Claeys wrote: > > > > Op zondag 11-11-2007 om 17:19 uur [tijdzone -0800], schreef Brett > > Cannon: > > > On Nov 11, 2007 4:00 PM, Graham Horler <[EMAIL PROTECTED]> wrote: > > > > I have been developi

Re: [Python-Dev] Proposal for new 2to23 tool

2007-11-12 Thread Brett Cannon
On Nov 12, 2007 12:50 AM, Graham Horler <[EMAIL PROTECTED]> wrote: > On 12 Nov 2007, 03:24:34, Jan Claeys wrote: > > > > Op zondag 11-11-2007 om 17:19 uur [tijdzone -0800], schreef Brett > > Cannon: > > > On Nov 11, 2007 4:00 PM, Graham Horler <[EMAIL PROTECTED]> wrote: > > > > I have been developi

[Python-Dev] Summary of Tracker Issues

2007-11-12 Thread Tracker
ACTIVITY SUMMARY (11/05/07 - 11/12/07) Tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 1321 open (+17) / 11592 closed (+21) / 12913 total (+38) Open issues with patches: 418 Average durati

Re: [Python-Dev] XML codec?

2007-11-12 Thread Fred Drake
On Nov 12, 2007, at 10:54 AM, Bill Janssen wrote: > In os.path? os.path.encoding(location)? I wasn't thinking it would be that general; determining the encoding for an arbitrary text file is a larger problem than it is for an XML file. An implementation based strictly on the rules from the

Re: [Python-Dev] XML codec?

2007-11-12 Thread Bill Janssen
> Simply, it's sometimes desired to know the encoding for purposes that > don't require immediate decoding. A function would be quite handy > in these cases. In os.path? os.path.encoding(location)? Bill ___ Python-Dev mailing list Python-Dev@python.o

Re: [Python-Dev] XML codec?

2007-11-12 Thread Fred Drake
On Nov 12, 2007, at 8:56 AM, Walter Dörwald wrote: > It isn't "embedded". codecs.detect_xml_encoding() is callable without > any problems (though not documented). "Not documented" means not available, I think. > Who would use such a function for what? Being able to detect the encoding can be use

Re: [Python-Dev] XML codec?

2007-11-12 Thread Walter Dörwald
Fred Drake wrote: > On Nov 12, 2007, at 8:16 AM, M.-A. Lemburg wrote: >> We have a -1 from Martin and a +1 from Walter, Guido and myself. >> Pretty clear vote if you ask me. I'd say we end the discussion here >> and move on. > > If we're counting, you've got a -1 on the codec from me as well.

Re: [Python-Dev] XML codec?

2007-11-12 Thread Fred Drake
On Nov 12, 2007, at 8:16 AM, M.-A. Lemburg wrote: > We have a -1 from Martin and a +1 from Walter, Guido and myself. > Pretty clear vote if you ask me. I'd say we end the discussion here > and move on. If we're counting, you've got a -1 on the codec from me as well. Martin's right: there's no v

Re: [Python-Dev] XML codec?

2007-11-12 Thread M.-A. Lemburg
On 2007-11-11 23:22, Martin v. Löwis wrote: First, XML-RPC is not the only mechanism using XML over a network connection. Second, you don't want to do this if you're dealing with several 100 MB of data just because you want to figure out the encoding. >>> That's my original clai

Re: [Python-Dev] XML codec?

2007-11-12 Thread Walter Dörwald
Martin v. Löwis wrote: >> > In case it isn't clear - this is exactly my view also. >> >> But is there an API to do it? As MAL points out that API would have >> to return not an encoding, but a pair of an encoding and the rewound >> stream. > > The API wouldn't operate on streams. Instead, you

Re: [Python-Dev] XML codec?

2007-11-12 Thread Walter Dörwald
Martin v. Löwis wrote: >> I don't know. Is an XML document ill-formed if it doesn't contain an >> XML declaration, is not in UTF-8 or UTF-8, but there's external >> encoding info? > > If there is external encoding info, matching the actual encoding, > it would be well-formed. Of course, preserving

Re: [Python-Dev] Proposal for new 2to23 tool

2007-11-12 Thread Graham Horler
On 12 Nov 2007, 03:24:34, Jan Claeys wrote: > > Op zondag 11-11-2007 om 17:19 uur [tijdzone -0800], schreef Brett > Cannon: > > On Nov 11, 2007 4:00 PM, Graham Horler <[EMAIL PROTECTED]> wrote: > > > I have been developing in Python since 1.5, and now have to support 2.1 > > > as a minimum version