On Tuesday 17 March 2009 12:37:20 ashok samrat wrote: > Hi all , > > May be this works > > >>> from __future__ import division > >>> (1/3)*10 > > 3.333333333333333 > > >>Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38) > > [GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >>> int(1/3)*10 > > 0 > > This wont give the same result in python 3 may be its time to get upgraded > :) .
I am just through upgrading all my sites to python2.4 -- regards kg http://lawgon.livejournal.com _______________________________________________ To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc