summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove useless \withsubitem.Georg Brandl2007-08-021-1/+0
|
* Changes to long and float by Jeffrey Jasskin to conform to PEP 3141.Guido van Rossum2007-08-012-35/+54
| | | | | | In particular, add trivial implementations of .real, .imag and .conjugate() to both, and add .numerator and .denominator to long. Also some small optimizations (e.g. remove long_pos in favor of long_long).
* When testing all stdlib modules, ignore test_pep263.py which is encodedGuido van Rossum2007-08-011-0/+3
| | | | in KOI8-R.
* Tests for @abstractproperty by Jeffrey Yasskin.Guido van Rossum2007-08-012-18/+36
| | | | | | (The previous changes to abc.py were also by him). Put back a comment about using super() for properties (I didn't realize this worked).
* Kill div, mod and divmod on complex (already deprecated in 2.x).Guido van Rossum2007-08-011-55/+15
| | | | | Add docstring for conjugate(). Patch by Jeffrey Yasskin.
* Add @abstractproperty.Guido van Rossum2007-08-011-0/+25
|
* Bytes (which are the input for decoding) are mutable now. If a decodingWalter Dörwald2007-07-302-19/+68
| | | | | | | error callback changes the bytes object in the exception the decoder might use memory that's no longer in use. Change unicode_decode_call_errorhandler() so that it fetches the adresses of the bytes array (start and end) from the exception object and passes them back to the caller.
* In cases where dealing with base64, do the conversion but then get the ASCIIBrett Cannon2007-07-301-7/+6
| | | | | | string representation for use in the XML. Also strip out some unneeded encoding/decoding steps.
* Don't try to use a bytes sequence for file paths. Also force equivalency testsBrett Cannon2007-07-301-1/+3
| | | | to be between str8 and str.
* Add a missing "rf.depth = 0;" to marshal_load().Guido van Rossum2007-07-301-0/+1
| | | | | | Reported by Joe Smith. This makes the CYGWIN tests pass; it's a miracle it didn't fail on other platforms. Seems like it was accidentally dropped (maybe a merge artifact?).
* Implement PEP 3120.Martin v. Löwis2007-07-295-6/+69
|
* Testing against a different default encoding is meaningless as the defaultBrett Cannon2007-07-291-39/+0
| | | | encoding can only be UTF-8 now.
* Expat parser no longer has a returns_unicode attribute since everything isBrett Cannon2007-07-291-2/+0
| | | | Unicode now.
* Use BytesIO instead of cStringIO.StringIO.Martin v. Löwis2007-07-281-5/+5
|
* Revert previous checkin.Martin v. Löwis2007-07-281-7/+7
|
* Fix quopri to operate consistently on bytes.Martin v. Löwis2007-07-282-75/+87
|
* Return bytes, not str8.Martin v. Löwis2007-07-281-7/+7
|
* Patch #1762412: Fix test case for struni branch.Martin v. Löwis2007-07-281-44/+20
|
* Fix the minidom test.Guido van Rossum2007-07-273-24/+21
| | | | | In order to do this, I added an optional encoding argument to io.StringIO. The toprettyxml() function returns bytes when you specify an encoding now.
* SF patch# 1759922 by Alexandre Vassalotti.Guido van Rossum2007-07-271-6/+1
| | | | Fix one of the two failing tests for minidom.
* Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.Guido van Rossum2007-07-271-1/+1
|
* Fix the docstrings for keys(), items(), values() (especially the latter).Guido van Rossum2007-07-271-61/+6
| | | | Get rid of some #ifdef'ed-out code.
* SF patch# 1757839 by Alexandre Vassalotti (part 2).Guido van Rossum2007-07-271-107/+107
| | | | Change a bunch of .assert_(X == Y) to .assertEqual(X, Y).
* SF patch# 1761465 by Jeffrey Yasskin.Guido van Rossum2007-07-277-105/+127
| | | | Fix test_aepack and test_applesingle.
* Delete redundant read() and close() methods from SocketIO class.Guido van Rossum2007-07-271-24/+0
|
* Don't redirect stdout for test_curses.Guido van Rossum2007-07-261-3/+4
| | | | Kill some dead (commented-out) code.
* Return bytes, not string from read(). Makes test_mmap.py pass.Guido van Rossum2007-07-261-1/+1
|
* Move xdrlib over to the bytes type.Brett Cannon2007-07-262-7/+7
|
* Move shelve over to BytesIO as pickle.(Pickler | Unpickler) expect binaryBrett Cannon2007-07-262-16/+16
| | | | | | files, not text files. test_shelve still fails thanks to bsddb not having been fixed.
* Fix two bad type identifiers that caused crashes on OSX (icglue and Nav).Guido van Rossum2007-07-254-6/+4
| | | | Silence two innocuous warnings (_File and _collections).
* Make the last two curses demos work again -- they were using floatGuido van Rossum2007-07-242-28/+28
| | | | | | division. The other curses demos all work fine, so I'm more confident that the curses library actually works. (Don't try to display non-ASCII characters, of course.)
* ccMake test_curses pass.Guido van Rossum2007-07-241-35/+74
| | | | Can't guarantee I caught every spot.
* Make test_wave.py pass.Guido van Rossum2007-07-232-6/+6
| | | | I have no illusion that this fixes all issues with this module.
* Make test_tcl.py pass, by accepting unicode strings as variable names.Guido van Rossum2007-07-231-0/+4
|
* Tweaks to make the codecmaps tests pass again.Guido van Rossum2007-07-234-20/+20
| | | | (To run these, you need to pass -uurlfetch to regrtest.py or runtests.sh.)
* SF patch# 1759016 by Joe Gregorio, who writes:Guido van Rossum2007-07-233-148/+28
| | | | | | | | | | 1. Removed "returns_unicode" attribute, associated code in the module to support that attribute, and all tests associated with it. 2. Parsed data is now returned as unicode strings. 3. Changed input tests to use io.BytesIO instead of StringIO, to reflect the byte processing nature of expat.
* SF patch# 1758570 by Jeffrey Yasskin, who writes:Guido van Rossum2007-07-231-7/+3
| | | | | | I made Carbon.File.pathname return unicode, by analogy with macpath.abspath. There could easily be other bugs of the same sort in this file. The uses of PyString_FromString*() in particular look sketchy.
* Don't use cwnon-ASCII characters in the source; use \ooo escapes.Guido van Rossum2007-07-231-3/+2
| | | | (This doesn't fix test_cookielib, just removes the SyntaxError.)
* Fix import of frozen package submodules to use Unicode. Fixes test_frozen.Guido van Rossum2007-07-231-3/+4
|
* Add a command line option to set the -u flag.Guido van Rossum2007-07-231-1/+7
|
* Don't use a sleep to wait for the server to be ready; this causedGuido van Rossum2007-07-231-3/+5
| | | | problems on my OSX laptop. use a condition variable instead.
* Fix test_largefile by changing some string literals to byte literals.Collin Winter2007-07-231-4/+4
|
* Fix test_poplib failures.Collin Winter2007-07-231-1/+1
|
* Make close() (all versions) ignore IOError from flush().Guido van Rossum2007-07-221-4/+11
| | | | | | | This makes test_resource.py pass, and I think it's the right thing to do: if you're closing a file after encountering an I/O error there's nothing you can do about it. If you want the error, you can call flush() yourself.
* Remove this test; it checked for a single old bug and I don't think thatGuido van Rossum2007-07-221-24/+0
| | | | | its failure means much, now that the handling of unicode and bytes has changed so much.
* Make test_compile not fail.Guido van Rossum2007-07-221-3/+3
| | | | | | I *think* it's okay no longer to require that compiling a Unicode string with a coding declaration fails; it seems appropriate to just ignore it.
* Drop cPickle from Windows build process.Martin v. Löwis2007-07-222-5/+0
|
* Merged revisions 56483-56491 via svnmerge fromMartin v. Löwis2007-07-2228-261/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r56486 | kurt.kaiser | 2007-07-22 05:27:08 +0200 (So, 22 Jul 2007) | 2 lines Fix typo introduced at r55797 ........ r56487 | kurt.kaiser | 2007-07-22 07:48:45 +0200 (So, 22 Jul 2007) | 2 lines Exception attr accessed via args in py3k. ........ r56489 | martin.v.loewis | 2007-07-22 15:32:44 +0200 (So, 22 Jul 2007) | 2 lines Regenerate. ........ r56490 | martin.v.loewis | 2007-07-22 15:34:06 +0200 (So, 22 Jul 2007) | 2 lines Port Mac modules to PEP 3123. ........ r56491 | martin.v.loewis | 2007-07-22 16:35:53 +0200 (So, 22 Jul 2007) | 1 line Port to PEP 3123. ........
* Fix merge breakage.Martin v. Löwis2007-07-219-26/+26
|
* Merged revisions 56467-56482 via svnmerge fromMartin v. Löwis2007-07-21134-1577/+1388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ................ r56477 | martin.v.loewis | 2007-07-21 09:04:38 +0200 (Sa, 21 Jul 2007) | 11 lines Merged revisions 56466-56476 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r56476 | martin.v.loewis | 2007-07-21 08:55:02 +0200 (Sa, 21 Jul 2007) | 4 lines PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. ........ ................ r56478 | martin.v.loewis | 2007-07-21 09:47:23 +0200 (Sa, 21 Jul 2007) | 2 lines PEP 3123: Use proper C inheritance for PyObject. ................ r56479 | martin.v.loewis | 2007-07-21 10:06:55 +0200 (Sa, 21 Jul 2007) | 3 lines Add longintrepr.h to Python.h, so that the compiler can see that PyFalse is really some kind of PyObject*. ................ r56480 | martin.v.loewis | 2007-07-21 10:47:18 +0200 (Sa, 21 Jul 2007) | 2 lines Qualify SHIFT, MASK, BASE. ................ r56482 | martin.v.loewis | 2007-07-21 19:10:57 +0200 (Sa, 21 Jul 2007) | 2 lines Correctly refer to _ob_next. ................