News for hackers. Stuff that matters.
Re:"@" on Twitter by icebraining on Saturday April 28, 2018 @01:31AM (#16946208)
Well, booleans are integers, so you can do:

    >>> True + 1
    2
Re:"@" on Twitter by chrfrasco on Saturday April 28, 2018 @02:41AM (#16946387)

  fizzbuzz = lambda n: [print((“fizz” * m % 3 == 0) + (“buzz” * m % 5 == 0) or m) for m in range(n)]
Not sure if this is great or terrible
Re:"@" on Twitter by ubernostrum on Saturday April 28, 2018 @02:22AM (#16946337)
That's not "coercion", though. That's Python obeying the LSP, because bool is a subclass of int.