Hi all,

Is it possible to be able to do the following in Python?

class Test:
    def __init__(self):
        pass

    def puts(self, str):
        print str

    def puts(self, str,str2):
        print str,str2

if __name__ == "__main__":
    t = Test()
    t.puts("hi")
    t.puts("hi","hello")


Cheers

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to