16 lines
251 B
Python
16 lines
251 B
Python
class MyClass:
|
|
# ^ definition.class
|
|
def hello():
|
|
# ^ definition.function
|
|
print "hello from MyClass"
|
|
|
|
MyClass.hello()
|
|
# ^ reference.call
|
|
|
|
def main():
|
|
# ^ definition.function
|
|
print "Hello, world!"
|
|
|
|
main()
|
|
# <- reference.call
|