[Python-3000-checkins] r58768 - in python/branches/py3k-pep3137: Lib/tarfile.py Lib/test/test_codeccallbacks.py Lib/test/test_collections.py Lib/test/test_unicode.py Lib/test/test_zipimport.py Modules

2007-11-02 Thread christian.heimes
Author: christian.heimes Date: Fri Nov 2 12:05:47 2007 New Revision: 58768 Modified: python/branches/py3k-pep3137/Lib/tarfile.py python/branches/py3k-pep3137/Lib/test/test_codeccallbacks.py python/branches/py3k-pep3137/Lib/test/test_collections.py python/branches/py3k-pep3137/Lib/test

[Python-3000-checkins] r58769 - in python/branches/py3k-pep3137: Lib/dumbdbm.py Lib/test/test_exceptions.py Lib/test/test_struct.py Lib/test/test_unicodedata.py Modules/_hashopenssl.c Python/pythonrun

2007-11-02 Thread christian.heimes
Author: christian.heimes Date: Fri Nov 2 12:41:44 2007 New Revision: 58769 Modified: python/branches/py3k-pep3137/Lib/dumbdbm.py python/branches/py3k-pep3137/Lib/test/test_exceptions.py python/branches/py3k-pep3137/Lib/test/test_struct.py python/branches/py3k-pep3137/Lib/test/test_uni

[Python-3000-checkins] r58771 - python/branches/py3k-pep3137/Objects/unicodeobject.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 15:25:46 2007 New Revision: 58771 Modified: python/branches/py3k-pep3137/Objects/unicodeobject.c Log: Remove implicit str() call in "".join() argument. Modified: python/branches/py3k-pep3137/Objects/unicodeobject.c

[Python-3000-checkins] r58770 - python/branches/py3k-pep3137/Python/codecs.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 15:03:59 2007 New Revision: 58770 Modified: python/branches/py3k-pep3137/Python/codecs.c Log: Add a warning when a codec returns PyBytes instead of PyString. Modified: python/branches/py3k-pep3137/Python/codecs.c ==

[Python-3000-checkins] r58772 - python/branches/py3k-pep3137/Lib/tarfile.py

2007-11-02 Thread christian.heimes
Author: christian.heimes Date: Fri Nov 2 15:27:09 2007 New Revision: 58772 Modified: python/branches/py3k-pep3137/Lib/tarfile.py Log: Fixed encoding of tarfile.py. I've removed the iso-8859-1 encoding flag, too. Modified: python/branches/py3k-pep3137/Lib/tarfile.py ===

Re: [Python-3000-checkins] r58768 - in python/branches/py3k-pep3137: Lib/tarfile.py Lib/test/test_codeccallbacks.py Lib/test/test_collections.py Lib/test/test_unicode.py Lib/test/test_zipimport.py Mod

2007-11-02 Thread Guido van Rossum
On 11/2/07, christian.heimes wrote: > More fixes for bytes() vs. buffer() > Open question: Should UnicodeDecodeError accept bytes for self->object, too? Yes! > Modified: python/branches/py3k-pep3137/Lib/tarfile.py > == >

Re: [Python-3000-checkins] r58768 - in python/branches/py3k-pep3137: Lib/tarfile.py Lib/test/test_codeccallbacks.py Lib/test/test_collections.py Lib/test/test_unicode.py Lib/test/test_zipimport.py Mod

2007-11-02 Thread Christian Heimes
Guido van Rossum wrote: > On 11/2/07, christian.heimes wrote: >> More fixes for bytes() vs. buffer() >> Open question: Should UnicodeDecodeError accept bytes for self->object, too? > > Yes! Should it accept *only* PyString or both PyString and PyBytes? > >> Modified: python/branches/py3k-pep31

[Python-3000-checkins] r58773 - in python/branches/py3k-pep3137/Lib: encodings/idna.py encodings/punycode.py string.py test/string_tests.py test/test_xml_etree.py test/test_xml_etree_c.py

