- 22 May, 2001 8 kayıt (commit)
-
-
Tim Peters yazdı
When regrtest.py finds an attribute "test_main" in a test it imports, regrtest runs the test's test_main after the import. test_threaded_import needs this else the cross-thread import lock prevents it from making progress. Other tests can use this hack too, but I doubt it will ever be popular.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Tim Peters yazdı
instead. Allows this test to finish on Windows again.
-
Barry Warsaw yazdı
localization of month and day names.
-
Fred Drake yazdı
objects.
-
Fred Drake yazdı
-
Tim Peters yazdı
ICK ALERT: read the long comment block before run_the_test(). It was almost impossible to get this to run without instant deadlock, and the solution here sucks on several counts. If you can dream up a better way, let me know!
-
- 21 May, 2001 5 kayıt (commit)
-
-
Fred Drake yazdı
test; there is no need to store this in a file if the actual test code does not produce any output.
-
Fred Drake yazdı
contains a single line of text giving the name of the output file. This covers all tests that do not actually produce any output in the test code.
-
Andrew M. Kuchling yazdı
-
Fred Drake yazdı
for the Maildir mailbox format. This still does not address other mailbox formats.
-
Guido van Rossum yazdı
basically accept <!...> where the dots can be single- or double-quoted strings or any other character except >. Background: I found a real-life example that failed to parse with the old assumption: http://www.opensource.org/licenses/jabberpl.html contains a few constructs of the form <![if !supportLists]>...<![endif]>.
-
- 18 May, 2001 5 kayıt (commit)
-
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
TAL/PageTemplate package for Zope. This only needed a little boilerplate change; the tests themselves are unchanged.
-
Guido van Rossum yazdı
derived from but not quite compatible with that of sgmllib, so it's a new file. I suppose it needs documentation, and htmllib needs to be changed to use this instead of sgmllib, and sgmllib needs to be declared obsolete. But that can all be done later. This code was first published as part of TAL (part of Zope Page Templates), but that was strongly based on sgmllib anyway. Authors are Fred drake and Guido van Rossum.
-
- 17 May, 2001 2 kayıt (commit)
-
-
Guido van Rossum yazdı
but it still can't have any syntax errors. Went a little too fast there, Jack? :-)
-
Jack Jansen yazdı
Made distutils understand the MacPython Carbon runtime model. Distutils will build for the runtime model you are currently using for the interpreter.
-
- 16 May, 2001 1 kayıt (commit)
-
-
Marc-André Lemburg yazdı
codec files to codecs.py and added logic so that multi mappings in the decoding maps now result in mappings to None (undefined mapping) in the encoding maps.
-
- 15 May, 2001 5 kayıt (commit)
-
-
Tim Peters yazdı
after commas that didn't have any).
-
Guido van Rossum yazdı
-
Fred Drake yazdı
-
Marc-André Lemburg yazdı
and introduces a new method .decode(). The major change is that strg.encode() will no longer try to convert Unicode returns from the codec into a string, but instead pass along the Unicode object as-is. The same is now true for all other codec return types. The underlying C APIs were changed accordingly. Note that even though this does have the potential of breaking existing code, the chances are low since conversion from Unicode previously took place using the default encoding which is normally set to ASCII rendering this auto-conversion mechanism useless for most Unicode encodings. The good news is that you can now use .encode() and .decode() with much greater ease and that the door was opened for better accessibility of the builtin codecs. As demonstration of the new feature, the patch includes a few new codecs which allow string to string encoding and decoding (rot13, hex, zip, uu, base64). Written by Marc-Andre Lemburg. Copyright assigned to the PSF.
-
Guido van Rossum yazdı
*are* obsolete; three variables and the maketrans() function are not (yet) obsolete. Add a compensating warnings.filterwarnings() call to test_strop.py. Add this to the NEWS.
-
- 14 May, 2001 4 kayıt (commit)
-
-
Fred Drake yazdı
the regression test is run in verbose mode.
-
Tim Peters yazdı
elements when crunching a list, dict or tuple. Now takes linear time instead -- huge speedup for even moderately large containers, and the code is notably simpler too. Added some basic "is the output correct?" tests to test_pprint.
-
Fred Drake yazdı
-
Tim Peters yazdı
-
- 13 May, 2001 3 kayıt (commit)
-
-
Tim Peters yazdı
-
Mark Hammond yazdı
Add support for Windows using "mbcs" as the default Unicode encoding when dealing with the file system. As discussed on python-dev and in patch 410465.
-
Tim Peters yazdı
The comment following used to say: /* We use ~hash instead of hash, as degenerate hash functions, such as for ints <sigh>, can have lots of leading zeros. It's not really a performance risk, but better safe than sorry. 12-Dec-00 tim: so ~hash produces lots of leading ones instead -- what's the gain? */ That is, there was never a good reason for doing it. And to the contrary, as explained on Python-Dev last December, it tended to make the *sum* (i + incr) & mask (which is the first table index examined in case of collison) the same "too often" across distinct hashes. Changing to the simpler "i = hash & mask" reduced the number of string-dict collisions (== # number of times we go around the lookup for-loop) from about 6 million to 5 million during a full run of the test suite (these are approximate because the test suite does some random stuff from run to run). The number of collisions in non-string dicts also decreased, but not as dramatically. Note that this may, for a given dict, change the order (wrt previous releases) of entries exposed by .keys(), .values() and .items(). A number of std tests suffered bogus failures as a result. For dicts keyed by small ints, or (less so) by characters, the order is much more likely to be in increasing order of key now; e.g., >>> d = {} >>> for i in range(10): ... d[i] = i ... >>> d {0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9} >>> Unfortunately. people may latch on to that in small examples and draw a bogus conclusion. test_support.py Moved test_extcall's sortdict() into test_support, made it stronger, and imported sortdict into other std tests that needed it. test_unicode.py Excluced cp875 from the "roundtrip over range(128)" test, because cp875 doesn't have a well-defined inverse for unicode("?", "cp875"). See Python-Dev for excruciating details. Cookie.py Chaged various output functions to sort dicts before building strings from them. test_extcall Fiddled the expected-result file. This remains sensitive to native dict ordering, because, e.g., if there are multiple errors in a keyword-arg dict (and test_extcall sets up many cases like that), the specific error Python complains about first depends on native dict ordering.
-
- 11 May, 2001 7 kayıt (commit)
-
-
Fred Drake yazdı
-
Fred Drake yazdı
Add a comment elsewhere making clear an assumption in the code.
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-