Version compatibility in division

Nick Perkins nperkins7 at home.com
Tue Jul 24 20:46:41 CEST 2001


Good point.
I suppose the only cross-version solution would be:

     # Script MUST run under various Python versions without change
     ...
     print int(container/widget) ,'widgets will fit in the container'

It's a tiny bit verbose, but at least it's very explicit.






More information about the Python-list mailing list