2007-11-02 Thread christian.heimes
Author: christian.heimes Date: Fri Nov 2 16:59:04 2007 New Revision: 58773 Modified: python/branches/py3k-pep3137/Lib/encodings/idna.py python/branches/py3k-pep3137/Lib/encodings/punycode.py python/branches/py3k-pep3137/Lib/string.py python/branches/py3k-pep3137/Lib/test/string_tests.

[Python-3000-checkins] r58775 - python/branches/py3k-pep3137/Python/pythonrun.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 17:24:54 2007 New Revision: 58775 Modified: python/branches/py3k-pep3137/Python/pythonrun.c Log: Re-enable assignment of the proper thing to sys.stderr; in my fury I accidentally submitted a debug change. This fixes the failure in test_sys. Modified:

[Python-3000-checkins] r58774 - python/branches/py3k/Lib/test/test_xmlrpc.py

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 17:10:06 2007 New Revision: 58774 Modified: python/branches/py3k/Lib/test/test_xmlrpc.py Log: Patch 1373 by Adam Hupp. Fixes intermittent errors in test_xmlrpc due to socket timeouts. Modified: python/branches/py3k/Lib/test/test_xmlrpc.py

[Python-3000-checkins] r58767 - python/branches/py3k-pep3137/Modules/socketmodule.c

2007-11-02 Thread christian.heimes
Author: christian.heimes Date: Fri Nov 2 11:23:32 2007 New Revision: 58767 Modified: python/branches/py3k-pep3137/Modules/socketmodule.c Log: Fixed stack dump in socketmodule Modified: python/branches/py3k-pep3137/Modules/socketmodule.c

[Python-3000-checkins] r58779 - python/branches/py3k-pep3137/Objects/bytesobject.c python/branches/py3k-pep3137/Objects/stringobject.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 18:01:32 2007 New Revision: 58779 Modified: python/branches/py3k-pep3137/Objects/bytesobject.c python/branches/py3k-pep3137/Objects/stringobject.c Log: Quickly fixed byts_join() and string_join() to be more like each other, and to accept mixed bytes/

[Python-3000-checkins] r58780 - in python/branches/py3k-pep3137: Lib/test/test_posix.py Modules/posixmodule.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 18:18:22 2007 New Revision: 58780 Modified: python/branches/py3k-pep3137/Lib/test/test_posix.py python/branches/py3k-pep3137/Modules/posixmodule.c Log: Ensure that posix.environ maps strings to strings. For now, keys and values that aren't UTF-8 are

[Python-3000-checkins] r58781 - in python/branches/py3k-pep3137/Lib: subprocess.py test/test_subprocess.py

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 19:25:47 2007 New Revision: 58781 Modified: python/branches/py3k-pep3137/Lib/subprocess.py python/branches/py3k-pep3137/Lib/test/test_subprocess.py Log: Fix the subprocess tests. Clean up some odd indentation in test_subprocess.py. Modified: python

[Python-3000-checkins] r58783 - in python/branches/py3k-pep3137: Objects/typeobject.c Python/getargs.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 20:09:47 2007 New Revision: 58783 Modified: python/branches/py3k-pep3137/Objects/typeobject.c python/branches/py3k-pep3137/Python/getargs.c Log: Tightening the screws in arg parsing: 'S' only accepts PyString. Found one (crucial) place so far where '

[Python-3000-checkins] r58786 - python/branches/py3k-pep3137/Objects/abstract.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 20:32:09 2007 New Revision: 58786 Modified: python/branches/py3k-pep3137/Objects/abstract.c Log: Clean up trailing whitespace. Add the type name to the error message from PyObject_GetBuffer(). Modified: python/branches/py3k-pep3137/Objects/abstract.c

[Python-3000-checkins] r58788 - python/branches/py3k-pep3137/Modules/_bsddb.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 20:37:59 2007 New Revision: 58788 Modified: python/branches/py3k-pep3137/Modules/_bsddb.c Log: Fix a bytes dependency in _bsddb.c. More needs to be done before it passes all its tests though... Modified: python/branches/py3k-pep3137/Modules/_bsddb.c =

[Python-3000-checkins] r58789 - python/branches/py3k-pep3137/Modules/datetimemodule.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 20:44:05 2007 New Revision: 58789 Modified: python/branches/py3k-pep3137/Modules/datetimemodule.c Log: Fix an arg parsing format string: S -> U. Modified: python/branches/py3k-pep3137/Modules/datetimemodule.c ==

[Python-3000-checkins] r58790 - python/branches/py3k-pep3137/Objects/moduleobject.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 20:46:54 2007 New Revision: 58790 Modified: python/branches/py3k-pep3137/Objects/moduleobject.c Log: Fix another arg parse S -> U format. Modified: python/branches/py3k-pep3137/Objects/moduleobject.c ===

[Python-3000-checkins] r58791 - python/branches/py3k-pep3137/Objects/codeobject.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 20:49:03 2007 New Revision: 58791 Modified: python/branches/py3k-pep3137/Objects/codeobject.c Log: And another S -> U fix. Modified: python/branches/py3k-pep3137/Objects/codeobject.c

[Python-3000-checkins] r58787 - in python/branches/py3k-pep3137: Lib/struct.py Lib/test/test_struct.py Modules/_struct.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 20:33:24 2007 New Revision: 58787 Modified: python/branches/py3k-pep3137/Lib/struct.py python/branches/py3k-pep3137/Lib/test/test_struct.py python/branches/py3k-pep3137/Modules/_struct.c Log: Make test_struct pass. Accept anything that's bytes as

[Python-3000-checkins] r58795 - python/branches/py3k-pep3137/Modules/datetimemodule.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 21:03:18 2007 New Revision: 58795 Modified: python/branches/py3k-pep3137/Modules/datetimemodule.c Log: Fix test_datetime. The return type of make_Zreplacement is changed again. Modified: python/branches/py3k-pep3137/Modules/datetimemodule.c =

[Python-3000-checkins] r58794 - python/branches/py3k-pep3137/Modules/_cursesmodule.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 20:55:40 2007 New Revision: 58794 Modified: python/branches/py3k-pep3137/Modules/_cursesmodule.c Log: PyBytes -> PyString in PyCurses_GetWin(). Modified: python/branches/py3k-pep3137/Modules/_cursesmodule.c

[Python-3000-checkins] r58800 - in python/branches/py3k-pep3137: Lib/test/test_mmap.py Modules/mmapmodule.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 21:30:04 2007 New Revision: 58800 Modified: python/branches/py3k-pep3137/Lib/test/test_mmap.py python/branches/py3k-pep3137/Modules/mmapmodule.c Log: Fix up mmap. It behaves more like bytes now, e.g. m[i] is an int, and m[i:j] returns a PyString.

[Python-3000-checkins] r58801 - python/branches/py3k-pep3137/Python/getargs.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 21:48:47 2007 New Revision: 58801 Modified: python/branches/py3k-pep3137/Python/getargs.c Log: Another attempt at cleanup up some of the string codes in getargs.c. This needs a much bigger effort though. Modified: python/branches/py3k-pep3137/Python/g

[Python-3000-checkins] r58802 - python/branches/py3k-pep3137/Lib/base64.py

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 21:50:29 2007 New Revision: 58802 Modified: python/branches/py3k-pep3137/Lib/base64.py Log: Fix simple bytes/buffer issues in base64.py. Modified: python/branches/py3k-pep3137/Lib/base64.py =

[Python-3000-checkins] r58803 - python/branches/py3k-pep3137/Lib/base64.py

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 21:57:22 2007 New Revision: 58803 Modified: python/branches/py3k-pep3137/Lib/base64.py Log: Some more base64 stuff. (binascii needs to change too though.) Modified: python/branches/py3k-pep3137/Lib/base64.py ===

