- 21 Eki, 2001 6 kayıt (commit)
-
-
Fredrik Lundh yazdı
strings, not C strings) removed USE_PYTHON defines, and related sre.py helpers skip calling the subx helper if the template is callable. interestingly enough, this means that def callback(m): return literal result = pattern.sub(callback, string) is much faster than result = pattern.sub(literal, string)
-
Piers Lauder yazdı
-
Fredrik Lundh yazdı
check to the test suite. added a few missing exception checks in the _sre module
-
Fredrik Lundh yazdı
removed (conceptually flawed) getliteral helper; the new sub/subn code uses a faster code path for literal replacement strings, but doesn't (yet) look for literal patterns. added STATE_OFFSET macro, and use it to convert state.start/ptr to char indexes
-
Martin v. Löwis yazdı
Do not set the Expat handlers if it is. Fixes PyXML bug #473195.
-
Guido van Rossum yazdı
'slotdef' structure typedef and 'struct wrapperbase'. By adding the wrapper docstrings to the slotdef structure, the slotdefs array can serve as the data structure that drives add_operators(); the wrapper descriptor contains a pointer to slotdef structure. This replaces lots of custom code from add_operators() by a loop over the slotdefs array, and does away with all the tab_xxx tables.
-
- 20 Eki, 2001 7 kayıt (commit)
-
-
Fredrik Lundh yazdı
also restored SRE Unicode support for 1.6/2.0/2.1
-
Andrew M. Kuchling yazdı
-
Andrew M. Kuchling yazdı
Allow passing strings to the .border() method Correct some error messages ("1 or 4" -> "1 to 4") Bump version number Tweak code formatting Update my e-mail address
-
Guido van Rossum yazdı
perrdetail.token is unitialized when there is a syntax error in a file.
-
Guido van Rossum yazdı
1. configure doesn't handle HP-UX release numbers (e.g., B.11.00), resulting in MACHDEP = "hpuxB". 2. After checking for wchar.h, configure doesn't include it when checking the size of wchar_t. (Python 2.2b1 on HP-UX 11.00)
-
Fred Drake yazdı
-
Fred Drake yazdı
in more detail, and use them where appropriate.
-
- 19 Eki, 2001 22 kayıt (commit)
-
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
-
Tim Peters yazdı
-
Fred Drake yazdı
parameters, given a hyperlink to the right part of the documentation to make it easier to look those up. Also, refer to the file() function/ constructor instead of open() now that that is where the actual docs for those parameters live. This closes SF bug #472004.
-
Barry Warsaw yazdı
-
Skip Montanaro yazdı
should have been checked in as part of patch #470254.
-
Thomas Heller yazdı
use the correct base for a buffer object in _PyBuffer_FromObject.
-
Guido van Rossum yazdı
This appears to be a case of a missing \n\ in a multiline string literal.
-
Marc-André Lemburg yazdı
This patch should also be applied to the 2.2b1 trunk.
-
Barry Warsaw yazdı
anything about the hotshot profiler, this file is ready for the 2.2b1 Windows build.
-
Barry Warsaw yazdı
epilogue, based on the discussion in this SF bug report: https://sourceforge.net/tracker/index.php?func=detail&aid=472481&group_id=25568&atid=384678
-
Barry Warsaw yazdı
TestMIMEMessage.test_epilogue(), TestIdempotent.test_preamble_epilogue(): Test cases for SF bug #472481.
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
_handle_multipart(): If there is an epilogue and the epilogue does not itself start with a newline, add a newline before writing the epilogue. Closes SF bug #472481.
-
Jeremy Hylton yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
This patch implements what we have discussed on python-dev late in September: str(obj) and unicode(obj) should behave similar, while the old behaviour is retained for unicode(obj, encoding, errors). The patch also adds a new feature with which objects can provide unicode(obj) with input data: the __unicode__ method. Currently no new tp_unicode slot is implemented; this is left as option for the future. Note that PyUnicode_FromEncodedObject() no longer accepts Unicode objects as input. The API name already suggests that Unicode objects do not belong in the list of acceptable objects and the functionality was only needed because PyUnicode_FromEncodedObject() was being used directly by unicode(). The latter was changed in the discussed way: * unicode(obj) calls PyObject_Unicode() * unicode(obj, encoding, errors) calls PyUnicode_FromEncodedObject() One thing left open to discussion is whether to leave the PyUnicode_FromObject() API as a thin API extension on top of PyUnicode_FromEncodedObject() or to turn it into a (macro) alias for PyObject_Unicode() and deprecate it. Doing so would have some surprising consequences though, e.g. u"abc" + 123 would turn out as u"abc123"... [Marc-Andre didn't have time to check this in before the deadline. I hope this is OK, Marc-Andre! You can still make changes and commit them on the trunk after the branch has been made, but then please mail Barry a context diff if you want the change to be merged into the 2.2b1 release branch. GvR]
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
In Include/, marshal.h declares both PyMarshal_ReadLongFromFile() and PyMarshal_ReadShortFromFile(), but the second is missing from marshal.c. [Shouldn't the return type be declared as 'short' instead of 'int'? But 'int' is what was in marshal.h all those years... --Guido]
-
Guido van Rossum yazdı
This adds unsetenv to posix, and uses it in the __delitem__ method of os.environ. (XXX Should we change the preferred name for putenv to setenv, for consistency?)
-
Guido van Rossum yazdı
This was submitted by Moshe, but apparently he's too busy to check it in himself. He wrote: Here is a function in GNU readline called add_history, which is used to manage the history list. Though Python uses this function internally, it does not expose it to the Python programmer. This patch adds direct interface to this function with documentation. This could be used by friendly modules to "seed" the history with commands.
-
- 18 Eki, 2001 5 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Tim Peters yazdı
-
Martin v. Löwis yazdı
199712 didn't have dlfcn.h, or that it wouldn't conflict with the other stuff defined.
-
Guido van Rossum yazdı
TypeError (on systems where it's not defined at all, it raises AttributeError; when it's defined, assignment to it raises TypeError).
-