Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] cpython: allow arbitrary attributes on classmethod and staticmethod (closes #14051)

Antoine Pitrousolipsis at pitrou.net
Sun Feb 19 13:11:22 CET 2012


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 segmentationRegardsAntoine.


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp