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

2010-11-20 Thread Martin v. Löwis
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 term UCS-2 should be avoided these days. >

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

2010-11-20 Thread Éric Araujo
Hello > cgitb.enable(0,"d:\temp") Isn’t that expanded to “d:emp”? ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive

Re: [Python-Dev] [Python-checkins] pymigr: Build identification patch is updated, but only for Unix.

2010-11-20 Thread Nick Coghlan
On Sat, Nov 20, 2010 at 6:02 PM, georg.brandl wrote: > georg.brandl pushed abd0dc1328ce to pymigr: > > http://hg.python.org/pymigr/rev/abd0dc1328ce > changeset:   70:abd0dc1328ce > tag:         tip > user:        Georg Brandl > date:        Sat Nov 20 09:01:03 2010 +0100 > summary:     Build iden

Re: [Python-Dev] Mercurial Schedule

2010-11-20 Thread Nick Coghlan
On Sat, Nov 20, 2010 at 2:51 AM, Georg Brandl wrote: > I'm at it.  In fact, I think I will merge both todo.txt and tasks.txt > into the PEP.  It's not more of a burden to update it there, and it's > more visible to the developer community. The latest checkin was definitely an improvement (especia

Re: [Python-Dev] [Python-checkins] r86566 - in python/branches/py3k: Doc/glossary.rst Doc/library/inspect.rst Lib/inspect.py Lib/test/test_inspect.py Misc/NEWS Misc/python-wing4.wpr

2010-11-20 Thread Nick Coghlan
On Sun, Nov 21, 2010 at 1:07 AM, michael.foord wrote: > +Fetching attributes statically > +-- > + > +Both :func:`getattr` and :func:`hasattr` can trigger code execution when > +fetching or checking for the existence of attributes. Descriptors, like > +properties, will b

Re: [Python-Dev] [Python-checkins] r86566 - in python/branches/py3k: Doc/glossary.rst Doc/library/inspect.rst Lib/inspect.py Lib/test/test_inspect.py Misc/NEWS Misc/python-wing4.wpr

2010-11-20 Thread Michael Foord
On 20/11/2010 15:21, Nick Coghlan wrote: On Sun, Nov 21, 2010 at 1:07 AM, michael.foord wrote: +Fetching attributes statically +-- + +Both :func:`getattr` and :func:`hasattr` can trigger code execution when +fetching or checking for the existence of attributes. Desc

Re: [Python-Dev] r86570 - in python/branches/py3k: Lib/unittest/case.py Lib/unittest/test/test_case.py Misc/NEWS

2010-11-20 Thread Antoine Pitrou
On Sat, 20 Nov 2010 16:34:26 +0100 (CET) michael.foord wrote: > + > +def testPickle(self): > +# Issue 10326 > + > +# Can't use TestCase classes defined in Test class as > +# pickle does not work with inner classes > +test = unittest.TestCase('run') > +fo

Re: [Python-Dev] r86570 - in python/branches/py3k: Lib/unittest/case.py Lib/unittest/test/test_case.py Misc/NEWS

2010-11-20 Thread Michael Foord
On 20/11/2010 15:42, Antoine Pitrou wrote: On Sat, 20 Nov 2010 16:34:26 +0100 (CET) michael.foord wrote: + +def testPickle(self): +# Issue 10326 + +# Can't use TestCase classes defined in Test class as +# pickle does not work with inner classes +test = unitte

Re: [Python-Dev] r86570 - in python/branches/py3k: Lib/unittest/case.py Lib/unittest/test/test_case.py Misc/NEWS

2010-11-20 Thread Antoine Pitrou
Le samedi 20 novembre 2010 à 15:48 +, Michael Foord a écrit : > On 20/11/2010 15:42, Antoine Pitrou wrote: > > On Sat, 20 Nov 2010 16:34:26 +0100 (CET) > > michael.foord wrote: > >> + > >> +def testPickle(self): > >> +# Issue 10326 > >> + > >> +# Can't use TestCase classes

Re: [Python-Dev] [Python-checkins] r86566 - in python/branches/py3k: Doc/glossary.rst Doc/library/inspect.rst Lib/inspect.py Lib/test/test_inspect.py Misc/NEWS Misc/python-wing4.wpr

2010-11-20 Thread Michael Foord
On 20/11/2010 16:01, Nick Coghlan wrote: On Sun, Nov 21, 2010 at 1:29 AM, Michael Foord wrote: Can you give an example of code in a metaclass that may be executed by getattr_static? It's not that I don't believe you I just can't think of an example. Looking up the class and the mro are the onl

Re: [Python-Dev] r86570 - in python/branches/py3k: Lib/unittest/case.py Lib/unittest/test/test_case.py Misc/NEWS

