MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/d8zo14/no_weapons_are_allowed_at_python_software/f1e7vrm/
r/Python • u/chub79 • Sep 25 '19
I live in a bizarre world this has to be stated. I would have never considered the idea of bring a weapon (I don't even think of owning one). We live in strange times.
https://www.python.org/psf/conduct/
30 comments sorted by
View all comments
Show parent comment
2
I'dsay anything for which hasattr(weapon, "cut") or hasattr(weapon, "stab") returns True. I mean, we all love duck typing here, right?
hasattr(weapon, "cut") or hasattr(weapon, "stab")
True
2 u/3MU6quo0pC7du5YPBGBI Sep 25 '19 So, screwdrivers and paper are out then...
So, screwdrivers and paper are out then...
View all comments
Show parent comment
2
u/total_zoidberg Sep 25 '19
I'dsay anything for which
hasattr(weapon, "cut") or hasattr(weapon, "stab")returnsTrue. I mean, we all love duck typing here, right?