summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Port test_richcmp.py to PyUnit. From SF patch #662807 which additionalWalter Dörwald2003-04-292-366/+276
| | | | tests and comments.
* document socket speed reclamation. Patch 729293.Skip Montanaro2003-04-291-0/+3
|
* Use the new htmlentitydefs.codepoint2name for test_xmlcharnamereplace()Walter Dörwald2003-04-291-7/+1
|
* Add doctest for example in the library reference.Raymond Hettinger2003-04-291-0/+40
|
* Extract the errno value to use from the errno module if possible.Fred Drake2003-04-291-1/+6
|
* When an unhandled exception happens, report the repr() of the functionGuido van Rossum2003-04-291-5/+13
| | | | | | | that was used to start the thread. This is useful to track down the source of the problem when there is no traceback, as can happen when a daemon thread gets to run after Python is finialized (a new kind of event, somehow this is now possible due to changes in Py_Finalize()).
* Regain throughput lost with the _socketobject wrapper. TheSkip Montanaro2003-04-291-3/+9
| | | | | throughput-sensitive methods are grabbed from the underlying _socket.socket object. Closes SF patch 729293.
* Use Tim's suggestion to fixMichael W. Hudson2003-04-292-15/+52
| | | | | | | | | [ 708901 ] Lineno calculation sometimes broken A one line patch to compile.c and a rather-more-than-one-line patch to test_dis. Hey ho. Possibly a backport candidate -- tho' lnotab is less used in 2.2...
* Armin Rigo's fix & test forMichael W. Hudson2003-04-292-9/+31
| | | | | | [ 729622 ] line tracing hook errors with massaging from me to integrate test into test suite.
* Applying patch #728656, by logistix, fixing opening of nonexistentGustavo Niemeyer2003-04-292-1/+6
| | | | bz2 files. Also, included a testcase for this problem.
* Remove file that was moved to ../IncludeGuido van Rossum2003-04-291-18/+0
|
* - clean up some extra punctuation hidden in indexing markupFred Drake2003-04-291-13/+10
| | | | | - fix a typo and one markup nit - normalize whitespace
* Clarify that the timeout argument to read_until() is in seconds.Fred Drake2003-04-291-1/+2
|
* Removing new files accidentally checked in on the trunk rather than on theGuido van Rossum2003-04-2926-4632/+0
| | | | idlefork-merge-branch.
* Add back files that were accidentally deleted on the trunk rather thanGuido van Rossum2003-04-2914-0/+1865
| | | | on the idlefork-merge-branch as intended.
* Checking in IDLEFORK exactly as it appears in the idlefork CVS.Guido van Rossum2003-04-2940-1865/+4632
| | | | On a branch, for now.
* Added tests for urlretrieve. Also made sure urlopen tests cleaned up ↵Brett Cannon2003-04-291-8/+48
| | | | properly after themselves.
* SF bug #729096: getopt online documentation example improvementRaymond Hettinger2003-04-291-1/+4
| | | | | | | | | | | A newbie found it difficult to translate the exampe into a case that used only short options or long options but not both. He tried to shorten the tuple search but forgot the trailing comma, The appropriate pattern is an equality check. Revised the example to point him in the right direction. Backport candidate.
* Add comment that urlopen opens local files without universal newlinesBrett Cannon2003-04-291-8/+8
|
* Reworded fabs() for consistency with the others. Noted that allTim Peters2003-04-281-2/+3
| | | | return values are floats.
* Raise a ValueError when there is data that was not covered in the format ↵Brett Cannon2003-04-282-0/+7
| | | | string. Done to match behavior of pre-existing C-based strptime implementations.
* walk() docs: Emphasize that the recursive-delete example is dangerous.Tim Peters2003-04-281-0/+2
|
* SF bug 728097: tmpnam problems on windows 2.3b, breaks test.test_os.Tim Peters2003-04-282-2/+27
| | | | | | | | | tmpnam() appears essentially useless on Windows, and it finally broke the test for Irmen de Jong. Read the long new comment in test_tmpnam() for details. Since the MS implementation is insane, it might be good if we supplied a different implementation. Bugfix candidate.
* walk() docs: Worked "walking" into the description and the text. AddedTim Peters2003-04-281-1/+18
| | | | a brief example where bottom-up walking is essential.
* Make tests clean up after themselves better. This means:Brett Cannon2003-04-271-2/+18
| | | | | | | | * call tearDown when Setup is called * shutil.rmtree the root of the created directory instead of just the leaf directory * set the LANGUAGE environment variable to what it was originally and not assume 'en'.
* - Included detailed documentation in _sre.c explaining how, when, and whyGustavo Niemeyer2003-04-271-17/+41
| | | | | | | | | | | | to use LASTMARK_SAVE()/LASTMARK_RESTORE(), based on the discussion in patch #712900. - Cleaned up LASTMARK_SAVE()/LASTMARK_RESTORE() usage, based on the established rules. - Moved the upper part of the just commited patch (relative to bug #725106) to outside the for() loop of BRANCH OP. There's no need to mark_save() in every loop iteration.
* Fix for part of the problem mentioned in #725149 by Greg Chapman.Gustavo Niemeyer2003-04-272-8/+17
| | | | | | | | | | | | | | | | | | | This problem is related to a wrong behavior from mark_save/restore(), which don't restore the mark_stack_base before restoring the marks. Greg's suggestion was to change the asserts, which happen to be the only recursive ops that can continue the loop, but the problem would happen to any operation with the same behavior. So, rather than hardcoding this into asserts, I have changed mark_save/restore() to always restore the stackbase before restoring the marks. Both solutions should fix these two cases, presented by Greg: >>> re.match('(a)(?:(?=(b)*)c)*', 'abb').groups() ('b', None) >>> re.match('(a)((?!(b)*))*', 'abb').groups() ('b', None, None) The rest of the bug and patch in #725149 must be discussed further.
* Applied patch #725106, by Greg Chapman, fixing capturing groupsGustavo Niemeyer2003-04-272-0/+29
| | | | | | | | | | | | | | | | | | | | within repeats of alternatives. The only change to the original patch was to convert the tests to the new test_re.py file. This patch fixes cases like: >>> re.match('((a)|b)*', 'abc').groups() ('b', '') Which is wrong (it's impossible to match the empty string), and incompatible with other regex systems, like the following examples show: % perl -e '"abc" =~ /^((a)|b)*/; print "$1 $2\n";' b a % echo "abc" | sed -r -e "s/^((a)|b)*/\1 \2|/" b a|c
* Factor out common boilerplate for test_supportRaymond Hettinger2003-04-274-24/+14
|
* Applying patch #726869 by Andrew I MacIntyre, reducing in _sre.c theGustavo Niemeyer2003-04-271-0/+9
| | | | recursion limit for certain setups of FreeBSD and OS/2.
* Applying patch by Neal Norwitz:Gustavo Niemeyer2003-04-271-0/+25
| | | | [#727759] get bzip2 to build on Solaris 8 (old bzip library)
* Clarified new text about math exceptions.Tim Peters2003-04-261-4/+9
| | | | Bugfix candidate.
* A start on news for 2.3b2.Tim Peters2003-04-261-0/+41
|
* Rewrote. As reported on c.l.py, when the test suite is run viaTim Peters2003-04-261-20/+30
| | | | | | | | | | | | | | "import test.autotest", temp_imp failed because the import lock was still held at the test's end (the test assumed it wouldn't be), and then a RuntimeError got raised at the end of the entire suite run because test_imp cleared the import lock as a side effect of trying to test that the import lock wasn't held (but a legitimate import is in progress, so the lock should be held, and the import machinery complained when it found that the lock was unexpectedly cleareed). Also removed the unittest scaffolding. It didn't buy anything here, and the test was raising regrtest's TestFailed instead of using the unittest failure-reporting mechanisms.
* Add note about platform-specific behavior arising from discussion on bugSkip Montanaro2003-04-261-1/+11
| | | | 711019.
* Use os.walk() to find files to delete.Tim Peters2003-04-261-13/+14
|
* Version updates for Python 2.3.Fred Drake2003-04-262-4/+7
|
* Merge back from r23b1-branchGuido van Rossum2003-04-262-3/+4
|
* Update version number and release date.Guido van Rossum2003-04-252-3/+3
|
* New feature: when saving a file, keep the eol convention of theGuido van Rossum2003-04-251-3/+11
| | | | | | original. New files are written using the eol convention of the platform, given by os.linesep. All files are read and written in binary mode.
* organizational and markup cleansingFred Drake2003-04-251-76/+81
|
* Update for release into PythonKurt B. Kaiser2003-04-252-2/+2
| | | | NEWS.txt idlever.py
* Updated information on package metadata to reflect recent additions.Fred Drake2003-04-251-33/+68
| | | | This is a modified form of SF patch #718027 (mostly markup changes).
* Update for 2.3b1Kurt B. Kaiser2003-04-254-15/+18
| | | | | Modified Files: NEWS.txt CREDITS.txt INSTALL.txt setup.cfg
* - add availability statements for some of the new APIsFred Drake2003-04-251-38/+38
| | | | - lots of general cleanup
* final bit of tests converted from test_sreSkip Montanaro2003-04-251-8/+25
|
* test_sre is dead! long live test_re!Skip Montanaro2003-04-251-116/+0
|
* deleted more tests which were either already in test_re or that I migratedSkip Montanaro2003-04-251-76/+0
| | | | in the last revison
* more tests converted from test_sreSkip Montanaro2003-04-251-14/+35
|
* Add modified versions of the examples from Sean ReifschneiderFred Drake2003-04-251-0/+36
| | | | (SF patch #545480).