Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'attribute': 0.07; 'expressions': 0.07; 'literal': 0.09; 'parsing': 0.09; 'works.': 0.09; 'python': 0.11; 'def': 0.12; 'different?': 0.16; 'earlier.': 0.16; 'magic': 0.16; 'operators,': 0.16; 'quirks': 0.16; 'rule.': 0.16; 'subject:user': 0.16; 'sup': 0.16; 'wrote:': 0.18; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'class': 0.32; 'languages': 0.32; 'cases': 0.33; 'skip:_ 10': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'subject:New': 0.37; 'two': 0.37; 'nov': 0.38; 'to:addr:python- list': 0.38; 'little': 0.38; 'does': 0.39; 'aside': 0.39; 'to:addr:python.org': 0.39; 'subject: / ': 0.60; 'break': 0.61; 'mentioned': 0.61; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=q+QvJcEx20lEwtttPu76t78+2+0xITIxzL18s9tR7l8=; b=RzHx5PZolD3vPJKWb4xscKtCDedhvjHunvy7nxQQAcB/34t4qqCQhh00OiBSx/w81R s7I+NA3wra7FkgL23uAJOxme0gBENpq4BchLTEZP0FaurlzAC87wFv+9UR3COKrKo7E9 74d92lp+/da0OaiJ4Mo/B7OVm7xwLKwFWs7tp6t1AbCnNX/CJ8yKrTIFt+15N/cXoiOi h1Q4MI9NGfZVImJ25zlMDA8rW1uZ/NeozLysuvx52k+FLz+tzvdUwzY9uAtgBJNTJcJd CjQ9BicremyiscE/uxesalFp8klTE0uiP3/LYMcLbb7AyUWyv5zZnCVoYFto1nNygTVx oL1Q== X-Received: by 10.66.118.71 with SMTP id kk7mr25721967pab.14.1384083580261; Sun, 10 Nov 2013 03:39:40 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <-JadnUirYuhUruPPnZ2dnUVZ8rSdnZ2d@bt.com> From: Ian Kelly Date: Sun, 10 Nov 2013 04:39:00 -0700 Subject: Re: New user's initial thoughts / criticisms of Python To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384083584 news.xs4all.nl 15927 [2001:888:2000:d::a6]:33711 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59000 On Sun, Nov 10, 2013 at 2:22 AM, Chris Angelico 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.