python namespace question

chad cdalten at gmail.com
Tue Jul 13 23:03:14 EDT 2010


Given the following code...

#!/usr/bin/python

class cgraph:
    def printme(self):
        print "hello\n"

x = cgraph()
x.printme()


Does the function print() exist in the cgraph namespace or the
printme() one?



More information about the Python-list mailing list