- 19 Tem, 2002 24 kayıt (commit)
-
-
Barry Warsaw yazdı
backwards compatibility, we're silently deprecating get_type(), get_subtype() and get_main_type(). We may eventually noisily deprecate these. For now, we'll just fix a bug in the splitting of the main and subtypes. get_content_type(), get_content_maintype(), get_content_subtype(): New methods which replace the above. These /always/ return a content type string and do not take a failobj, because an email message always at least has a default content type. set_default_type(): Someday there may be additional default content types, so don't hard code an assertion about the value of the ctype argument.
-
Barry Warsaw yazdı
to print>> the structure to. Defaults to sys.stdout.
-
Barry Warsaw yazdı
out on the mimelib-devel list.
-
Fred Drake yazdı
also drop the output file.
-
Fred Drake yazdı
-
Guido van Rossum yazdı
for the time module, because somehow configure won't define the symbols HAVE_STRUCT_TM_TM_ZONE, HAVE_TM_ZONE, and HAVE_TZNAME in this case. I've got no time to research this further, so I leave it in Jeremy and Martin's capable hands to find a different solution for True64 (or to devise a way to get the time tests to succeed while defining _XOPEN_SOURCE).
-
Guido van Rossum yazdı
where recvfrom() on a TCP stream returns None for the address. This should address the remaining problems on FreeBSD.
-
Neal Norwitz yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
C implementation. See SF patch 474274, by Brett Cannon. (As an experiment, I'm adding a line that #undefs HAVE_STRPTIME, so that you'll always get the Python version. This is so that it gets some good exercise. We should eventually delete that line.)
-
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 16 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.
-