[Python-3000-checkins] r58804 - python/branches/py3k-pep3137/Lib/test/test_audioop.py

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 21:59:27 2007 New Revision: 58804 Modified: python/branches/py3k-pep3137/Lib/test/test_audioop.py Log: Fix test_audioop.py. Modified: python/branches/py3k-pep3137/Lib/test/test_audioop.py ===

[Python-3000-checkins] r58805 - in python/branches/py3k-pep3137: Lib/test/test_exceptions.py Objects/exceptions.c Objects/unicodeobject.c

2007-11-02 Thread christian.heimes
Author: christian.heimes Date: Fri Nov 2 22:05:31 2007 New Revision: 58805 Modified: python/branches/py3k-pep3137/Lib/test/test_exceptions.py python/branches/py3k-pep3137/Objects/exceptions.c python/branches/py3k-pep3137/Objects/unicodeobject.c Log: Changed UnicodeDecodeError.object type

[Python-3000-checkins] r58806 - python/branches/py3k-pep3137/Lib/test/test_descr.py

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 22:07:59 2007 New Revision: 58806 Modified: python/branches/py3k-pep3137/Lib/test/test_descr.py Log: Fix test_descr.py. (Only str_of_str_subclass() was broken, due to b2a_hex() issues.) Modified: python/branches/py3k-pep3137/Lib/test/test_descr.py ===

[Python-3000-checkins] r58807 - python/branches/py3k-pep3137/Lib/test/test_unicode.py

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 22:15:41 2007 New Revision: 58807 Modified: python/branches/py3k-pep3137/Lib/test/test_unicode.py Log: Fix test_unicode.py. Modified: python/branches/py3k-pep3137/Lib/test/test_unicode.py ===

[Python-3000-checkins] r58808 - in python/branches/py3k-pep3137: Lib/uuid.py Objects/stringobject.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 22:32:46 2007 New Revision: 58808 Modified: python/branches/py3k-pep3137/Lib/uuid.py python/branches/py3k-pep3137/Objects/stringobject.c Log: Fix test_uuid.py. This meant restoring reversed(b"...") functionality, by putting back string_item(). Modi

[Python-3000-checkins] r58809 - python/branches/py3k-pep3137/Modules/_sqlite/module.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 22:35:38 2007 New Revision: 58809 Modified: python/branches/py3k-pep3137/Modules/_sqlite/module.c Log: Fix one bootstrap issue in sqlite (S -> U format code again). Many other issues are now revealed. Modified: python/branches/py3k-pep3137/Modules/_sq

[Python-3000-checkins] r58810 - python/branches/py3k-pep3137/Lib/zipfile.py

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 22:47:41 2007 New Revision: 58810 Modified: python/branches/py3k-pep3137/Lib/zipfile.py Log: Fix zipfile. Modified: python/branches/py3k-pep3137/Lib/zipfile.py == --- python/b

[Python-3000-checkins] r58812 - python/branches/py3k-pep3137/Objects/longobject.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 23:17:24 2007 New Revision: 58812 Modified: python/branches/py3k-pep3137/Objects/longobject.c Log: Fix str8 reference in comment. Modified: python/branches/py3k-pep3137/Objects/longobject.c =

[Python-3000-checkins] r58811 - python/branches/py3k-pep3137/Objects/longobject.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Fri Nov 2 23:16:14 2007 New Revision: 58811 Modified: python/branches/py3k-pep3137/Objects/longobject.c Log: Make int(x, base) work for isinstance(x, (str, bytes, buffer)). Modified: python/branches/py3k-pep3137/Objects/longobject.c

