News for hackers. Stuff that matters.
Re:Unpythonic Python by netdog on Wednesday April 09, 2014 @04:20PM (#7562065)
My for-real-not-humor implementation:

    def fizzbuzz(i, n):
        while i <= n:
            yield i%15 and (i%5 and (i%3 and i or 'fizz') or 'buzz') or 'fizzbuzz'
            i += 1

    for x in fizzbuzz(1, 100):
        print x
Re:Unpythonic Python by nailer on Wednesday April 09, 2014 @04:23PM (#7562090)
Tight, but I'd still use multiple yields, all the conditions in the one liner may be difficult to read.
Re:Unpythonic Python by kzrdude on Thursday April 10, 2014 @07:56AM (#7565354)
real oldschool, since you don't use the ternary if that's available since Python 2.5.