Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'languages.': 0.04; 'importing': 0.05; 'say,': 0.05; 'subject:design': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'philosophy.': 0.16; 'subject:Language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'sep': 0.31; 'steven': 0.31; 'quite': 0.32; 'programmers': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'same.': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'does': 0.39; 'bad': 0.39; 'to:addr:python.org': 0.39; 'happen': 0.63; 'mistakes,': 0.84; 'thing,': 0.91; '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:date:message-id:subject:from:to :content-type; bh=EIoLUexV1t+wUYyb4e+8D0c5iO1OzgO6W7t3gYfz/Mc=; b=evp2iVz4o2ZYpM5CSUCJnnjYLqfZlBfE7sjN2PbM8Keb7K+MoFmroiaNs2733MOM37 K95PAXoz3ZpZ85Bki3ugnz9h+KORzoF8EtoHRwDTL+6QOroJ3xfytIEmkfLDzNWOzcb0 uFVcPqkX8FK5Qdd0cVmm/A7uKGa1OVT3wZf4QsvTto3Apo29liM8vfZ03jJ/BK+wwqLV sYUzzqX7VydJ8tlbLQpC44UncWDXVeS+/dq5VJetrIK159dPrMzvJHsCmNXrRj6Dl3Hk 4bG8bOxBwh93qo/26vCEV5F2fZdJTH39Oyz5/tovzIKCE7GCj2xw9dnx9C5zNoBI61q7 RIIQ== MIME-Version: 1.0 X-Received: by 10.52.165.237 with SMTP id zb13mr588038vdb.28.1378808447698; Tue, 10 Sep 2013 03:20:47 -0700 (PDT) In-Reply-To: <522eb795$0$29999$c3e8da3$5496439d@news.astraweb.com> References: <522eb795$0$29999$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 10 Sep 2013 20:20:47 +1000 Subject: Re: Language design From: Chris Angelico To: python-list@python.org 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378808455 news.xs4all.nl 15878 [2001:888:2000:d::a6]:35995 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53912 On Tue, Sep 10, 2013 at 4:09 PM, Steven D'Aprano wrote: > What design mistakes, traps or gotchas do you think Python has? Gotchas > are not necessarily a bad thing, there may be good reasons for it, but > they're surprising. Significant indentation. It gets someone every day, it seems. The fact that importing twice doesn't reexecute any code. The whole "consenting adults" philosophy. I happen to quite like it, as do many of the regulars here, but it does trip up a lot of programmers who've come from other languages. Like you say, not necessarily a bad thing; but Admiral Ackbars all the same. ChrisA