If Scheme is so good why MIT drops it?
Paul Rubin
http
Mon Jul 20 18:22:20 EDT 2009
vippstar <vippstar at gmail.com> writes:
> > I don't see how to implement such a thing in my code,
> Write a function:
>
> (if (< x y)
> ValueError
> (/ x y))
I meant changing the behavior of integer division in python.
> Wouldn't that mean 3/2 would also evaluate to ValueError?
Yes, the idea was that one can take the view that integer division
should not be allowed except through a 'div' function or some such.
More information about the Python-list
mailing list