Walter Dörwald
93f3910dca
types.StringType is gone, use str directly instead.
2007-05-29 19:31:48 +00:00
Walter Dörwald
865b003de0
Remove debug print.
2007-05-29 19:18:28 +00:00
Walter Dörwald
a327000bdd
Fix typo.
2007-05-29 19:13:29 +00:00
Walter Dörwald
812d8341ea
Fix test_pty.py.
2007-05-29 18:57:42 +00:00
Walter Dörwald
c02571484b
Fix file test.
2007-05-29 18:51:25 +00:00
Guido van Rossum
29478ef990
Merged revisions 55588-55630 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/p3yk
........
r55598 | neal.norwitz | 2007-05-26 10:44:02 +0800 (Sat, 26 May 2007) | 1 line
Fix refleak on infinite recursion
........
r55599 | neal.norwitz | 2007-05-26 10:47:45 +0800 (Sat, 26 May 2007) | 1 line
Add news entry about overidding isinstance/issubclass (PEP 3119)
........
r55629 | brett.cannon | 2007-05-29 08:06:59 +0800 (Tue, 29 May 2007) | 3 lines
Delete the cstubs module. Used as input to Modules/cgen.py to generate the gl
module which has already been removed.
........
2007-05-29 00:39:44 +00:00
Guido van Rossum
644e149b11
Get rid of a test for repr() of a file object.
2007-05-27 09:21:59 +00:00
Guido van Rossum
ad4404cdbf
Modernize. Values are now bytes.
2007-05-27 09:21:20 +00:00
Guido van Rossum
ff12e08273
Make the binhex test pass on Darwin.
...
Grr. Do we really want to support this module?
2007-05-27 09:20:49 +00:00
Guido van Rossum
a01a8b65e5
Remove use of types.StringType.
2007-05-27 09:20:14 +00:00
Guido van Rossum
c5b6ab0baa
Use input(), not our own fake raw input (in one place).
2007-05-27 09:19:52 +00:00
Guido van Rossum
e625fd5444
Make struct tests pass.
2007-05-27 09:19:04 +00:00
Guido van Rossum
54ad523f02
Make xmlrpclib fail less (test_sundry passes).
2007-05-27 09:17:48 +00:00
Guido van Rossum
859b5ec240
Add isatty() to TextIOWrapper.
2007-05-27 09:14:51 +00:00
Guido van Rossum
eba769657a
Make input9) behave properly with the new I/O library.
2007-05-27 09:13:28 +00:00
Walter Dörwald
f5bec7c67d
Change tp_str implementations of exception classes
...
to return unicode strings.
2007-05-26 15:03:32 +00:00
Guido van Rossum
63236cf386
Minimal fixes to save the bootstrap on OSX.
2007-05-25 18:39:29 +00:00
Guido van Rossum
adee45ed2c
Merged revisions 55545-55587 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/p3yk
........
r55587 | guido.van.rossum | 2007-05-25 10:37:01 -0700 (Fri, 25 May 2007) | 2 lines
Implement isinstance and issubclass overriding, a la PEP 3119.
........
2007-05-25 17:55:52 +00:00
Walter Dörwald
573c08c1b7
Change PyErr_Format() to generate a unicode string (by using
...
PyUnicode_FromFormatV() instead of PyString_FromFormatV()).
Change calls to PyErr_Format() to benefit from the new format
specifiers: Using %S, object instead of %s, PyString_AS_STRING(object)
with will work with unicode objects too.
2007-05-25 15:46:59 +00:00
Walter Dörwald
e65c86cca0
Document the existence of PyUnicode_InternInPlace() and
...
PyUnicode_InternFromString().
2007-05-25 14:14:31 +00:00
Walter Dörwald
1680713e52
Add interning of unicode strings by copying the functionality from
...
stringobject.c.
Intern "True" and "False" in bool_repr() again as it was in the
8bit string era.
2007-05-25 13:52:07 +00:00
Guido van Rossum
34a042d301
This is the last time I fix binhex. If it breaks again it goes in the dustbin.
2007-05-24 22:05:19 +00:00
Walter Dörwald
5c2fab6e23
Simplify %U handling by using Py_UNICODE_COPY.
2007-05-24 19:51:02 +00:00
Walter Dörwald
1d0476b2a2
Fix typo.
2007-05-24 19:10:53 +00:00
Guido van Rossum
2c94aa567e
Fixed array.fromfile(); removed references to PyFileObject in array.tofile().
...
Fixed test_array by removing tests that these two functions don't work
with cStringIO objects (which makes no sense).
2007-05-24 19:02:32 +00:00
Walter Dörwald
6c037ba7dc
Don't specify an encoding, let open figure out an
...
appropriate one.
2007-05-24 18:05:27 +00:00
Guido van Rossum
292aa0d806
Fix test_set.
2007-05-24 18:00:35 +00:00
Guido van Rossum
fc3436becd
Add an encoding property to TextIOBase instances.
...
Add sys.__std{in,out,err}__.
Make test_sys pass.
2007-05-24 17:58:06 +00:00
Guido van Rossum
75d6f1a2fa
Fix tset_bytes.py.
2007-05-24 17:52:00 +00:00
Walter Dörwald
eceb0fbb0a
Fix test_exceptions.py: There were still str8 objects
...
in the UnicodeError constructor tests, but the
constructors take str arguments now.
2007-05-24 17:49:56 +00:00
Guido van Rossum
78c1c4d49f
Link _fileio statically -- it is needed during initialization.
2007-05-24 17:45:19 +00:00
Walter Dörwald
9e4dc911ea
Fix list_test.py::test_print(): Read and write the
...
file in text mode, so the file content comes back
as str not bytes.
2007-05-24 17:44:33 +00:00
Walter Dörwald
2565d90dd7
Fix test_funcattrs.py: __name__ attribute must be str8.
2007-05-24 17:34:27 +00:00
Guido van Rossum
305b9246a7
Fix test_bool and test_bufio.
2007-05-24 16:11:18 +00:00
Guido van Rossum
6f376c4031
Enable new I/O. Disable creation of old files.
...
Lots of stuff fails now, including -S and -m command line flags.
2007-05-24 14:31:33 +00:00
Guido van Rossum
fa0054aa73
Make test_subprocess work. Fix universal newlines in io.py.
2007-05-24 04:05:35 +00:00
Guido van Rossum
c126e8aae3
Merged revisions 55514-55544 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/p3yk
........
r55526 | neal.norwitz | 2007-05-22 23:42:22 -0700 (Tue, 22 May 2007) | 1 line
reduce was removed a while ago
........
r55544 | guido.van.rossum | 2007-05-23 19:23:53 -0700 (Wed, 23 May 2007) | 2 lines
Fix test_inspect. It seems my previous "fix" was due to a stale .pyc file.
........
2007-05-24 02:27:17 +00:00
Guido van Rossum
c2f93dc2e4
Remove native popen() and fdopen(), replacing them with subprocess calls.
...
Fix a path to an assert in fileio_read().
Some misc tweaks.
2007-05-24 00:50:02 +00:00
Guido van Rossum
d8595fe304
Refactor to avoid ultra-deeply-nested code.
2007-05-23 21:36:49 +00:00
Guido van Rossum
e3d1d41184
Fix datetime and its test.
2007-05-23 21:24:35 +00:00
Walter Dörwald
1be7e3f2ec
Add a format character %S to PyUnicode_FromFormat() that
...
embeds the result of PyObject_Unicode() into the resulting
unicode string.
2007-05-23 21:02:42 +00:00
Guido van Rossum
6252e10ed9
Make gdbm and dumbdbm use byte strings. Updated their tests.
2007-05-23 20:51:02 +00:00
Walter Dörwald
517bcfeb6b
Simplify append_keyword_tzinfo() by using
...
PyUnicode_FromFormat().
2007-05-23 20:45:05 +00:00
Walter Dörwald
85d8e421a6
Fix test_unicodedata.py.
2007-05-23 20:11:33 +00:00
Walter Dörwald
eab198d229
Fix testcodec.py and test_charmapcodec.py
2007-05-23 19:00:48 +00:00
Guido van Rossum
e53309ce47
This is how I run the tests.
2007-05-23 17:28:08 +00:00
Guido van Rossum
522a6c66ac
bz2 uses bytes everywhere (even for the 'newlines' attribute).
...
test_bz2 passes.
2007-05-22 23:13:45 +00:00
Guido van Rossum
776152b601
zlib now uses bytes everywhere, and the test passes.
2007-05-22 22:44:07 +00:00
Guido van Rossum
dcee3c0d1f
Make test_binhex pass. (Do we really want to support it still?)
2007-05-22 22:25:42 +00:00
Guido van Rossum
4581ae5fa2
Make test_base64 pass.
...
Change binascii.Error to derive from ValueError
and raise binascii.Error everywhere where values are bad
(why on earth did the old code use TypeError?!?).
2007-05-22 21:56:47 +00:00