]> granicus.if.org Git - python/commit
- The repr() of a weakref object now shows the __name__ attribute of
authorGuido van Rossum <guido@python.org>
Wed, 16 Apr 2003 21:13:23 +0000 (21:13 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 16 Apr 2003 21:13:23 +0000 (21:13 +0000)
commitc1f6e8cbc1d60c5fe00121c67bfc581301e7ce50
treee508b3b6a8621b3330035178cd825a84e7f753c7
parent6f29ff319b83c4e5cec1ddb06075d7a9da377a19
- The repr() of a weakref object now shows the __name__ attribute of
  the referenced object, if it has one.

Also use %p to format pointers consistently, and use <weakproxy ...>
in proxy_repr(), to match the type name.
Misc/NEWS
Objects/weakrefobject.c