Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; '(especially': 0.07; 'c++,': 0.07; 'duplicate': 0.07; '#include': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '#undef': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sys.path': 0.16; 'unexpectedly': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'module': 0.19; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'header': 0.24; 'cc:2**0': 0.24; 'right.': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'being': 0.38; 'itself': 0.39; 'how': 0.40; 'dave': 0.60; 'first': 0.61; 'between': 0.67; '2015': 0.84; 'conflicts': 0.84; "it'd": 0.84; 'shadow': 0.84; 'subject:Practices': 0.84; 'angel': 0.91; 'to:none': 0.92 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:cc :content-type; bh=8kJmv71kJLDJ+SvRYdFbpC2BNTYMdm/eltzg/qo3HLQ=; b=xuzWfGQcvbShZ4PbYDWaYrS+bYH+RDGJhKyAJy10GRFE9k5f0O86nmIUPgCALGU1DY oWf4HJpwUj6DdeEZ2b3qkbFPmcBPbklhnz2Uz6zsDQN4FmmmrNgoZw7Up86P6kSjI7+w w3ksEuSG0qU5ERKha+oH/LYHWI/Hy7JeLKtaZnorzTs4bJ9+hTzaB6HN8GjNDgn/ad6a 1HitLo78WRsc5XDd8MNv7OQKhs7nBaZRA1sn/ADLewp/M5HEG2QkdoVWb+7/+SpIUsGQ +B9kn0/rgfMc8Lsu1HiKejdTZAdWbqazPVKN9gPThD74lmf3RqTBxi+sfv1GAKLlbKS2 ikKQ== MIME-Version: 1.0 X-Received: by 10.50.4.40 with SMTP id h8mr5972225igh.34.1425073232114; Fri, 27 Feb 2015 13:40:32 -0800 (PST) In-Reply-To: <54F0E38D.40006@davea.name> References: <7053A277-9687-49B0-9FDB-CB4DB3E76DEC@gmail.com> <54F0E38D.40006@davea.name> Date: Sat, 28 Feb 2015 08:40:31 +1100 Subject: Re: Python Worst Practices From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1425073235 news.xs4all.nl 2868 [2001:888:2000:d::a6]:37650 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86596 On Sat, Feb 28, 2015 at 8:37 AM, Dave Angel wrote: > Right. In C and C++, instead of being the first slide, it'd be the first 3 > or 4. Between header file conflicts (especially good because the stdlib > itself has many multiply-defined symbols, duplicate header files, and > contradictory include path patterns) Yeah, Python has some issues with sys.path and how your local module can unexpectedly shadow a stdlib one, but at least the stdlib itself doesn't have any conflicts. I should not ever have to do this dance: #include #undef SOME_SYMBOL #include But sadly, I do. ChrisA