find all multiplicands and multipliers for a number

Paul Rubin no.email at nospam.invalid
Tue Apr 14 04:54:43 CEST 2015


Chris Angelico <rosuav at gmail.com> writes:
> Small point: Calling dunder methods is usually a bad idea, so I'd
> change this to "p = next(ps)" instead.

Oh yes, I forgot about that.  I'm used to ps.next() and was irritated to
find that it doesn't work in Python 3, so I did the ugly thing that was
closest.  Thanks.



More information about the Python-list mailing list