summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use O_APPEND flag instead of seeking, when appendWalter Dörwald2007-06-061-12/+5
| | | | mode is specified.
* Fix gzip.py: Use bytes where 8bit strings have been used formerly.Walter Dörwald2007-06-062-29/+31
| | | | | | | (The filename gets written in utf-8 encoded form which probably isn't correct.) Fix the test.
* If append mode is specified seek to the end of the file.Walter Dörwald2007-06-062-0/+30
| | | | Add a test to test_fileio.py for this.
* Fix test_codeccallbacks.py: bytes has no % operator.Walter Dörwald2007-06-061-3/+3
|
* Use PyUnicode_FromFormat() directly.Walter Dörwald2007-06-061-5/+3
|
* Change sys.intern() so that unicode strings can beWalter Dörwald2007-06-052-7/+25
| | | | interned too. Add a test for this.
* Change getdefaultencoding() and getfilesystemencoding()Walter Dörwald2007-06-051-2/+2
| | | | to return unicode strings.
* Make the name of the C variables match the Python namesWalter Dörwald2007-06-051-7/+7
| | | | | for chr()/chr8(). Fix function name in PyArg_ParseTuple() call.
* unichr() is named chr() now => fix name in error message.Walter Dörwald2007-06-051-2/+2
|
* Change int_oct() and int_hex() to return unicode objects.Walter Dörwald2007-06-051-9/+5
|
* Use PyUnicode_FromFormat() directly inWalter Dörwald2007-06-051-8/+4
| | | | zipimporter_repr().
* Change category(), bidirectional(), east_asian_width(),Walter Dörwald2007-06-051-6/+6
| | | | decomposition() and name() to return unicode strings.
* Simplify os_init() implementations by using PyErr_Format()Walter Dörwald2007-06-051-8/+2
| | | | directly instead of PyOS_snprintf()+PyErr_SetString().
* Remove unused variable.Walter Dörwald2007-06-051-1/+0
|
* Simplify socket_repr() by using PyUnicode_FromFormat()Walter Dörwald2007-06-052-3/+5
| | | | directly. Add a test that calls socket_repr().
* PyUnicode_FromFormat() does support %02x, so use itWalter Dörwald2007-06-051-17/+14
| | | | | for formatting the unicode decoding/encoding/translating exception messages.
* Change time.strftime() to return a unicode string.Walter Dörwald2007-05-311-5/+4
| | | | Use PyMem_Malloc() to allocate temporary storage.
* Change timedelta.__str__() to return a unicode object.Walter Dörwald2007-05-311-36/+19
|
* Change isoformat() methods to return unicode strings.Walter Dörwald2007-05-311-48/+32
|
* Change format_ctime() to return unicode (i.e.Walter Dörwald2007-05-311-6/+4
| | | | date.ctime() and datetime.ctime() return unicode now).
* Change float.__str__() and complex.__str__() to returnWalter Dörwald2007-05-313-2/+3
| | | | unicode objects.
* Add support for width, precision and zeropadding to the %d, %i, %u and %xWalter Dörwald2007-05-311-30/+86
| | | | | | format specifiers in PyUnicode_FromFormat(). Change unicode's tp_str implementation to return a unicode object.
* Add a helper to display the various flags and components of code objectsGuido van Rossum2007-05-301-0/+56
| | | | (everything besides the actual code disassembly).
* Fix test_openpty.Guido van Rossum2007-05-301-2/+2
|
* types.StringType is gone, use str directly instead.Walter Dörwald2007-05-291-1/+4
|
* Remove debug print.Walter Dörwald2007-05-291-1/+0
|
* Fix typo.Walter Dörwald2007-05-291-1/+2
|
* Fix test_pty.py.Walter Dörwald2007-05-291-7/+7
|
* Fix file test.Walter Dörwald2007-05-291-1/+1
|
* Merged revisions 55588-55630 via svnmerge fromGuido van Rossum2007-05-293-1363/+5
| | | | | | | | | | | | | | | | | | | 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. ........
* Get rid of a test for repr() of a file object.Guido van Rossum2007-05-271-8/+0
|
* Modernize. Values are now bytes.Guido van Rossum2007-05-271-14/+27
|
* Make the binhex test pass on Darwin.Guido van Rossum2007-05-271-4/+4
| | | | Grr. Do we really want to support this module?
* Remove use of types.StringType.Guido van Rossum2007-05-271-5/+3
|
* Use input(), not our own fake raw input (in one place).Guido van Rossum2007-05-271-6/+1
|
* Make struct tests pass.Guido van Rossum2007-05-273-24/+41
|
* Make xmlrpclib fail less (test_sundry passes).Guido van Rossum2007-05-271-30/+19
|
* Add isatty() to TextIOWrapper.Guido van Rossum2007-05-271-0/+3
|
* Make input9) behave properly with the new I/O library.Guido van Rossum2007-05-271-14/+66
|
* Change tp_str implementations of exception classesWalter Dörwald2007-05-261-223/+35
| | | | to return unicode strings.
* Minimal fixes to save the bootstrap on OSX.Guido van Rossum2007-05-252-4/+5
|
* Merged revisions 55545-55587 via svnmerge fromGuido van Rossum2007-05-252-2/+113
| | | | | | | | | | 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. ........
* Change PyErr_Format() to generate a unicode string (by usingWalter Dörwald2007-05-255-45/+33
| | | | | | | | 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.
* Document the existence of PyUnicode_InternInPlace() andWalter Dörwald2007-05-251-0/+21
| | | | PyUnicode_InternFromString().
* Add interning of unicode strings by copying the functionality fromWalter Dörwald2007-05-255-7/+158
| | | | | | | stringobject.c. Intern "True" and "False" in bool_repr() again as it was in the 8bit string era.
* This is the last time I fix binhex. If it breaks again it goes in the dustbin.Guido van Rossum2007-05-241-10/+8
|
* Simplify %U handling by using Py_UNICODE_COPY.Walter Dörwald2007-05-241-5/+3
|
* Fix typo.Walter Dörwald2007-05-241-1/+1
|
* Fixed array.fromfile(); removed references to PyFileObject in array.tofile().Guido van Rossum2007-05-242-78/+59
| | | | | Fixed test_array by removing tests that these two functions don't work with cStringIO objects (which makes no sense).
* Don't specify an encoding, let open figure out anWalter Dörwald2007-05-241-2/+2
| | | | appropriate one.