summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Do a little bit more to try and add <link> elements to the header, not thatFred Drake2001-10-221-1/+10
| | | | | | | Mozilla 0.9.5 can make intelligent use of them. Specifically, this causes the "Acknowledgements" and "Global Module Index" pages to acquire "up" links in the Mozilla "Site Navigation Bar". This partially responds to SF bug #469772.
* Clarify that the resource module does not attempt to mask platformFred Drake2001-10-221-1/+3
| | | | | differences by defining symbols not defined on particular platforms. This closes SF bug #473433.
* Add correction from /F about SREAndrew M. Kuchling2001-10-221-10/+10
| | | | \filename{} should be \file{}
* sre.split should return the last segment, even if emptyFredrik Lundh2001-10-222-11/+11
| | | | (sorry, barry)
* Make the error message for unsupported operand types cleaner, inGuido van Rossum2001-10-222-8/+28
| | | | | | | | | | | | response to a message by Laura Creighton on c.l.py. E.g. >>> 0+'' TypeError: unsupported operand types for +: 'int' and 'str' (previously this did not mention the operand types) >>> ''+0 TypeError: cannot concatenate 'str' and 'int' objects
* Partly fill out the PEP 252 sectionAndrew M. Kuchling2001-10-221-12/+214
|
* A bunch of minor rewordingsAndrew M. Kuchling2001-10-221-48/+64
|
* Fix for SF bug #472940: can't getattr() attribute shown by dir()Guido van Rossum2001-10-222-33/+6
| | | | | | | | | | There really isn't a good reason for instance method objects to have their own __dict__, __doc__ and __name__ properties that just delegate the request to the function (callable); the default attribute behavior already does this. The test suite had to be fixed because the error changes from TypeError to AttributeError.
* Fix some typosAndrew M. Kuchling2001-10-221-4/+4
|
* Methods of built-in types now properly check for keyword argumentsGuido van Rossum2001-10-225-12/+45
| | | | | (formerly these were silently ignored). The only built-in methods that take keyword arguments are __call__, __init__ and __new__.
* Make tabnanny happy. (Piers, please run the test suite beforeGuido van Rossum2001-10-221-7/+7
| | | | | checking in changes. The test suite requires consistent use of spaces and tabs.)
* update version numberPiers Lauder2001-10-211-1/+1
|
* install on HP-UX does not support the -d option. Using the install-sh instead.Neil Schemenauer2001-10-212-318/+329
| | | | This fixes SF bug: [ #473491 ] "install -d" doesn't work on HP-UX.
* Add missing "static" declarations (found by "make smelly").Neil Schemenauer2001-10-212-5/+5
|
* Adding missing "static" declarations (found by "make smelly").Neil Schemenauer2001-10-213-5/+5
|
* - Build dbm module using libdb1 if it's available. This fixes SF bug "[Neil Schemenauer2001-10-211-0/+5
| | | | | | | #230075 ] dbmmodule build fails on Debian GNU/Linux unstable (Sid)". - Build bsddb module with libdb3 if it's available. It also fixes a bug that causes the build of bsddb to fail on Debian if bsddb3-dev is installed.
* fixed character set description in docstring (SRE uses PythonFredrik Lundh2001-10-212-176/+56
| | | | | | | | | | | | | | | | | 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)
* fix send method not noticing when partial sends happenPiers Lauder2001-10-211-1/+7
|
* sre.Scanner fixes (from Greg Chapman). also added a Scanner sanityFredrik Lundh2001-10-213-5/+43
| | | | | | check to the test suite. added a few missing exception checks in the _sre module
* rewrote the pattern.sub and pattern.subn methods in CFredrik Lundh2001-10-212-130/+331
| | | | | | | | | 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
* Change clear_handlers argument to indicate whether this is an initialization.Martin v. Löwis2001-10-211-9/+10
| | | | Do not set the Expat handlers if it is. Fixes PyXML bug #473195.
* Big internal change that should have no external effects: unify theGuido van Rossum2001-10-212-527/+246
| | | | | | | | | '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.
* rewrote the pattern.split method in CFredrik Lundh2001-10-201-12/+136
| | | | also restored SRE Unicode support for 1.6/2.0/2.1
* Update description of border()Andrew M. Kuchling2001-10-201-3/+2
|
* Add two forgotten 'break' statementsAndrew M. Kuchling2001-10-201-15/+40
| | | | | | | | 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
* Patch from SF bug #472956: UMR when there is a syntax error (Neal Norwitz)Guido van Rossum2001-10-201-12/+15
| | | | | perrdetail.token is unitialized when there is a syntax error in a file.
* Patch from SF bug #473150: configure weaknesses on HP-UX (Michael Piotrowski)Guido van Rossum2001-10-204-5/+6
| | | | | | | | | | 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)
* Use the \note and \warning macros where appropriate.Fred Drake2001-10-2045-163/+156
|
* Describe the content given as the parameter to the \note and \warning macrosFred Drake2001-10-201-10/+13
| | | | in more detail, and use them where appropriate.
* Additional rules to support the iSilo conversion.Fred Drake2001-10-191-1/+110
|
* Hush up CVS.Fred Drake2001-10-191-0/+10
|
* Support for the iSilo conversion.Fred Drake2001-10-191-0/+12
|
* The usual post-release fiddling.Tim Peters2001-10-192-4/+29
|
* When stating that some parameters to makefile() are similar to the open()Fred Drake2001-10-191-1/+2
| | | | | | | | 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.
* Updated version numbers for post 2.2b1 development.Barry Warsaw2001-10-191-3/+3
|
* added tests for long ints and ints where they are > 32 bits.Skip Montanaro2001-10-191-0/+14
| | | | should have been checked in as part of patch #470254.
* Fix for Bug #216405:Thomas Heller2001-10-191-4/+6
| | | | use the correct base for a buffer object in _PyBuffer_FromObject.
* (Hopefully) fix SF bug #472675: CVS socketmodule now doesn't compileGuido van Rossum2001-10-191-1/+1
| | | | | This appears to be a case of a missing \n\ in a multiline string literal.
* Additional test and documentation for the unicode() changes.Marc-André Lemburg2001-10-195-37/+93
| | | | This patch should also be applied to the 2.2b1 trunk.
* Last minute updates for changes since 2.2a4. Unless Fred wants to addBarry Warsaw2001-10-191-2/+37
| | | | | anything about the hotshot profiler, this file is ready for the 2.2b1 Windows build.
* Added a note about the somewhat kludgey behavior of the messageBarry Warsaw2001-10-191-0/+10
| | | | | | 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
* Another merge from mimelib:Barry Warsaw2001-10-191-0/+27
| | | | | TestMIMEMessage.test_epilogue(), TestIdempotent.test_preamble_epilogue(): Test cases for SF bug #472481.
* Another email package test fileBarry Warsaw2001-10-191-0/+22
|
* Another merge from mimelib:Barry Warsaw2001-10-191-0/+2
| | | | | | _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.
* Add entry for RAND_xxx() functions in socket module.Jeremy Hylton2001-10-191-0/+5
|
* Note the Unicode changes from SF patch #470578.Guido van Rossum2001-10-191-1/+9
|
* SF patch #470578: Fixes to synchronize unicode() and str()Guido van Rossum2001-10-193-72/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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]
* Another.Guido van Rossum2001-10-191-0/+1
|
* SF patch #470393 (Jim Ahlstrom): Add missing marshal functionGuido van Rossum2001-10-191-0/+8
| | | | | | | | | | 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]
* SF patch #460805 by Chris Gonnerman: Support for unsetenv()Guido van Rossum2001-10-196-20/+82
| | | | | | | | 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?)