]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport patch 2.206:
authorBarry Warsaw <barry@python.org>
Thu, 29 May 2003 15:13:18 +0000 (15:13 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 29 May 2003 15:13:18 +0000 (15:13 +0000)
commit1345877de629406d1490de712baeb9c68af3ae52
treee250b7e2b7e860ec2f672b88ebf9379e6cdfdeb8
parent10b1cd9d809f0d47d5b4664d7ff55cb503fb085d
Backport patch 2.206:

    ----------------------------
    revision 2.206
    date: 2003/02/11 16:25:43;  author: gvanrossum;  state: Exp;  lines: +9 -0
    Add basic arg sanity checking to wrap_descr_get().  This is called
    when Python code calls a descriptor's __get__ method.  It should
    translate None to NULL in both argument positions, and insist that at
    least one of the argument positions is not NULL after this
    transformation.
    ----------------------------

which fixes SF bug # 736892, forcing function to act like an unbound
method dumps core.
Objects/typeobject.c