]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
- When method objects have an attribute that can be satisfied either
authorGuido van Rossum <guido@python.org>
Sat, 22 Nov 2003 23:55:50 +0000 (23:55 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 22 Nov 2003 23:55:50 +0000 (23:55 +0000)
commitbaf0f8f24da7a541a403cd9848cebc451beb069d
tree87e9707d43bbfd74a0cf8213d3c7eb5e4e6d87cc
parentbfd334a42d35e58369e3a53e16733234e2741975
- When method objects have an attribute that can be satisfied either
  by the function object or by the method object, the function
  object's attribute usually wins.  Christian Tismer pointed out that
  that this is really a mistake, because this only happens for special
  methods (like __reduce__) where the method object's version is
  really more appropriate than the function's attribute.  So from now
  on, all method attributes will have precedence over function
  attributes with the same name.
Misc/NEWS
Objects/classobject.c