Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(858)

Side by Side Diff: tests/run/method_module_name_T422.pyx

Issue 1228043: #422 - bug in setting __module__
Patch Set: code refactoring and add TODO mark Created 13 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« Cython/Compiler/ExprNodes.py ('K') | « Cython/Compiler/Symtab.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 """
2 >>> Foo.incr.__module__ is not None
3 True
4 >>> Foo.incr.__module__ == Foo.__module__ == bar.__module__
5 True
6 >>> Simpleton.incr.__module__ == Simpleton.__module__ == bar.__module__
7 True
8
9 """
10 class Foo(object):
11 def incr(self,x):
12 return x+1
13
14 def bar():
15 pass
16
17
18 class Simpleton:
19 def __str__(self):
20 return "A simpleton"
21
22 def incr(self,x):
23 """Increment x by one.
24 """
25 return x+1
26
OLDNEW
« Cython/Compiler/ExprNodes.py ('K') | « Cython/Compiler/Symtab.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b