On Sun, Nov 10, 2013 at 2:22 AM, Chris Angelico <[email protected]> wrote:
> JavaScript has magic around the dot and function-call operators, as I
> mentioned earlier. Lots of other languages have some little quirk
> somewhere that breaks this rule; some have a LOT of quirks that break
> this rule. Does Python have any? Aside from parsing oddities like
> attribute access on a literal integer[1], are there any cases where
> two expressions yielding the same object are in any way different?
I can think of one:
class Spam:
def __init__(self):
super().__init__() # This works.
sup = super
class Eggs:
def __init__(self):
sup().__init__() # This doesn't.
--
https://mail.python.org/mailman/listinfo/python-list