How on Factorial

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Nov 1 08:23:42 CET 2010


In message <qoteibcq9pr.fsf at ruuvi.it.helsinki.fi>, Jussi Piitulainen wrote:

> (I agree that no one should write factorial like that, except as
> a joke. I have nothing against (x if (a > b) else y). The trick
> with and and or was used before Python had an actual conditional
> expression.)

You know what, I think I actually prefer the trick to Python’s backwards-if 
syntax...



More information about the Python-list mailing list