2010-11-20 Thread Michael Foord
On 20/11/2010 15:59, Antoine Pitrou wrote: Le samedi 20 novembre 2010 à 15:48 +, Michael Foord a écrit : On 20/11/2010 15:42, Antoine Pitrou wrote: On Sat, 20 Nov 2010 16:34:26 +0100 (CET) michael.foord wrote: + +def testPickle(self): +# Issue 10326 + +# Can't use Tes

Re: [Python-Dev] [Python-checkins] r86566 - in python/branches/py3k: Doc/glossary.rst Doc/library/inspect.rst Lib/inspect.py Lib/test/test_inspect.py Misc/NEWS Misc/python-wing4.wpr

2010-11-20 Thread Nick Coghlan
On Sun, Nov 21, 2010 at 1:29 AM, Michael Foord wrote: > Can you give an example of code in a metaclass that may be executed by > getattr_static? It's not that I don't believe you I just can't think of an > example. Looking up the class and the mro are the only two examples I can > think of (klass.

Re: [Python-Dev] [Python-checkins] r86566 - in python/branches/py3k: Doc/glossary.rst Doc/library/inspect.rst Lib/inspect.py Lib/test/test_inspect.py Misc/NEWS Misc/python-wing4.wpr

2010-11-20 Thread Michael Foord
On 20/11/2010 16:06, Michael Foord wrote: On 20/11/2010 16:01, Nick Coghlan wrote: [snip...] The retrieval of __class__ is a normal lookup on the object, so it can trigger all of the things getattr_static is trying to avoid (unavoidable if you want to support proxy classes at all), and the looku

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

2010-11-20 Thread Glenn Linderman
On 11/20/2010 3:38 AM, Éric Araujo wrote: Hello cgitb.enable(0,"d:\temp") Isn’t that expanded to “d:emp”? Oops. Yes, that fixes the problem with creation of the temp file, thanks for catching that. I now get a complete report of the original error in the temp file (below). I am a bit

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

2010-11-20 Thread Alexander Belopolsky
On Sat, Nov 20, 2010 at 4:05 AM, "Martin v. Löwis" wrote: .. > A technical correct description would be to say that Python uses either > 16-bit code units or 32-bit code units; for brevity, these can be called > narrow and wide code units. +1 PEP 261 introduced terms "wide Py_UNICODE" and "narro

[Python-Dev] Reminder: Distutils vs Distutils2

2010-11-20 Thread Tarek Ziadé
Hello, I have seen some efforts recently to improve Distutils in the standard library, Just a quick reminder of the status of Distutils: it's frozen and is just being bug fixed at this time. The work I done last year was reverted and pushed to Distutils2. A lot of work has been done since then, a

Re: [Python-Dev] Reminder: Distutils vs Distutils2

2010-11-20 Thread Tarek Ziadé
On Sun, Nov 21, 2010 at 12:05 AM, Tarek Ziadé wrote: .. > Crazy ideas are welcome. "setup.py" is gone in d2 for instance ;) But you can still use a similar form if you want - just to mention ___ Python-Dev mailing list [email protected] http://mail.

Re: [Python-Dev] [Python-checkins] r86566 - in python/branches/py3k: Doc/glossary.rst Doc/library/inspect.rst Lib/inspect.py Lib/test/test_inspect.py Misc/NEWS Misc/python-wing4.wpr

2010-11-20 Thread Nick Coghlan
On Sun, Nov 21, 2010 at 2:06 AM, Michael Foord wrote: >> I'll see if I'm still of the same opinion after I sleep on it, but my >> first impression of the docs was that they slightly oversold the >> strength of the "doesn't execute arbitrary code" aspect of the new >> function. The existing caveats

Re: [Python-Dev] [Python-checkins] r86566 - in python/branches/py3k: Doc/glossary.rst Doc/library/inspect.rst Lib/inspect.py Lib/test/test_inspect.py Misc/NEWS Misc/python-wing4.wpr

2010-11-20 Thread Nick Coghlan
On Sun, Nov 21, 2010 at 1:07 AM, michael.foord wrote: > Author: michael.foord > Date: Sat Nov 20 16:07:30 2010 > New Revision: 86566 > > Log: > Issue 9732: addition of getattr_static to the inspect module > > Modified: >   python/branches/py3k/Doc/glossary.rst >   python/branches/py3k/Doc/library/

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

2010-11-20 Thread Glenn Linderman
On 11/20/2010 10:19 AM, Glenn Linderman wrote: Oops. Yes, that fixes the problem with creation of the temp file, thanks for catching that. I now get a complete report of the original error in the temp file (below). I am a bit less confused now... but it seems that there are still a number o