Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; '(especially': 0.07; 'c++,': 0.07; 'duplicate': 0.07; '#include': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'typed': 0.09; 'yeah,': 0.09; 'python': 0.11; 'language.': 0.14; '#undef': 0.16; 'code?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sys.path': 0.16; 'unexpectedly': 0.16; 'sat,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'module': 0.19; 'written': 0.21; 'feb': 0.22; 'header:User-Agent:1': 0.23; 'header': 0.24; 'developers': 0.25; 'right.': 0.26; 'least': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'wonder': 0.29; "doesn't": 0.30; 'file': 0.32; 'something': 0.35; 'one,': 0.35; 'but': 0.35; 'should': 0.36; 'being': 0.38; 'to:addr :python-list': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'dave': 0.60; 'first': 0.61; 'decided': 0.64; 'our': 0.64; 'charset:windows-1252': 0.65; 'world': 0.66; 'between': 0.67; '2015': 0.84; 'conflicts': 0.84; 'idiot': 0.84; "it'd": 0.84; 'shadow': 0.84; 'subject:Practices': 0.84; 'angel': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python Worst Practices Date: Sat, 28 Feb 2015 15:33:23 +0000 References: <7053A277-9687-49B0-9FDB-CB4DB3E76DEC@gmail.com> <54F0E38D.40006@davea.name> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-146-7-82.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1425137628 news.xs4all.nl 2892 [2001:888:2000:d::a6]:53609 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:86622 On 27/02/2015 21:40, Chris Angelico wrote: > 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 > As you typed the above up I wonder how many developers around the world were battling with the fun and games caused, particularly when writing cross platform code? It also makes me wonder what idiot decided to use C as the language for the first Python implementation? Or was it written in something else and then ported? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence