Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix for part of the problem mentioned in #725149 by Greg Chapman. | Gustavo Niemeyer | 2003-04-27 | 2 | -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 groups | Gustavo Niemeyer | 2003-04-27 | 2 | -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_support | Raymond Hettinger | 2003-04-27 | 4 | -24/+14 |
| | |||||
* | Applying patch #726869 by Andrew I MacIntyre, reducing in _sre.c the | Gustavo Niemeyer | 2003-04-27 | 1 | -0/+9 |
| | | | | recursion limit for certain setups of FreeBSD and OS/2. | ||||
* | Applying patch by Neal Norwitz: | Gustavo Niemeyer | 2003-04-27 | 1 | -0/+25 |
| | | | | [#727759] get bzip2 to build on Solaris 8 (old bzip library) | ||||
* | Clarified new text about math exceptions. | Tim Peters | 2003-04-26 | 1 | -4/+9 |
| | | | | Bugfix candidate. | ||||
* | A start on news for 2.3b2. | Tim Peters | 2003-04-26 | 1 | -0/+41 |
| | |||||
* | Rewrote. As reported on c.l.py, when the test suite is run via | Tim Peters | 2003-04-26 | 1 | -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 bug | Skip Montanaro | 2003-04-26 | 1 | -1/+11 |
| | | | | 711019. | ||||
* | Use os.walk() to find files to delete. | Tim Peters | 2003-04-26 | 1 | -13/+14 |
| | |||||
* | Version updates for Python 2.3. | Fred Drake | 2003-04-26 | 2 | -4/+7 |
| | |||||
* | Merge back from r23b1-branch | Guido van Rossum | 2003-04-26 | 2 | -3/+4 |
| | |||||
* | Update version number and release date. | Guido van Rossum | 2003-04-25 | 2 | -3/+3 |
| | |||||
* | New feature: when saving a file, keep the eol convention of the | Guido van Rossum | 2003-04-25 | 1 | -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 cleansing | Fred Drake | 2003-04-25 | 1 | -76/+81 |
| | |||||
* | Update for release into Python | Kurt B. Kaiser | 2003-04-25 | 2 | -2/+2 |
| | | | | NEWS.txt idlever.py | ||||
* | Updated information on package metadata to reflect recent additions. | Fred Drake | 2003-04-25 | 1 | -33/+68 |
| | | | | This is a modified form of SF patch #718027 (mostly markup changes). | ||||
* | Update for 2.3b1 | Kurt B. Kaiser | 2003-04-25 | 4 | -15/+18 |
| | | | | | Modified Files: NEWS.txt CREDITS.txt INSTALL.txt setup.cfg | ||||
* | - add availability statements for some of the new APIs | Fred Drake | 2003-04-25 | 1 | -38/+38 |
| | | | | - lots of general cleanup | ||||
* | final bit of tests converted from test_sre | Skip Montanaro | 2003-04-25 | 1 | -8/+25 |
| | |||||
* | test_sre is dead! long live test_re! | Skip Montanaro | 2003-04-25 | 1 | -116/+0 |
| | |||||
* | deleted more tests which were either already in test_re or that I migrated | Skip Montanaro | 2003-04-25 | 1 | -76/+0 |
| | | | | in the last revison | ||||
* | more tests converted from test_sre | Skip Montanaro | 2003-04-25 | 1 | -14/+35 |
| | |||||
* | Add modified versions of the examples from Sean Reifschneider | Fred Drake | 2003-04-25 | 1 | -0/+36 |
| | | | | (SF patch #545480). | ||||
* | Fix a copy-paste error: the paragraph about inet_ntop's use was copied | Guido van Rossum | 2003-04-25 | 1 | -2/+2 |
| | | | | literally from inet_pton. | ||||
* | Remove tests which were migrated to test_re.py. There are still more tests | Skip Montanaro | 2003-04-25 | 1 | -262/+0 |
| | | | | to migrate. | ||||
* | reflect csv's change back to a module. Document the new sniffer api. | Skip Montanaro | 2003-04-25 | 1 | -20/+14 |
| | |||||
* | Use a simpler \note instead of a "See also" section to refer to the | Fred Drake | 2003-04-25 | 1 | -5/+2 |
| | | | | os.walk() generator. | ||||
* | Skip testing inet_ntop() an inet_pton() if they aren't defined. | Guido van Rossum | 2003-04-25 | 1 | -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 binary | Guido van Rossum | 2003-04-25 | 1 | -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 attribute | Neal Norwitz | 2003-04-25 | 1 | -0/+1 |
| | |||||
* | Fix markup | Neal Norwitz | 2003-04-25 | 1 | -1/+1 |
| | |||||
* | markup adjustments | Fred Drake | 2003-04-25 | 1 | -5/+4 |
| | |||||
* | rework Sniffer api significantly | Skip Montanaro | 2003-04-25 | 1 | -41/+26 |
| | |||||
* | some sniffer tests | Skip Montanaro | 2003-04-25 | 1 | -0/+34 |
| | |||||
* | more tests from test_sre | Skip Montanaro | 2003-04-25 | 1 | -2/+44 |
| | |||||
* | Attempt to deal with some obvious errors in the code. These were all | Fred Drake | 2003-04-25 | 1 | -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 Rossum | 2003-04-25 | 2 | -7/+18 |
| | |||||
* | copy a few tests from test_sre | Skip Montanaro | 2003-04-25 | 1 | -0/+15 |
| | |||||
* | Port test_bool.py to PyUnit. From SF patch #662807. | Walter Dörwald | 2003-04-25 | 1 | -253/+328 |
| | |||||
* | Complete rewrite of module. Only has tests using temporary files; net tests | Brett Cannon | 2003-04-25 | 1 | -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, and | Tim Peters | 2003-04-25 | 5 | -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 Rossum | 2003-04-25 | 1 | -4/+5 |
| | |||||
* | Patch by Jp Calderone: | Guido van Rossum | 2003-04-25 | 6 | -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 needed | Guido van Rossum | 2003-04-25 | 1 | -2/+0 |
| | |||||
* | Fix test_limitations(). The match there is *expected* to raise | Guido van Rossum | 2003-04-25 | 1 | -1/+6 |
| | | | | RuntimeError. | ||||
* | [Patch #628208] Document the allow_none argument | Andrew M. Kuchling | 2003-04-25 | 1 | -2/+8 |
| | |||||
* | [Patch #628208] Test the 'nil' extension | Andrew M. Kuchling | 2003-04-25 | 1 | -0/+8 |
| | |||||
* | [Patch #628208] Add optional support for the 'nil' extension | Andrew M. Kuchling | 2003-04-25 | 1 | -8/+24 |
| | |||||
* | Try to recover from changes in the structure of the CSV package/module. | Tim Peters | 2003-04-24 | 1 | -14/+0 |
| |