On Wed, Jul 14, 2010 at 8:33 AM, chad <cdal...@gmail.com> wrote: > Given the following code... > > #!/usr/bin/python > > class cgraph: > def printme(self): > print "hello\n" >
No need to do print "hello\n", python is not C, print "hello" prints hello with a newline. Try it on interpretor. > > x = cgraph() > x.printme() > > > Does the function print() exist in the cgraph namespace or the > printme() one? > Where exactly is the print() function here. BTW printme() is in cgraph namespace. ~l0nwlf
-- http://mail.python.org/mailman/listinfo/python-list