Hi, ALL: I have a sample code as bellow:
#!/usr/bin/env python
class Hello:
def __init__(self):
print "Hello __init__"
@classmethod
def print_hello(self):
print "hello"
Hello.print_hello()
If I move "self" parameter of print_hello away, this code fragment won't
work.
I am wondering when Hello.print_hello() executes, what value will "self" be
asigned?
--
Best Regards
-- http://mail.python.org/mailman/listinfo/python-list
