narm60·15 ปีที่แล้ว·discussThe single element list is no longer necessary w/ Python 3's nonlocal keyword (along w/ the old global keyword)
narm60·15 ปีที่แล้ว·discussThese two aren't equivalent, the first example requires the shapename keyword arg, raising a KeyError when it wasn't specified
narm60·16 ปีที่แล้ว·discussCan you go into specifics about how any of these examples are non-obvious because the language is incredibly complex?In the context of higher level and or dynamic languages, I'd argue that Python is rather low on the complexity scale