- 21 Sep, 2001 10 commits
-
-
Fred Drake authored
information on defining new exceptions. This closes SF bug #443559.
-
Fred Drake authored
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.
-
Guido van Rossum authored
XXX This should really be a unified diff, but I can't be bothered.
-
Guido van Rossum authored
output *and* doctest stuff. Assuming the doctest stuff comes after the expected output, this fixes that.
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
of \\.
-
Guido van Rossum authored
please let me know and we'll figure out how to fix the test.)
-
- 20 Sep, 2001 30 commits
-
-
Guido van Rossum authored
docstrings (using file.closed and file.name as examples).
-
Guido van Rossum authored
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.
-
Guido van Rossum authored
-
Fred Drake authored
allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
-
Guido van Rossum authored
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.
-
Fred Drake authored
-
Tim Peters authored
"new in 2.2" blurb at the end. Replace open()'s text by pointing back to file().
-
Fred Drake authored
Document many more of the PyLong_{As,From}*() functions.
-
Guido van Rossum authored
char *.
-
Marc-André Lemburg authored
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.
-
Marc-André Lemburg authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
library. Update README.
-
Jeremy Hylton authored
-
Guido van Rossum authored
we can't trust that tp_basicsize is aligned. Fixes SF bug #462848.
-
Marc-André Lemburg authored
-
Marc-André Lemburg authored
-
Marc-André Lemburg authored
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.
-
Marc-André Lemburg authored
-
Marc-André Lemburg authored
codecs -- the self argument does matter for Python functions (it does not for C functions which most other codecs use).
-
Tim Peters authored
Now they don't.
-
Barry Warsaw authored
-
Barry Warsaw authored
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.
-
Tim Peters authored
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.
-
Tim Peters authored
both return true. This restores pydoc's ability to deduce argument lists for functions and methods coded in Python.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Tim Peters authored
pydoc how to do something sensible with 2.2 descriptors. To see the difference, browse __builtin__ via pydoc before and after the patch.
-
Tim Peters authored
-
Jeremy Hylton authored
Remove all these files. All except astgen.py are moved to Lib/compiler.
-