[Python-3000-checkins] r58815 - in python/branches/py3k: Objects/typeobject.c Parser/asdl_c.py Python/Python-ast.c Python/errors.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Sat Nov 3 00:07:07 2007 New Revision: 58815 Modified: python/branches/py3k/Objects/typeobject.c python/branches/py3k/Parser/asdl_c.py python/branches/py3k/Python/Python-ast.c python/branches/py3k/Python/errors.c Log: Fixes for issue 1752184, ensuring typ

[Python-3000-checkins] r58816 - in python/branches/py3k-pep3137: Objects/typeobject.c Parser/asdl_c.py Python/Python-ast.c Python/errors.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Sat Nov 3 00:13:21 2007 New Revision: 58816 Modified: python/branches/py3k-pep3137/ (props changed) python/branches/py3k-pep3137/Objects/typeobject.c python/branches/py3k-pep3137/Parser/asdl_c.py python/branches/py3k-pep3137/Python/Python-ast.c pyth

[Python-3000-checkins] r58817 - in python/branches/py3k: Doc/c-api/concrete.rst Doc/glossary.rst Doc/library/datetime.rst Doc/library/difflib.rst Doc/library/functions.rst Doc/library/os.rst Doc/libra

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Sat Nov 3 00:46:40 2007 New Revision: 58817 Modified: python/branches/py3k/ (props changed) python/branches/py3k/Doc/c-api/concrete.rst python/branches/py3k/Doc/glossary.rst python/branches/py3k/Doc/library/datetime.rst python/branches/py3k/Doc/libr

[Python-3000-checkins] r58818 - in python/branches/py3k-pep3137: Doc/c-api/concrete.rst Doc/glossary.rst Doc/library/datetime.rst Doc/library/difflib.rst Doc/library/functions.rst Doc/library/os.rst D

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Sat Nov 3 01:01:24 2007 New Revision: 58818 Modified: python/branches/py3k-pep3137/ (props changed) python/branches/py3k-pep3137/Doc/c-api/concrete.rst python/branches/py3k-pep3137/Doc/glossary.rst python/branches/py3k-pep3137/Doc/library/datetime.rst

[Python-3000-checkins] r58819 - in python/branches/py3k: Lib/test/test_bytes.py Objects/bytesobject.c

2007-11-02 Thread guido.van.rossum
Author: guido.van.rossum Date: Sat Nov 3 01:24:24 2007 New Revision: 58819 Modified: python/branches/py3k/Lib/test/test_bytes.py python/branches/py3k/Objects/bytesobject.c Log: Patch 1171 by mfenniak -- allow subclassing of bytes. I suspect this has some problems when the subclass is evil,

[Python-3000-checkins] r58820 - python/branches/py3k-pep3137/Lib/gettext.py

2007-11-02 Thread christian.heimes
Author: christian.heimes Date: Sat Nov 3 01:53:47 2007 New Revision: 58820 Modified: python/branches/py3k-pep3137/Lib/gettext.py Log: Fixed gettext bug. Python's gettext module may still break if the GNU mo header contains non UTF-8 characters. Let's see if users are going to complain. Modif

[Python-3000-checkins] r58821 - python/branches/py3k-pep3137/Lib/urllib.py

2007-11-02 Thread christian.heimes
Author: christian.heimes Date: Sat Nov 3 02:11:03 2007 New Revision: 58821 Modified: python/branches/py3k-pep3137/Lib/urllib.py Log: Fixed urllib. Can we get rid of toBytes()? Modified: python/branches/py3k-pep3137/Lib/urllib.py

[Python-3000-checkins] r58823 - in python/branches/py3k-pep3137/Lib: httplib.py test/test_httplib.py

2007-11-02 Thread brett.cannon
Author: brett.cannon Date: Sat Nov 3 08:36:42 2007 New Revision: 58823 Modified: python/branches/py3k-pep3137/Lib/httplib.py python/branches/py3k-pep3137/Lib/test/test_httplib.py Log: Make HTTPConnectin.putheader() accept bytes/buffers and not use their string representations. Modified: p