New user's initial thoughts / criticisms of Python

Ian Kelly ian.g.kelly at gmail.com
Sun Nov 10 06:39:00 EST 2013


On Sun, Nov 10, 2013 at 2:22 AM, Chris Angelico <rosuav at gmail.com> 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.



More information about the Python-list mailing list