My CPU is of an older model and gets easily distracted.
-
My CPU is of an older model and gets easily distracted. By CPU I mean my cerebral processing unit.
-
My CPU is of an older model and gets easily distracted. By CPU I mean my cerebral processing unit.
Also not good at negations. I just fixed a function "is_successful" to return true when the thing was successful and not when it was a failure. Then I fixed all call sites that treated true as failure.
-
Also not good at negations. I just fixed a function "is_successful" to return true when the thing was successful and not when it was a failure. Then I fixed all call sites that treated true as failure.
Got you covered
def is_failed(data):
try:
doodad(data)
except (ValueError, TypeError):
return True
return False -
My CPU is of an older model and gets easily distracted. By CPU I mean my cerebral processing unit.
@liw I think I have the same model. I also suffer from Randomly Inaccessible Memory

-
R relay@relay.an.exchange shared this topic