ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activepython
activepython
RE: New // operator
by Kari Hoijarvi other posts by this author
Apr 30 2002 4:59PM messages near this date
view in the new Beta List Site
Re: New // operator | Re: New // operator
Originally python evaluated 

5 / 2 = 2
5.0 / 2.0 = 2.5

It's hard to write and read generic code with such semantics.

It's easier when 

a // b always truncates and
a / b never truncates

Kari

-----Original Message-----
From: activepython-admin@[...].com

By the way whats wrong with 5/2 = 2 ?


_______________________________________________
ActivePython mailing list
ActivePython@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
Thread:
Matthew Sherborne
Syver Enstad
Eric Sloane
Kari Hoijarvi
David Ascher
Jeff Shannon
David Ascher

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved