summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* The previous change was causing a segfault after multiple calls to ↵Christian Heimes2008-01-302-12/+8
| | | | Py_Initialize() and Py_Finalize().
* Fixed some references leaks in sys.Christian Heimes2008-01-303-22/+19
|
* Removed unused varChristian Heimes2008-01-301-1/+1
|
* Patch #1970 by Antoine Pitrou: Speedup unicode whitespace and linebreak ↵Christian Heimes2008-01-303-19/+92
| | | | detection. The speedup is about 25% for split() (571 / 457 usec) and 35% (175 / 127 usec )for splitlines()
* Demonstrate new except/as syntax.Raymond Hettinger2008-01-301-4/+4
|
* MutableSets support a remove() method.Raymond Hettinger2008-01-301-0/+6
|
* Add isdisjoint() to the Set/MutableSet ABCs.Raymond Hettinger2008-01-301-0/+6
|
* CallMethod is faster with a NULL third-argument than with an empty format ↵Raymond Hettinger2008-01-291-1/+1
| | | | string.
* Ignore .pyc and .pyo files.Brett Cannon2008-01-290-0/+0
|
* Update Vim syntax highlighting to specify what revision was used to generateBrett Cannon2008-01-293-8/+9
| | | | the file.
* Fix the reindent rule to use $(BUILDPYTHON).Brett Cannon2008-01-291-1/+1
|
* Disable use of BerkeleyDB 4.6.x to see what the odd platform buildbotsGregory P. Smith2008-01-281-1/+4
| | | | | think. In particular, neal norwitz has traced an Ubuntu sparc64 crash to the Lib/test/bsddb/test_basics.py test when opening a db with DB_THREAD.
* Removed unnecessary conditional (spotted by Neal Norwitz).Raymond Hettinger2008-01-281-1/+1
|
* Factor-out common code with a new macroRaymond Hettinger2008-01-281-0/+6
|
* Factor-out common code with a new macroRaymond Hettinger2008-01-282-4/+6
|
* Let marshal built-up sets and frozensets one element at a time (without ↵Raymond Hettinger2008-01-281-12/+8
| | | | creating an intermediate tuple).
* Make PySet_Add() work with frozensets.Raymond Hettinger2008-01-282-18/+17
| | | | | Works like PyTuple_SetItem() to build-up values in a brand new frozenset. Also, PyFrozenSet_New() is now guaranteed to produce a distinct new frozenset.
* Revert rev. 59925, it breaks comtypes (I need to further examine this).Thomas Heller2008-01-282-11/+0
|
* static PyObject* variables should use PyString_InternFromString() instead of ↵Christian Heimes2008-01-286-16/+17
| | | | PyObject_FromString() to store a python string in a function level static var.
* Added clear cache methods to clear the internal type lookup cache for ref ↵Christian Heimes2008-01-278-0/+55
| | | | leak test runs.
* Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() becauseJeffrey Yasskin2008-01-273-56/+180
| | | | | | | it's useful outside of rational numbers. This is my first C code that had to do anything significant. Please be more careful when looking over it.
* Add refcounting extension to build config.Georg Brandl2008-01-271-0/+2
|
* socket.error doesn't have a headers attribute like ProtocolError.Neal Norwitz2008-01-271-10/+10
| | | | Handle that situation where we catch socket.errors.
* Change isbasestring function as discussed on the cvs list a while agoChristian Heimes2008-01-271-5/+7
|
* Try to handle socket.errors properly in is_unavailableNeal Norwitz2008-01-271-3/+7
|
* Remove effectless expression statement.Georg Brandl2008-01-271-1/+0
|
* Update the comment and remove the close. If we close we can't flush anymore.Neal Norwitz2008-01-271-2/+1
| | | | | We might still need to close after the for loop if flushing 6! times still doesn't cause the signal/exception.
* Print periodic "still working" messages since this suite is slow.Neal Norwitz2008-01-271-0/+26
|
* Reduce buffer size since we do not need 1kNeal Norwitz2008-01-271-1/+1
|
* Catch socket errors that are often the cause of transient failures.Neal Norwitz2008-01-271-10/+10
| | | | | Many of these exceptions are due to resource unavailable, so the existing code should be able to handle many more spurious errors.
* Retry connection in case it fails to reduce flakinessNeal Norwitz2008-01-271-3/+30
|
* Add a tiny sleep and additional flush to force the file to really be synced.Neal Norwitz2008-01-271-2/+5
|
* Update to newer version of ffi. Fixes crashes and test failures of longdoubleNeal Norwitz2008-01-272-16/+48
|
* Initialize variable to prevent warning on some platform/config.Neal Norwitz2008-01-271-2/+2
|
* Add assertion that we do not blow out newlNeal Norwitz2008-01-271-0/+1
|
* Whitespace cleanupNeal Norwitz2008-01-271-5/+5
|
* Removed an unnecessary and confusing paragraph from the namedtuple docs.Raymond Hettinger2008-01-271-10/+1
|
* Docstring nitRaymond Hettinger2008-01-271-1/+1
|
* Add stdarg include for va_list to get this to compile on cygwinNeal Norwitz2008-01-271-0/+2
|
* Use int for the sign rather than a char. char can be signed or unsigned.Neal Norwitz2008-01-271-1/+1
| | | | It's system dependent. This might fix the problem with test_rfind failing.
* Mostly reformat. Also set an error and return NULL if neither MS_WINDOWSNeal Norwitz2008-01-271-15/+13
| | | | nor UNIX is defined. This may have caused problems on cygwin.
* Make rational.gcd() public and allow Rational to take decimal strings, perJeffrey Yasskin2008-01-272-21/+62
| | | | Raymond's advice.
* Try to prevent this test from being flaky. We might need a sleep in hereNeal Norwitz2008-01-271-2/+6
| | | | | | | which isn't as bad as it sounds. The close() *should* raise an exception, so if it didn't we should give more time to sync and really raise it. Will backport.
* Eliminate the sleeps that assume the server will start in .5 seconds.Neal Norwitz2008-01-271-20/+26
| | | | | This should make the test less flaky. It also speeds up the test by about 75% on my box (20+ seconds -> ~4 seconds).
* Consistently use tempfile.tempdir for the db_home directory.Neal Norwitz2008-01-265-5/+8
|
* On some systems (e.g., Ubuntu on hppa) the flush()Neal Norwitz2008-01-261-0/+3
| | | | | | doesn't cause the exception, but the close() does. Will backport.
* Reduce the race condition by signalling when the server is readyNeal Norwitz2008-01-261-0/+3
| | | | and not trying to connect before.
* Always try to remove the test file even if close raises an exceptionNeal Norwitz2008-01-261-2/+1
|
* Cleanup the code a bit. test_rfind is failing on PPC and PPC64 buildbots,Neal Norwitz2008-01-261-7/+7
| | | | this might fix the problem.
* Update docs for new callpack params added in r60188Gregory P. Smith2008-01-261-8/+18
|