Yeah, I wrote that after staring at it for a few minutes, and giving up any pretense that I could model it with confidence.
Actually, line 46 is referencing the class Girl, so you wouldn't want quotes. Technically, you're supposed to use try/except duck-typing in Python, but I often find that clearer code comes out of assertions where you…
I chose to answer the question empirically. http://pastebin.com/1g1bAEPt Turns out it's equal.
Yeah, I wrote that after staring at it for a few minutes, and giving up any pretense that I could model it with confidence.
Actually, line 46 is referencing the class Girl, so you wouldn't want quotes. Technically, you're supposed to use try/except duck-typing in Python, but I often find that clearer code comes out of assertions where you…
I chose to answer the question empirically. http://pastebin.com/1g1bAEPt Turns out it's equal.