28:16: Constructing complex number not allowed without gil
29:12: Accessing Python global or builtin not allowed without gil
30:8: Backquote expression not allowed without gil
+30:9: Operation not allowed without gil
31:15: Assignment of Python object not allowed without gil
+31:15: Operation not allowed without gil
31:15: Python import not allowed without gil
+32:8: Operation not allowed without gil
32:13: Python import not allowed without gil
32:25: Constructing Python list not allowed without gil
+32:25: Operation not allowed without gil
33:17: Iterating over Python object not allowed without gil
35:11: Indexing Python object not allowed without gil
36:11: Slicing Python object not allowed without gil
cdef class just_getattribute:
def __getattribute__(self,n):
- if n == u'bar':
+ if n == 'bar':
return n
else:
raise AttributeError
def __init__(self):
self.foo = 10
def __getattr__(self,n):
- if n == u'bar':
+ if n == 'bar':
return n
else:
raise AttributeError
def __init__(self):
self.foo = 10
def __getattribute__(self,n):
- if n == u'foo':
+ if n == 'foo':
return self.foo
else:
raise AttributeError
def __getattr__(self,n):
- if n == u'bar':
+ if n == 'bar':
return n
else:
raise AttributeError
'This is a function docstring.'
>>> C.__doc__
- u'This is a class docstring.'
+ 'This is a class docstring.'
>>> CS.__doc__
- u'This is a subclass docstring.'
+ 'This is a subclass docstring.'
>>> print(CSS.__doc__)
None