Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86622

Re: Python Worst Practices

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 <python-python-list@m.gmane.org>
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 <breamoreboy@yahoo.co.uk>
Subject Re: Python Worst Practices
Date Sat, 28 Feb 2015 15:33:23 +0000
References <mclca6$iie$1@ger.gmane.org> <7053A277-9687-49B0-9FDB-CB4DB3E76DEC@gmail.com> <54F0E38D.40006@davea.name> <CAPTjJmqTsB-of0JdJKW4BNW23DEpZ17353fHa9iBHfV8-3uANw@mail.gmail.com>
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 <CAPTjJmqTsB-of0JdJKW4BNW23DEpZ17353fHa9iBHfV8-3uANw@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.19334.1425137628.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On 27/02/2015 21:40, Chris Angelico wrote:
> On Sat, Feb 28, 2015 at 8:37 AM, Dave Angel <davea@davea.name> 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 <somefile.h>
> #undef SOME_SYMBOL
> #include <otherfile.h>
>
> 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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-28 15:33 +0000
  Re: Python Worst Practices BartC <bc@freeuk.com> - 2015-02-28 17:55 +0000
    Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-28 18:38 +0000
    Re: Python Worst Practices Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-01 13:08 +1100
      Re: Python Worst Practices Chris Angelico <rosuav@gmail.com> - 2015-03-01 13:43 +1100
      Re: Python Worst Practices BartC <bc@freeuk.com> - 2015-03-01 12:47 +0000
      Re: Python Worst Practices Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-03-01 20:37 -0500
      Re: Python Worst Practices MRAB <python@mrabarnett.plus.com> - 2015-03-02 01:59 +0000
      Re: Python Worst Practices Dave Angel <davea@davea.name> - 2015-03-01 23:49 -0500
      Re: Python Worst Practices MRAB <python@mrabarnett.plus.com> - 2015-03-02 12:38 +0000
      Re: Python Worst Practices Dave Angel <davea@davea.name> - 2015-03-02 08:12 -0500
      Re: Python Worst Practices Jonas Wielicki <jonas@wielicki.name> - 2015-03-06 07:58 +0100
      Re: Python Worst Practices Chris Angelico <rosuav@gmail.com> - 2015-03-06 21:09 +1100
        Re: Python Worst Practices Mario Figueiredo <marfig@gmail.com> - 2015-03-07 16:11 +0100

csiph-web