How about adding rational fraction to Python?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Feb 26 23:02:43 EST 2008


En Tue, 26 Feb 2008 15:01:57 -0200, Jeff Schwab <jeff at schwabcenter.com>  
escribió:
> J. Cliff Dyer wrote:

>> Of course.  That's why I think you ought to spell it 3//4.  Nobody gets
>> confused when a strange operator that they've never seen before does
>> something unusual.  Average Jo off the street looks at python code and
>> sees 3/4, and immediately thinks "aha! .75!"  Show the same person 3//4,
>> and she'll think, "A double slash?  I'd better check the
>> documentation--or better yet, play with it a little in the interactive
>> interpreter."
>
> Or Jo thinks // is a typo, and helpfully "fixes" it.

...like someone who "fixed" a raw string by removing the "r", and the  
script mysteriously stopped working...

-- 
Gabriel Genellina




More information about the Python-list mailing list