Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread Stephen J. Turnbull
R. David Murray writes: > I'm sorry, but I have to disagree. As a relative unicode ignoramus, > "UCS-2" and "UCS-4" convey almost no information to me, and the bits I > have heard about them on this list have only confused me. OK, point taken. > On the other hand, I understand that 'narrow'

[Python-Dev] is this a bug? no environment variables

2010-11-21 Thread Glenn Linderman
In reviewing my notes from my experimentations with CGIHTTPServer (Python2.6) and then http.server (Python 3.2a4), I note one behavior I haven't reported as a bug, nor do I know where to start to figure it out, other than experimentally. The experiment: launching CGIHTTPServer without environm

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread Stephen J. Turnbull
"Martin v. Löwis" writes: > Chapter and verse? Unicode 5.0, Chapter 3, verse C9: When a process generates a code unit sequence which purports to be in a Unicode character encoding form, it shall not emit ill-formed code sequences. I think anything called "UTF-8 something" is likely

Re: [Python-Dev] Bug week-end on the 20th-21st?

2010-11-21 Thread Brian Curtin
On Mon, Oct 25, 2010 at 15:04, Antoine Pitrou wrote: > On Mon, 25 Oct 2010 11:32:42 -0400 > "R. David Murray" wrote: > > On Mon, 25 Oct 2010 12:22:24 -0200, Rodrigo Bernardo Pimentel < > r...@isnomore.net> wrote: > > >> Am 23.10.2010 19:08, schrieb Antoine Pitrou: > > >>> The first 3.2 beta is s

Re: [Python-Dev] Web servers, bytes, str, documentation, Python 3.2a4

2010-11-21 Thread R. David Murray
On Sun, 21 Nov 2010 19:59:54 -0800, Glenn Linderman wrote: > On 11/21/2010 9:18 AM, R. David Murray wrote: > > I want to look at the CGI issue, but I'm not sure when I'll get to it. > > Actually, since this code was working before 3.x, and if email.parser > can now accept binary streams, it see

Re: [Python-Dev] Web servers, bytes, str, documentation, Python 3.2a4

2010-11-21 Thread Glenn Linderman
On 11/21/2010 9:18 AM, R. David Murray wrote: I want to look at the CGI issue, but I'm not sure when I'll get to it. Actually, since this code was working before 3.x, and if email.parser can now accept binary streams, it seems like maybe the only thing that might be wrong is that presently it

Re: [Python-Dev] [Python-checkins] r86633 - in python/branches/py3k: Doc/library/inspect.rst Doc/whatsnew/3.2.rst Lib/inspect.py Lib/test/test_inspect.py Misc/NEWS

2010-11-21 Thread Éric Araujo
> Author: nick.coghlan > New Revision: 86633 > > Issue #10220: Add inspect.getgeneratorstate(). Initial patch by Rodolpho > Eckhardt > > Modified: python/branches/py3k/Doc/library/inspect.rst > == > --- python/branches/p

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread Alexander Belopolsky
On Fri, Nov 19, 2010 at 4:43 PM, "Martin v. Löwis" wrote: >> In my opinion, the question is more what was it not fixed in Python2. I >> suppose >> that the answer is something ugly like "backward compatibility" or >> "historical >> reasons" :-) > > No, there was a deliberate decision to not supp

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread R. David Murray
On Sun, 21 Nov 2010 10:17:57 -0800, Raymond Hettinger wrote: > On Nov 21, 2010, at 9:38 AM, R. David Murray wrote: > > I'm sorry, but I have to disagree. As a relative unicode ignoramus, > > "UCS-2" and "UCS-4" convey almost no information to me, and the bits I > > have heard about them on this

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread Martin v. Löwis
> > I disagree. Python does "conform" to "UTF-16" > > I'm sure the codecs do. But the Unicode standard doesn't care about > the parts of the process, it cares about what it does as a whole. Chapter and verse? > Python's internal coding does not conform to UTF-16, and that internal > coding can

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread Raymond Hettinger
On Nov 21, 2010, at 9:38 AM, R. David Murray wrote: > > I'm sorry, but I have to disagree. As a relative unicode ignoramus, > "UCS-2" and "UCS-4" convey almost no information to me, and the bits I > have heard about them on this list have only confused me. >From the users point of view, it doe

Re: [Python-Dev] Mercurial Schedule

2010-11-21 Thread Georg Brandl
Am 21.11.2010 18:27, schrieb Jesus Cea: > What is the impact in the buildbot architecture?. Slaves must do > anything?. At least they need to have mercurial installed, I guess. > > What, as a buildslave manager, must I do to ready my server for the > migration?. Apart from having Mercurial instal

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread R. David Murray
On Sun, 21 Nov 2010 21:55:12 +0900, "Stephen J. Turnbull" wrote: > "Martin v. Löwis" writes: > > Am 20.11.2010 05:11, schrieb Stephen J. Turnbull: > > > "Martin v. Löwis" writes: > > > > > > > The term "UCS-2" is a character set that can encode only encode 65536 > > > > characters; it th

Re: [Python-Dev] Mercurial Schedule

2010-11-21 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What is the impact in the buildbot architecture?. Slaves must do anything?. At least they need to have mercurial installed, I guess. What, as a buildslave manager, must I do to ready my server for the migration?. - -- Jesus Cea Avion

Re: [Python-Dev] Web servers, bytes, str, documentation, Python 3.2a4

2010-11-21 Thread R. David Murray
On Sat, 20 Nov 2010 23:52:45 -0800, Glenn Linderman wrote: > Sadly, cgi.py input handling seems to depend on the email module, > thought to be fixed for 3.2, but it is not clear if that has been > achieved, or if the surrogate encode workaround is sufficient for this. > More testing needed, b

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread Stephen J. Turnbull
"Martin v. Löwis" writes: > Am 20.11.2010 05:11, schrieb Stephen J. Turnbull: > > "Martin v. Löwis" writes: > > > > > The term "UCS-2" is a character set that can encode only encode 65536 > > > characters; it thus refers to Unicode 1.1. According to the Unicode > > > Consortium's FAQ, the