[Very Long (11K)] Numeric PEPs, first public posts

Alex Martelli aleaxit at yahoo.com
Tue Mar 20 01:39:03 EST 2001


"Steve Holden" <sholden at holdenweb.com> wrote in message
news:1DBt6.120680$ML1.5626083 at e420r-atl2.usenetserver.com...
    [snip]
> > >     Should the // operator be renamed to "div"?
> >
> > If % is % and not "mod", I would probably spell it //. But I would
> > call % "mod", except that it's too late.
> >
> No it isn't. It's never too late to _suggest_ a change :-) I seem to

I think div and mod might be built-in functions; sure, infix
operator syntax is nice, but, two new keywords...

[BTW, this discussion is supposed to move to the Python
Numerics list...].

> > I guess that sin(1.5) converts the argument to float?
> >
> Well, it shouldn't need to, unless the default numeric literal is a
> rational: 1.5 already _is_ floating point, isn't it?

It is now, but not in Moshe's PEP (it would be rational; 1.5e0
would be the float literal).


Alex






More information about the Python-list mailing list