That's answering to Benjamin's f46deae68e34, by the way.
Regards Antoine. On Sun, 19 Feb 2012 13:11:22 +0100 Antoine Pitrou <solip...@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. > > _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com