summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Make number in comment match the targets in that section of theFred Drake2002-07-251-2/+2
| | | | | | Makefile. - Update the Python version number so we're using the library built from the current working sources.
* typoSkip Montanaro2002-07-251-1/+1
|
* * runctx - fix a couple typosSkip Montanaro2002-07-251-17/+21
| | | | | | | | | * globaltrace_lt - handle case where inspect.getmodulename doesn't return anything useful * localtrace_trace - handle case where inspect.getframeinfo doesn't return any context info I think both of the last two are caused by exec'd or eval'd code
* Complain if __len__() returns < 0, just like classic classes.Jeremy Hylton2002-07-251-0/+5
| | | | | | Fixes SF bug #575773. Bug fix candidate.
* Extended socket.htonl and ntohl to accept longs.Jeremy Hylton2002-07-252-15/+64
| | | | | | | Fixes SF bug #568322. The code should raise an OverflowError if the long is > 32 bits, even on platforms where sizeof(long) > 4.
* Remove test that was none too picky about whether attributes exist.Jeremy Hylton2002-07-251-41/+0
|
* remove spurious SET_LINENO from com_list_for and com_list_if. All they doSkip Montanaro2002-07-251-2/+0
| | | | | | | | | | | is slow things down unnecessarily and make tracing much more verbose. Something like def f(n): return [i for i in range(n) if i%2] should have at most two SET_LINENO instructions, not four. When tracing, the current line number should be printed once, not 2*n+1 times.
* Get rid of _expand() altogether - the match object supports m.expand().Guido van Rossum2002-07-241-11/+2
|
* Flesh out description of getlogin() and recommend against using it.Jeremy Hylton2002-07-241-2/+3
|
* The test for re.engine was misfiring because re.engine is no longerGuido van Rossum2002-07-241-11/+4
| | | | | | | | | defined and the default was "pre" instead of "sre". Give up on 1.5.2 compatibility, hardcode the sre solution. However, this XXX comment still applies, AFAIK: # XXX This code depends on internals of the regular expression # engine! There's no standard API to do a substitution when you # have already found the match. One should be added.
* Use full package paths in imports.Barry Warsaw2002-07-231-7/+2
|
* Taught the Windows installer about changes in the structure of the emailTim Peters2002-07-231-8/+18
| | | | package, and the loss of the test/data directory.
* Added a couple of more tests for Header charset handling.Barry Warsaw2002-07-231-0/+15
|
* Oops, missed an import of test_support.Barry Warsaw2002-07-232-2/+2
|
* A few updates about how/where to import test_support from.Barry Warsaw2002-07-231-4/+5
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-23194-1384/+195
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Replace DL_IMPORT with PyMODINIT_FUNC and remove "/export:init..." linkMark Hammond2002-07-2322-46/+46
| | | | | command line for Windows builds. This should allow MSVC to import and build the Python MSVC6 project files without error.
* append(): Bite the bullet and let charset be the string name of aBarry Warsaw2002-07-231-3/+6
| | | | character set, which we'll convert to a Charset instance. Sigh.
* make_header(): Watch out for charset is None, which decode_header()Barry Warsaw2002-07-231-3/+2
| | | | will return as the charset if implicit us-ascii is used.
* News about StopIteration as a "sink state".Guido van Rossum2002-07-231-0/+8
|
* Add news about strptime and socket.setdefaulttimeout().Guido van Rossum2002-07-231-1/+6
|
* SF patch #581396, Canvas "select_item" always returns NoneNeal Norwitz2002-07-231-1/+1
| | | | Return the selected item, if there is any.
* [Bug #580462] Mention changes to GC APIAndrew M. Kuchling2002-07-221-84/+116
| | | | | Mention portable strptime() Move C-level sections farther down in the file
* Sort changed modules into alphabetical order; no other changesAndrew M. Kuchling2002-07-221-93/+97
|
* Rewrite a paragraph, and use correct mark-upAndrew M. Kuchling2002-07-221-5/+9
|
* Remove a strange single quote that didn't seem to upset the compilers!Mark Hammond2002-07-221-1/+1
|
* Nuke the only DL_* in this directory.Mark Hammond2002-07-221-1/+1
|
* Move DL_IMPORT/DL_EXPORT to Build section, I think this is the correct placeNeal Norwitz2002-07-221-4/+5
|
* SF bug #583894, add doc for DL_IMPORT/DL_EXPORT deprecationNeal Norwitz2002-07-221-0/+5
|
* Add note about DL_IMPORT deprecation.Mark Hammond2002-07-221-0/+4
| | | | [ 583894 ] doc DL_IMPORT/DL_EXPORT changes
* Fixed potential refcount problems with interned strings, adapted comments, ↵Jack Jansen2002-07-221-6/+16
| | | | added a bit more trace output if verbose > 1.
* Finally found out why te cf project sometimes worked and someimes didn't. ↵Jack Jansen2002-07-221-1/+1
| | | | Fixed it.
* New test "+sort", tacking 10 random floats on to the end of a sortedTim Peters2002-07-211-6/+9
| | | | | | | | | | array. Our samplesort special-cases the snot out of this, running about 12x faster than *sort. The experimental mergesort runs it about 8x faster than *sort without special-casing, but should really do better than that (when merging runs of different lengths, right now it only does something clever about finding where the second run begins in the first and where the first run ends in the second, and that's more of a temp-memory optimization).
* Changed import fromTim Peters2002-07-211-1/+1
| | | | | | | | | | | | | | | | | | from test.test_support import TestSkipped, run_unittest to from test_support import TestSkipped, run_unittest Otherwise, if the Japanese codecs aren't installed, regrtest doesn't believe the TestSkipped exception raised by this test matches the except (ImportError, test_support.TestSkipped), msg: it's looking for, and reports the skip as a crash failure instead of as a skipped test. I suppose this will make it harder to run this test outside of regrtest, but under the assumption only Barry does that, better to make it skip cleanly for everyone else.
* Bug: clearing the shell undo list after a prompt was allowing files to beKurt B. Kaiser2002-07-211-5/+11
| | | | opened on top of the shell instead of in a new window.
* Get popen test to work even if python is not in the pathNeal Norwitz2002-07-201-1/+1
|
* Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have themMartin v. Löwis2002-07-204-12/+39
| | | | available in the configure tests already.
* Added new test "3sort". This is sorted data but with 3 random exchanges.Tim Peters2002-07-201-1/+9
| | | | It's a little better than average for our sort.
* add versionadded to docNeal Norwitz2002-07-201-0/+3
|
* unpack_string(): avoid a compiler warning (about a real bug!) byGuido van Rossum2002-07-201-1/+4
| | | | | copying the result of fgetc() into an int variable before testing it for EOF.
* Move the setting of os.environ['LANGUAGE'] to setup(), and reset it toGuido van Rossum2002-07-201-1/+2
| | | | 'en' in teardown(). This way hopefully test_time.py won't fail.
* Shut the test up and add a missing importBarry Warsaw2002-07-192-2/+4
|
* The email package's tests live much better in a subpackageBarry Warsaw2002-07-196-2045/+2294
| | | | | | | | | | | | (i.e. email.test), so move the guts of them here from Lib/test. The latter directory will retain stubs to run the email.test tests using Python's standard regression test. test_email_torture.py is a torture tester which will not run under Python's test suite because I don't want to commit megs of data to that project (it will fail cleanly there). When run under the mimelib project it'll stress test the package with megs of message samples collected from various locations in the wild.
* The email package's tests live much better in a subpackageBarry Warsaw2002-07-1931-0/+1182
| | | | | | | | | | | | | | | (i.e. email.test), so move the guts of them here from Lib/test. The latter directory will retain stubs to run the email.test tests using Python's standard regression test. test_email_torture.py is a torture tester which will not run under Python's test suite because I don't want to commit megs of data to that project (it will fail cleanly there). When run under the mimelib project it'll stress test the package with megs of message samples collected from various locations in the wild. email/test/data is a copy of Lib/test/data. The fate of the latter is still undecided.
* message_from_string(), message_from_file(): The consensus on theBarry Warsaw2002-07-191-2/+2
| | | | | mimelib-devel list is that non-strict parsing should be the default. Make it so.
* Parser.__init__(): The consensus on the mimelib-devel list is thatBarry Warsaw2002-07-191-2/+2
| | | | non-strict parsing should be the default. Make it so.
* To better support default content types, fix an API wart, and preserveBarry Warsaw2002-07-191-13/+62
| | | | | | | | | | | | | | | | 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.
* _structure(): Take an optional `fp' argument which would be the objectBarry Warsaw2002-07-191-3/+7
| | | | to print>> the structure to. Defaults to sys.stdout.
* _dispatch(): Use the new Message.get_content_type() method as hashedBarry Warsaw2002-07-191-6/+1
| | | | out on the mimelib-devel list.
* Follow PyXML: Remove all prints from successful tests. This means we canFred Drake2002-07-192-241/+14
| | | | also drop the output file.