projects
/
cython.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Partial merge of trunk progress. Some tests still fail.
[cython.git]
/
tests
/
run
/
method_module_name_T422.pyx
1
# ticket: 422
2
3
"""
4
>>> Foo.incr.__module__ is not None
5
True
6
>>> Foo.incr.__module__ == Foo.__module__ == bar.__module__
7
True
8
>>> Simpleton.incr.__module__ == Simpleton.__module__ == bar.__module__
9
True
10
11
"""
12
class Foo(object):
13
def incr(self,x):
14
return x+1
15
16
def bar():
17
pass
18
19
20
class Simpleton:
21
def __str__(self):
22
return "A simpleton"
23
24
def incr(self,x):
25
"""Increment x by one.
26
"""
27
return x+1
28