- 20 Eyl, 2001 29 kayıt (commit)
-
-
Guido van Rossum yazdı
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 yazdı
-
Fred Drake yazdı
allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
-
Guido van Rossum yazdı
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 yazdı
-
Tim Peters yazdı
"new in 2.2" blurb at the end. Replace open()'s text by pointing back to file().
-
Fred Drake yazdı
Document many more of the PyLong_{As,From}*() functions.
-
Guido van Rossum yazdı
char *.
-
Marc-André Lemburg yazdı
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 yazdı
-
Jeremy Hylton yazdı
-
Jeremy Hylton yazdı
library. Update README.
-
Jeremy Hylton yazdı
-
Guido van Rossum yazdı
we can't trust that tp_basicsize is aligned. Fixes SF bug #462848.
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
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 yazdı
-
Marc-André Lemburg yazdı
codecs -- the self argument does matter for Python functions (it does not for C functions which most other codecs use).
-
Tim Peters yazdı
Now they don't.
-
Barry Warsaw yazdı
-
Barry Warsaw yazdı
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 yazdı
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 yazdı
both return true. This restores pydoc's ability to deduce argument lists for functions and methods coded in Python.
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Tim Peters yazdı
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 yazdı
-
Jeremy Hylton yazdı
Remove all these files. All except astgen.py are moved to Lib/compiler.
-
- 19 Eyl, 2001 11 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Guido van Rossum yazdı
-
Marc-André Lemburg yazdı
__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.
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
-
Marc-André Lemburg yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Guido van Rossum yazdı
float (compare the recent checkin to complex). Added tests for these.
-