Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump version number. | Fred Drake | 2001-09-21 | 2 | -2/+2 |
| | |||||
* | Added reference to Tutorial section on user-defined exceptions for | Fred Drake | 2001-09-21 | 1 | -9/+15 |
| | | | | | information on defining new exceptions. This closes SF bug #443559. | ||||
* | Exceptions in interactive examlpes did not always include the indication of | Fred Drake | 2001-09-21 | 1 | -19/+85 |
| | | | | | | | | | the source file using "in ?". Added a description of the bare "raise" statement. Added more description and examples for user-defined exceptions; this is part of a response to SF bug #443559. | ||||
* | reportdiff(): print a "plain diff" style diff. | Guido van Rossum | 2001-09-21 | 1 | -4/+30 |
| | | | | XXX This should really be a unified diff, but I can't be bothered. | ||||
* | Oops. I didn't expect that some tests (test_cookie) have expected | Guido van Rossum | 2001-09-21 | 2 | -9/+3 |
| | | | | | output *and* doctest stuff. Assuming the doctest stuff comes after the expected output, this fixes that. | ||||
* | Change the way unexpected output is reported: rather than stopping at | Guido van Rossum | 2001-09-21 | 2 | -94/+52 |
| | | | | | | | | | | the first difference, let the test run till completion, then gather all the output and compare it to the expected output using difflib. XXX Still to do: produce diff output that only shows the sections that differ; currently it produces ndiff-style output because that's the easiest to produce with difflib, but this becomes a liability when the output is voluminous and there are only a few differences. | ||||
* | Change the name of the __getattr__ special method for new-style | Guido van Rossum | 2001-09-21 | 3 | -11/+11 |
| | | | | | | | | classes to __getattribute__, to make it crystal-clear that it doesn't have the same semantics as overriding __getattr__ on classic classes. This is a halfway checkin -- I'll proceed to add a __getattr__ hook that works the way it works in classic classes. | ||||
* | Make these modules work when Python is compiled without Unicode support. | Guido van Rossum | 2001-09-21 | 3 | -5/+18 |
| | |||||
* | Add tests for repr() of strings containing string quotes as well. | Guido van Rossum | 2001-09-21 | 1 | -0/+4 |
| | |||||
* | Fix a bug in rendering of \\ by repr() -- it rendered as \\\ instead | Guido van Rossum | 2001-09-21 | 1 | -0/+1 |
| | | | | of \\. | ||||
* | Test basic functioning of unicode repr(). (If this breaks Jython, | Guido van Rossum | 2001-09-21 | 1 | -0/+11 |
| | | | | please let me know and we'll figure out how to fix the test.) | ||||
* | Add a small test to verify that member and getset descriptors now have | Guido van Rossum | 2001-09-20 | 1 | -0/+8 |
| | | | | docstrings (using file.closed and file.name as examples). | ||||
* | Add optional docstrings to getset descriptors. Fortunately, there's | Guido van Rossum | 2001-09-20 | 10 | -26/+43 |
| | | | | | | | | | | no backwards compatibility to worry about, so I just pushed the 'closure' struct member to the back -- it's never used in the current code base (I may eliminate it, but that's more work because the getter and setter signatures would have to change.) As examples, I added actual docstrings to the getset attributes of a few types: file.closed, xxsubtype.spamdict.state. | ||||
* | Change testdescr.py to use the test_main() approach. | Guido van Rossum | 2001-09-20 | 1 | -4/+4 |
| | |||||
* | Change the PyUnit-based tests to use the test_main() approach. This | Fred Drake | 2001-09-20 | 34 | -39/+229 |
| | | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves. | ||||
* | Add optional docstrings to member descriptors. For backwards | Guido van Rossum | 2001-09-20 | 17 | -251/+313 |
| | | | | | | | | | | | | | | | compatibility, this required all places where an array of "struct memberlist" structures was declared that is referenced from a type's tp_members slot to change the type of the structure to PyMemberDef; "struct memberlist" is now only used by old code that still calls PyMember_Get/Set. The code in PyObject_GenericGetAttr/SetAttr now calls the new APIs PyMember_GetOne/SetOne, which take a PyMemberDef argument. As examples, I added actual docstrings to the attributes of a few types: file, complex, instance method, super, and xxsubtype.spamlist. Also converted the symtable to new style getattr. | ||||
* | Fill in a few more descriptions for xml.parsers.expat. | Fred Drake | 2001-09-20 | 1 | -5/+24 |
| | |||||
* | Document new file() constructor, with the body of open()'s text, plus a | Tim Peters | 2001-09-20 | 1 | -37/+45 |
| | | | | | "new in 2.2" blurb at the end. Replace open()'s text by pointing back to file(). | ||||
* | Document all the Py*_CheckExact() functions. | Fred Drake | 2001-09-20 | 2 | -26/+174 |
| | | | | Document many more of the PyLong_{As,From}*() functions. | ||||
* | PyLocale_setlocale(): silence compiler warning about free() of a const | Guido van Rossum | 2001-09-20 | 1 | -1/+1 |
| | | | | char *. | ||||
* | Fix Unicode .join() method to raise a TypeError for sequence | Marc-André Lemburg | 2001-09-20 | 2 | -2/+11 |
| | | | | | | | | | | elements which are not Unicode objects or strings. (This matches the string.join() behaviour.) Fix a memory leak in the .join() method which occurs in case the Unicode resize fails. Restore the test_unicode output. | ||||
* | Update test output after the unicode() change. | Marc-André Lemburg | 2001-09-20 | 1 | -0/+1 |
| | |||||
* | Update description of Tools/compiler | Jeremy Hylton | 2001-09-20 | 1 | -3/+2 |
| | |||||
* | Remove setup.py, unnecessary since compiler package is the std | Jeremy Hylton | 2001-09-20 | 2 | -14/+2 |
| | | | | | | library. Update README. | ||||
* | Moved to Tools/compiler along with astgen.py | Jeremy Hylton | 2001-09-20 | 1 | -87/+0 |
| | |||||
* | _PyObject_GetDictPtr(): when the offset is negative, always align -- | Guido van Rossum | 2001-09-20 | 1 | -11/+6 |
| | | | | we can't trust that tp_basicsize is aligned. Fixes SF bug #462848. | ||||
* | Note about enhancements to unicode(). | Marc-André Lemburg | 2001-09-20 | 1 | -0/+6 |
| | |||||
* | Python part of the UTF-7 codec by Brian Quinlan. | Marc-André Lemburg | 2001-09-20 | 1 | -0/+27 |
| | |||||
* | Implement the changes proposed in patch #413333. unicode(obj) now | Marc-André Lemburg | 2001-09-20 | 2 | -42/+60 |
| | | | | | works just like str(obj) in that it tries __str__/tp_str on the object in case it finds that the object is not a string or buffer. | ||||
* | Patch #435971: UTF-7 codec by Brian Quinlan. | Marc-André Lemburg | 2001-09-20 | 5 | -1/+392 |
| | |||||
* | Patch #462635 by Andrew Kuchling correcting bugs in the new | Marc-André Lemburg | 2001-09-20 | 5 | -11/+21 |
| | | | | | codecs -- the self argument does matter for Python functions (it does not for C functions which most other codecs use). | ||||
* | SF bug [#463093] File methods need doc strings. | Tim Peters | 2001-09-20 | 1 | -14/+94 |
| | | | | Now they don't. | ||||
* | run_suite(): Oops, update a docstring. | Barry Warsaw | 2001-09-20 | 1 | -1/+1 |
| | |||||
* | run_suite(): Factor this out of run_unittest() for tests that build | Barry Warsaw | 2001-09-20 | 1 | -2/+7 |
| | | | | | | | | their own test suite from a multitude of classes (like test_email.py will be doing). run_unittest(): Call run_suite() after making a suite from the testclass. | ||||
* | Since inspect.isfunction(obj) is a precondition for calling | Tim Peters | 2001-09-20 | 1 | -6/+6 |
| | | | | | | | | inspect.getargspec(obj), test isfunction() directly in pydoc.py instead of trying to indirectly deduce isfunction() in pydoc by virtue of failing a combination of other tests. This shouldn't have any visible effect, except perhaps to squash a TypeError death if there was some path thru this code that was inferring isfunction() by mistake. | ||||
* | Ensure that isfunction(obj) and (the new) ismethoddescriptor(obj) never | Tim Peters | 2001-09-20 | 1 | -5/+8 |
| | | | | | both return true. This restores pydoc's ability to deduce argument lists for functions and methods coded in Python. | ||||
* | News about compiler and pydoc. | Guido van Rossum | 2001-09-20 | 1 | -3/+9 |
| | |||||
* | AFAICT pydoc/inspect do the right thing again. | Guido van Rossum | 2001-09-20 | 1 | -2/+3 |
| | |||||
* | After much thrashing, I believe this is a truly minimal patch to teach | Tim Peters | 2001-09-20 | 2 | -4/+27 |
| | | | | | pydoc how to do something sensible with 2.2 descriptors. To see the difference, browse __builtin__ via pydoc before and after the patch. | ||||
* | Install the compiler package under Lib. | Tim Peters | 2001-09-20 | 1 | -26/+8 |
| | |||||
* | The compiler package is now part of the standard library. | Jeremy Hylton | 2001-09-20 | 12 | -5811/+0 |
| | | | | Remove all these files. All except astgen.py are moved to Lib/compiler. | ||||
* | Patch #461321: Support None as a timeout in poll2 and poll3. | Martin v. Löwis | 2001-09-19 | 1 | -4/+6 |
| | |||||
* | Patch #462849: Pass Unicode objects to file's .write method. | Martin v. Löwis | 2001-09-19 | 2 | -3/+13 |
| | |||||
* | Keep tabnanny happy. | Guido van Rossum | 2001-09-19 | 1 | -1/+1 |
| | |||||
* | Fixed search function error reporting in the encodings package | Marc-André Lemburg | 2001-09-19 | 1 | -7/+11 |
| | | | | | | | | __init__.py module to raise errors which can be catched as LookupErrors as well as SystemErrors. Modified the error messages to include more information about the failing module. | ||||
* | Docs and News item for the codecs.py additions. | Marc-André Lemburg | 2001-09-19 | 2 | -0/+36 |
| | |||||
* | Added new helpers for easy access to codecs. Docs will follow. | Marc-André Lemburg | 2001-09-19 | 1 | -0/+42 |
| | |||||
* | Fix for bug #462737. | Marc-André Lemburg | 2001-09-19 | 1 | -3/+3 |
| | |||||
* | Include ctype.h after Python.h. | Martin v. Löwis | 2001-09-19 | 1 | -1/+1 |
| | |||||
* | Patch to bug #461753: Allow None in ExternalEntityParserCreate. | Martin v. Löwis | 2001-09-19 | 1 | -1/+1 |
| |