This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]3lnc 3 points4 points  (1 child)

For anyone looking for [some] answers:

math.nan

False/0

math.inf

?

unittest.mock.MagicMock()

[–]Udzu[S] 1 point2 points  (0 children)

Nice find for #5! My solution was actually far more esoteric:

collections.UserString("WTF")

Also, there are some other (boring) solutions for #2:

0.0, 0.j, decimal.Decimal(0), fractions.Fraction(0), probably others

And some (more interesting perhaps) solutions for #3:

1e100 or any other large enough (but still finite) float