This PEP has been open for two and half years without generating
discussion or support.
Its primary case (converting cumulative seconds into a tuple days,
hours, minutes, and seconds) is a bit wanting because it doesn't
generalize to months and years. That need is already met in a more
robust
Raymond Hettinger wrote:
Executive summary: cute, but unpersuasive and unnecessary, not worth
the time to code, test, document, maintain, and explain.
Plus, it fails the not every 3-line function has to be a builtin
guideline:
def extended_divmod(numerator, *denominators):
remainders
On Fri, 2005-06-17 at 05:57, Raymond Hettinger wrote:
This PEP has been open for two and half years without generating
discussion or support.
Interesting. Just yesterday I wrote a simple stopwatch-like timer
script and I found that I needed three divmod calls to convert from
seconds into a
Raymond Hettinger wrote:
Plus, it fails the not every 3-line function has to be a builtin
guideline:
Not to pick, but I hope this doesn't become a recurring refrain. That
isn't a real guideline, it's more of a snipe. It also runs counter to
Zen about proposals not being complex and being
About PEP 303, I use divmod for lots (and lots) of things, but I've
got no real use for an extended divmod() either. -1: it would be
low-use, confusing clutter.
[Barry]
Interesting. Just yesterday I wrote a simple stopwatch-like timer
script and I found that I needed three divmod calls to