summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* Fix a copy-paste error: the paragraph about inet_ntop's use was copiedGuido van Rossum2003-04-251-2/+2
| | | | literally from inet_pton.
* Remove tests which were migrated to test_re.py. There are still more testsSkip Montanaro2003-04-251-262/+0
| | | | to migrate.
* reflect csv's change back to a module. Document the new sniffer api.Skip Montanaro2003-04-251-20/+14
|
* Use a simpler \note instead of a "See also" section to refer to theFred Drake2003-04-251-5/+2
| | | | os.walk() generator.
* Skip testing inet_ntop() an inet_pton() if they aren't defined.Guido van Rossum2003-04-251-0/+8
| | | | | This makes the test pass on Windows again (and on other platforms that don't have these).
* Fix the tests on Windows, by writing the test data file in binaryGuido van Rossum2003-04-251-1/+1
| | | | | | | | | mode. XXX I'm not convinced that this is the right solution -- arguably, on Windows, the _fileobject class should honor the mode argument and do newline translation. But it's never done that so I think there's no urgent need to fix this today.
* Add versionadded for has_ipv6 attributeNeal Norwitz2003-04-251-0/+1
|
* Fix markupNeal Norwitz2003-04-251-1/+1
|
* markup adjustmentsFred Drake2003-04-251-5/+4
|
* rework Sniffer api significantlySkip Montanaro2003-04-251-41/+26
|
* some sniffer testsSkip Montanaro2003-04-251-0/+34
|
* more tests from test_sreSkip Montanaro2003-04-251-2/+44
|
* Attempt to deal with some obvious errors in the code. These were allFred Drake2003-04-251-15/+14
| | | | | | | | | | due to using a single module-level namespace where multiple namespaces were used before. There *really* need to be tests for the sniffer stuff. This could have been avoided. Skip, please review, and add sniffer tests!
* New version from Vinaj, should solve the threading problems (hopefully).Guido van Rossum2003-04-252-7/+18
|
* copy a few tests from test_sreSkip Montanaro2003-04-251-0/+15
|
* Port test_bool.py to PyUnit. From SF patch #662807.Walter Dörwald2003-04-251-253/+328
|
* Complete rewrite of module. Only has tests using temporary files; net testsBrett Cannon2003-04-251-102/+376
| | | | | | should go in test_urllibnet.py . Still need to write tests for _urlopener usage and urlretrieve.
* New generator os.walk() does a bit more than os.path.walk() does, andTim Peters2003-04-255-5/+242
| | | | | seems much easier to use. Code, docs, NEWS, and additions to test_os.py (testing this sucker is a bitch!).
* Move socket news to 2.3b1 section! And mention has_ipv6.Guido van Rossum2003-04-251-4/+5
|
* Patch by Jp Calderone:Guido van Rossum2003-04-256-1/+221
| | | | | | | | | - The socket module now provides the functions inet_pton and inet_ntop for converting between string and packed representation of IP addresses. See SF patch #658327. This still needs a bit of work in the doc area, because it is not available on all platforms (especially not on Windows).
* test_re is no longer neededGuido van Rossum2003-04-251-2/+0
|
* Fix test_limitations(). The match there is *expected* to raiseGuido van Rossum2003-04-251-1/+6
| | | | RuntimeError.
* [Patch #628208] Document the allow_none argumentAndrew M. Kuchling2003-04-251-2/+8
|
* [Patch #628208] Test the 'nil' extensionAndrew M. Kuchling2003-04-251-0/+8
|
* [Patch #628208] Add optional support for the 'nil' extensionAndrew M. Kuchling2003-04-251-8/+24
|
* Try to recover from changes in the structure of the CSV package/module.Tim Peters2003-04-241-14/+0
|