Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Patch to bug #461754: CDATA should not undergo entity subst. | Martin v. Löwis | 2001-09-19 | 1 | -1/+1 |
| | |||||
* | Add additional coercion support for "self subtypes" to int, long, | Guido van Rossum | 2001-09-19 | 4 | -1/+50 |
| | | | | float (compare the recent checkin to complex). Added tests for these. | ||||
* | Enable two checks for comparing a complex to a complex subtype | Guido van Rossum | 2001-09-19 | 1 | -3/+4 |
| | | | | | | | | | instance. Split a string comparison test in two halves, replacing "a==b==a" with separate tests for a==b and b==a. (Reason: while experimenting, this test failed, and I wanted to know if it was the first or the second == operator that failed.) | ||||
* | complex_coerce(): add explicit PyComplex_Check() test. Previously, | Guido van Rossum | 2001-09-19 | 1 | -0/+5 |
| | | | | | | | | complex_coerce() would never be called with a complex argument, because PyNumber_Coerce[Ex] doesn't bother calling the type's coercion method if the values already have the same type. But now, of course, it's possible to pass an instance of a complex *subtype*, and those must be accepted. | ||||
* | Enable some comparison tests that failed before. Still having problems | Tim Peters | 2001-09-18 | 1 | -3/+3 |
| | | | | with subsclasses of complex and string. | ||||
* | Add a similar test for rich comparisons. | Guido van Rossum | 2001-09-18 | 1 | -1/+67 |
| | |||||
* | fixed #449964: sre.sub raises an exception if the template contains a | Fredrik Lundh | 2001-09-18 | 4 | -21/+30 |
| | | | | | | \g<x> group reference followed by a character escape (also restructured a few things on the way to fixing #449000) |