I could be in addition... Perhaps there could be a .secs() function, which wouldn't require any overloading (and arguably make more sense type-wise)?
As is, the documentation for time_till and time_since isn't particularly accessible. Please at least convert the doc patch for that to the existing functions. regards, Nicholas On Sun, Apr 19, 2009 at 14:00, Andreas Klöckner <[email protected]>wrote: > Hi Nicolas, > > On Donnerstag 16 April 2009, Nicholas Tung wrote: > > I think it would be more intuitive if you changed time_till and > > time_since to Python's __sub__, so one could write "elapsed = end - > begin" > > for events. A patch is attached, with documentation (and corrected > > documentation for record_in_stream --> record). > > I'm generally wary of overloaded operators, no matter how good an idea they > seem to be at the time. But even if I did like the idea, I don't see a > compelling reason to break backwards compatibility (and go through the > requisite painful transition period). Sorry. > > Thanks for the doc fix, I've applied it. > > Andreas >
_______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
