Hi All, I am looking for a return value when an object is created. but can see different behavior in different python version.
Python 3 gives >>> class x: def __new__(self): return 5 >>> x() 5 Python 2.6.5 gives >>> class x: def __new__(self): return 5 >>> x() <__main__.x instance at 0x017CFD00> I need to use 2.6 only, so how to achieve the same functionality as in python 3. -- Nitin K _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers