Re: [Python-Dev] XML codec?

2007-11-10 Thread Martin v. Löwis
> > 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 pass a string, and it either re

Re: [Python-Dev] XML codec?

2007-11-10 Thread Martin v. Löwis
> A non-seekable stream is not all that uncommon in network processing. Right. But what is the relationship to XML encoding autodetection? Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-

Re: [Python-Dev] XML codec?

2007-11-10 Thread Walter Dörwald
"Martin v. Löwis" sagte: >>> So what if the unicode string doesn't start with an XML declaration? >>> Will it add one? >> >> No. > > Ok. So the XML document would be ill-formed then unless the encoding is > UTF-8, right? I don't know. Is an XML document ill-formed if it doesn't contain an XML d

Re: [Python-Dev] XML codec?

2007-11-10 Thread Walter Dörwald
"Martin v. Löwis" sagte: >> And what do you do once you've detected the encoding? You decode the >> input, so why not combine both into an XML decoder? > > Because it is the XML parser that does the decoding, not the > application. Also, it is better to provide functionality in > a modular manner

[Python-Dev] Summary of Tracker Issues

2007-11-10 Thread Tracker
ACTIVITY SUMMARY (11/03/07 - 11/10/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. 1322 open (+21) / 11579 closed (+18) / 12901 total (+39) Open issues with patches: 419 Average durati

Re: [Python-Dev] Declaring setters with getters

2007-11-10 Thread Guido van Rossum
Unless I get negative feedback really soon I plan to submit this later today. I've tweaked the patch slightly to be smarter about replacing the setter and the deleter together if they are the same object. On Nov 9, 2007 10:03 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > D'oh. I forgot to poin

Re: [Python-Dev] Declaring setters with getters

2007-11-10 Thread Steven Bethard
On Nov 10, 2007 11:31 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > Unless I get negative feedback really soon I plan to submit this later > today. I've tweaked the patch slightly to be smarter about replacing > the setter and the deleter together if they are the same object. Definitely +1 on

Re: [Python-Dev] Declaring setters with getters

2007-11-10 Thread Guido van Rossum
On Nov 10, 2007 11:09 AM, Steven Bethard <[EMAIL PROTECTED]> wrote: > On Nov 10, 2007 11:31 AM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Unless I get negative feedback really soon I plan to submit this later > > today. I've tweaked the patch slightly to be smarter about replacing > > the set

Re: [Python-Dev] Declaring setters with getters

2007-11-10 Thread Christian Heimes
Guido van Rossum wrote: > Which is sometimes convenient. But thinking about this some more I > think that if I *wanted* to use the same method as setter and deleter, > I could just write > > @foo.setter > @foo.deleter > def foo(self, value=None): ... > > So I'm withdrawing the hacks, making the c

Re: [Python-Dev] Declaring setters with getters

2007-11-10 Thread Guido van Rossum
On Nov 10, 2007 1:43 PM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Good work Guido! With sich a ringing endorsement, I've submitted this to the 2.6 trunk and the py3k branch. -- --Guido van Rossum (home page: http://www.python.org/~guido/) ___ Pyth

Re: [Python-Dev] Bug tracker: meaning of resolution keywords

2007-11-10 Thread Brett Cannon
On Nov 9, 2007 9:05 AM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Hello! > > Guido has granted me committer privileges to svn.python.org and > bugs.python.org about a week ago. So I'm new and new people tend to make > mistakes until they've learned the specific rules of a project. > > Today I'v

Re: [Python-Dev] Bug tracker: meaning of resolution keywords

2007-11-10 Thread Facundo Batista
2007/11/9, Christian Heimes <[EMAIL PROTECTED]>: > Guido has granted me committer privileges to svn.python.org and > bugs.python.org about a week ago. So I'm new and new people tend to make > mistakes until they've learned the specific rules of a project. Yes, I saw the change in developers.txt.