Comment on PEP-0238

Chris Barker chrishbarker at home.net
Wed Jul 11 18:36:33 EDT 2001


Guido van Rossum wrote:
> Darn.  That's a reasonable argument.  If a numeric array module
> defines __divmod__, does it return a tuple of two arrays, or does it
> return an array of tuples? 

it would have to return a tuple of two arrays, that's the only way that
would make sense for array-oriented operations. For the same reason as
why arctan2() takes two arrays, not an array of tuples, for its
arguments. What the heck would you do with an array of tuples anyway?

-Chris

-- 
Christopher Barker,
Ph.D.                                                           
ChrisHBarker at home.net                 ---           ---           ---
http://members.home.net/barkerlohmann ---@@       -----@@       -----@@
                                   ------@@@     ------@@@     ------@@@
Oil Spill Modeling                ------   @    ------   @   ------   @
Water Resources Engineering       -------      ---------     --------    
Coastal and Fluvial Hydrodynamics --------------------------------------
------------------------------------------------------------------------



More information about the Python-list mailing list