- 19 Tem, 2002 14 kayıt (commit)
-
-
Guido van Rossum yazdı
Also adds tests.
-
Michael W. Hudson yazdı
-
Michael W. Hudson yazdı
done now.
-
Michael W. Hudson yazdı
version of PySlice_GetIndicesEx"): > OK. Michael, if you want to check in indices(), go ahead. Then I did what was needed, but didn't check it in. Here it is.
-
Guido van Rossum yazdı
timeout. Added small sleeps to _testAccept() and _testRecv() in NonBlockingTCPTests, to reduce race conditions (I know, this is not the solution!)
-
Guido van Rossum yazdı
closed. Prevents core dump.
-
Tim Peters yazdı
listsort. If the former calls itself recursively, they're a waste of time, since it's called on a random permutation of a random subset of elements. OTOH, for exactly the same reason, they're an immeasurably small waste of time (the odds of finding exploitable order in a random permutation are ~= 0, so the special-case loops looking for order give up quickly). The point is more for conceptual clarity. Also changed some "assert comments" into real asserts; when this code was first written, Python.h didn't supply assert.h.
-
Mark Hammond yazdı
-
Mark Hammond yazdı
-
Tim Peters yazdı
imply this is a stable sort, and added some asserts.
-
Tim Peters yazdı
has something in it (else ob_item may be a NULL pointer).
-
Tim Peters yazdı
introduced, list.sort() was rewritten to use only the "< or not <?" distinction. After rich comparisons were introduced, docompare() was fiddled to translate a Py_LT Boolean result into the old "-1 for <, 0 for ==, 1 for >" flavor of outcome, and the sorting code was left alone. This left things more obscure than they should be, and turns out it also cost measurable cycles. So: The old CMPERROR novelty is gone. docompare() is renamed to islt(), and now has the same return conditinos as PyObject_RichCompareBool. The SETK macro is renamed to ISLT, and is even weirder than before (don't complain unless you want to maintain the sort code <wink>). Overall, this yields a 1-2% speedup in the usual (no explicit function passed to list.sort()) case when sorting arrays of floats (as sortperf.py does). The boost is higher for arrays of ints.
-
Tim Peters yazdı
-
Tim Peters yazdı
use that everywhere.
-
- 18 Tem, 2002 19 kayıt (commit)
-
-
Barry Warsaw yazdı
quoting: in non-strict mode, messages don't require a blank line at the end with a missing end-terminator. A single newline is sufficient now. Handle trailing whitespace at the end of a boundary. Had to switch from using string.split() to re.split() Handle whitespace on the end of a parameter list for Content-type. Handle whitespace on the end of a plain content-type header. Specifically, get_type(): Strip the content type string. _get_params_preserve(): Strip the parameter names and values on both sides. _parsebody(): Lots of changes as described above, with some stylistic changes by Barry (who hopefully didn't screw things up ;).
-
Mark Hammond yazdı
Python 2.2.1 bugfix candidate.
-
Jeremy Hylton yazdı
This gets compilation of posixmodule.c to succeed on Tru64 and does no harm on Linux. We may need to undefine it on some platforms, but let's wait and see. Martin says: > I think it is generally the right thing to define _XOPEN_SOURCE on > Unix, providing a negative list of systems that cannot support this > setting (or preferably solving whatever problems remain). > > I'd put an (unconditional) AC_DEFINE into configure.in early on; it > *should* go into confdefs.h as configure proceeds, and thus be active > when other tests are performed.
-
Tim Peters yazdı
compiler wngs on Windows.
-
Barry Warsaw yazdı
convenience functions. Closes SF # 583188 (python project).
-
Guido van Rossum yazdı
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
-
Guido van Rossum yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
and should never return None. (It only did this for an old version of HotShot that was trying to still work with a patched Python 2.1.)
-
Fred Drake yazdı
-
Fred Drake yazdı
Remove the crufty support for Python's that don't have StopIteration; the HotShot patch for Python 2.1 has not been maintained.
-
Fred Drake yazdı
- The log reader now provides a "closed" attribute similar to the profiler. - Both the profiler and log reader now provide a fileno() method. - Use METH_NOARGS where possible, allowing simpler code in the method implementations.
-
Jeremy Hylton yazdı
(Silences compiler warning for Compaq C++ 6.5 on Tru64.)
-
Guido van Rossum yazdı
getdefaulttimeout() functions to the socket and _socket modules, and appropriate tests.
-
Tim Peters yazdı
the default range to end at 2**20 (machines are much faster now). Fixed what was quite a arguably a bug, explaining an old mystery: the "!sort" case here contructs what *was* a quadratic-time disaster for the old quicksort implementation. But under the current samplesort, it always ran much faster than *sort (the random case). This never made sense. Turns out it was because !sort was sorting an integer array, while all the other cases sort floats; and comparing ints goes much quicker than comparing floats in Python. After changing !sort to chew on floats instead, it's now slower than the random sort case, which makes more sense (but is just a few percent slower; samplesort is massively less sensitive to "bad patterns" than quicksort).
-
Tim Peters yazdı
file object that LogReader opens. Used it then in test_hotshot; the test passes again on Windows. Thank Guido for the analysis.
-
Guido van Rossum yazdı
codebase, so get rid of the pre-2.2 contingency.
-
- 17 Tem, 2002 7 kayıt (commit)
-
-
Tim Peters yazdı
and that I don't know how to fix it. Fred?
-
Barry Warsaw yazdı
contents of the next command.
-
Fred Drake yazdı
xmlparser object provided by pyexpat, new in Python 2.3.
-
Fred Drake yazdı
a docstring for the info attribute of the logreader object.
-
Fred Drake yazdı
write_header(): When we encounter a non-string object in sys.path, record a fairly mindless placeholder rather than dying. Possibly could record the repr of the object found, but not clear whether that matters.
-
Guido van Rossum yazdı
Dunbar) Can't test this, but looks correct to me.
-
Tim Peters yazdı
-