diff options
author | Guido van Rossum <guido@python.org> | 1993-05-21 19:56:10 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-05-21 19:56:10 (GMT) |
commit | b3f7258f14cb2f3e52236a4087ed82541a173e7b (patch) | |
tree | 4bb2d9aa0d0dbdd7fca7fdb22eaa80c98b27cbb7 /Objects/methodobject.c | |
parent | 81daa32c15cfa9f05eda037916cdbfd5b4323431 (diff) | |
download | cpython-b3f7258f14cb2f3e52236a4087ed82541a173e7b.zip cpython-b3f7258f14cb2f3e52236a4087ed82541a173e7b.tar.gz cpython-b3f7258f14cb2f3e52236a4087ed82541a173e7b.tar.bz2 |
* Lots of small changes related to access.
* Added "access *: ...", made access work for class methods.
* Introduced subclass check: make sure that when calling
ClassName.methodname(instance, ...), the instance is an instance of
ClassName or of a subclass thereof (this might break some old code!)
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r-- | Objects/methodobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index d7ba02e..102e577 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -105,10 +105,10 @@ meth_repr(m) { char buf[200]; if (m->m_self == NULL) - sprintf(buf, "<built-in function '%.80s'>", m->m_name); + sprintf(buf, "<built-in function %.80s>", m->m_name); else sprintf(buf, - "<built-in method '%.80s' of %.80s object at %lx>", + "<built-in method %.80s of %.80s object at %lx>", m->m_name, m->m_self->ob_type->tp_name, (long)m->m_self); return newstringobject(buf); |