Re: [Python-Dev] cpython: allow arbitrary attributes on classmethod and staticmethod (closes #14051)
Feb. 19, 2012
12:11 p.m.
Hi,
+static PyObject * +cm_get___dict__(classmethod *cm, void *closure) +{ + Py_INCREF(cm->cm_dict); + return cm->cm_dict; +}
def f(): pass ... cm = classmethod(f) cm.__dict__ Erreur de segmentation
Regards Antoine.
February 2012
12:21 p.m.
New subject: cpython: allow arbitrary attributes on classmethod and staticmethod (closes #14051)
That's answering to Benjamin's f46deae68e34, by the way. Regards Antoine. On Sun, 19 Feb 2012 13:11:22 +0100 Antoine Pitrou <solipsis@pitrou.net> wrote:
Hi,
+static PyObject * +cm_get___dict__(classmethod *cm, void *closure) +{ + Py_INCREF(cm->cm_dict); + return cm->cm_dict; +}
def f(): pass ... cm = classmethod(f) cm.__dict__ Erreur de segmentation
Regards
Antoine.
5197
Age (days ago)
5197
Last active (days ago)
1 comments
1 participants
participants (1)
-
Antoine Pitrou