=======================
Trying to use in cython:
cdef class Sample:
def __init__(self):
xxx = self.meth.__code__ # will raise exception saying that no such attribute
def meth(self):
pass
=======================
Doing the same in pure python will not raise exception:
class Sample:
def __init__(self):
xxx = self.meth.__code__ # will NOT raise exception saying that no such attribute
Reported by socketpair on 23 Oct 2015 14:58 UTC
Migrated-From: http://trac.cython.org/ticket/872