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


Groups > comp.lang.python > #10746

Re: PyWart: os.path needs immediate attention!

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
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; 'python,': 0.01; 'instance,': 0.05; 'used.': 0.07; 'python': 0.08; 'internally': 0.09; 'object.': 0.09; 'api': 0.11; 'broken': 0.12; 'things.': 0.13; 'wrote:': 0.15; '(do': 0.16; 'better?': 0.16; 'considerably': 0.16; 'constants': 0.16; 'fixme': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'indirectly)': 0.16; 'module:': 0.16; 'rantingrick': 0.16; 'url:manual': 0.16; 'pm,': 0.16; 'linux': 0.18; 'aug': 0.19; 'received:74.125.82.174': 0.19; 'received:mail- wy0-f174.google.com': 0.19; 'language': 0.20; 'is?': 0.22; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'code.': 0.22; '64-bit': 0.23; 'documented': 0.23; 'reason,': 0.23; 'tue,': 0.23; 'code': 0.24; 'library.': 0.25; 'moving': 0.25; 'noticed': 0.26; 'message-id:@mail.gmail.com': 0.28; 'stage': 0.29; 'problem': 0.29; 'fix': 0.29; 'object': 0.30; 'easier.': 0.30; 'large-scale': 0.30; 'useless': 0.30; 'wasting': 0.30; 'compare': 0.31; 'source': 0.32; 'chris': 0.32; 'list': 0.32; 'too': 0.32; 'usually': 0.33; 'actually': 0.33; 'to:addr:python-list': 0.34; 'operating': 0.34; 'quite': 0.34; 'example,': 0.35; 'requirements': 0.35; 'project': 0.35; 'community': 0.35; 'url:se': 0.35; 'widely': 0.35; 'ourselves': 0.35; 'with.': 0.36; 'similar': 0.37; 'trouble': 0.37; 'bother': 0.37; 'conflict': 0.37; 'things,': 0.37; 'thread': 0.37; 'some': 0.37; 'brief': 0.37; 'but': 0.37; 'could': 0.37; 'another': 0.38; 'received:google.com': 0.38; 'subject:: ': 0.38; 'largely': 0.38; 'somewhat': 0.38; 'received:74.125.82': 0.39; 'under': 0.39; 'to:addr:python.org': 0.39; 'received:74.125': 0.40; 'your': 0.60; 'happen': 0.62; 'today,': 0.62; 'perfect': 0.63; 'huge': 0.64; 'life': 0.64; 'covers': 0.64; 'direction.': 0.64; 'world': 0.65; 'ever': 0.65; 'direct': 0.66; 'making': 0.66; 'subject:!': 0.67; 'collective': 0.67; 'stability': 0.67; 'valuable': 0.67; 'today': 0.71; 'products': 0.72; 'learned': 0.73; 'with,': 0.77; 'introduce': 0.79; 'everything,': 0.84; 'isolated': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=x7w1BnIyUVeCxjQRAbHuL6VQUyNk+0CTOfAbIkA/4HQ=; b=MuKAw005JKCin18k+rpPAZIrFA8WyVHy193v1TipBvZwn4x/cFNasp6ozurCCQ5Al5 oIzG6erR0szTsP3CWqsexTy+Iqjj2oyD19/ZO1SgLrsE4/6M+oz50vOB13dcVJQs/f3K ibOENtOOv3h4cZrCp4Tv/xv0+8gr1CpNIofTo=
MIME-Version 1.0
In-Reply-To <fc72ab47-56a4-474d-8a54-e496c7af998f@h14g2000yqd.googlegroups.com>
References <14874f59-a836-4031-a8c9-6b24f4d5e812@d7g2000vbv.googlegroups.com> <8739hoam1i.fsf@mithlond.arda> <4e3356f3$0$29978$c3e8da3$5496439d@news.astraweb.com> <877h6xzgpm.fsf@mithlond.arda> <fc72ab47-56a4-474d-8a54-e496c7af998f@h14g2000yqd.googlegroups.com>
Date Tue, 2 Aug 2011 17:36:57 +0100
Subject Re: PyWart: os.path needs immediate attention!
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1787.1312303019.1164.python-list@python.org> (permalink)
Lines 55
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312303019 news.xs4all.nl 23921 [2001:888:2000:d::a6]:56696
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10746

Show key headers only | View raw


On Tue, Aug 2, 2011 at 5:03 PM, rantingrick <rantingrick@gmail.com> wrote:
> This thread was intended to expose another PyWart and get the
> community juices flowing. os.path is broken and cannot be repaired
> because os.path was an improper API to begin with. The only way to
> solve this problem is to introduce a new Path object.
>
> A new Path object is the answer.

http://xkcd.com/927/

> I feel Python community is in an awkward teenage stage at this point
> not really sure of it's self or direction. Living only for today with
> no ability to project the future and wasting too much time arguing
> over minutiae. We need a collective wake-up-call in the form of a slap
> on the face. We need to start making the hard choices necessary to
> clean up this library.
>
> Python3000 was only the beginning! ONLY THE BEGINNING!

Some of us have reached the level of maturity necessary to understand
that stability is valuable. Also to notice when requirements
internally conflict - how are we going to develop the One Perfect API
without spending a lot of time arguing minutiae?

One thing I have learned in life is that mature products have their
warts for a reason, and that reason is usually compatibility. That's
not necessarily a good thing, but nor is it necessarily bad. For
instance, the Python source code is managed by automake. We could save
ourselves a LOT of trouble by simply moving to the future - a future
in which Linux is the only operating system we bother with, that
64-bit hardware and 64-bit OSes are everything, and so on. Why bother
supporting the past? But that "past" is actually a huge part of the
world today, too.

Large-scale adoption is an incredibly valuable thing, and you are
narrowing your adoption potential considerably if you do not support
these things. As an example, have you ever noticed how horribly
useless and skeletal the Python documentation is? Neither have I. It's
used by so many people that it gets eyeballs, and therefore time, to
fix up its failings. Compare with Pike, a much more obscure language
(syntactically similar to C, but under the covers quite similar to
Python); scroll down this list of constants from its Stdio module:

http://pike.ida.liu.se/generated/manual/modref/ex/predef_3A_3A/Stdio.html

A good number of them simply say FIXME, and even those that _are_
documented have only brief explanations. For quite a few things, you
need to go direct to the language's source code. (Do a docs search for
FIXME and you'll find that this is not an isolated case.) That doesn't
happen with Python, largely a consequence (if somewhat indirectly) of
its being so widely used.

Sure you can make your life easier. But is it really better?

Chris Angelico

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


Thread

PyWart: os.path needs immediate attention! rantingrick <rantingrick@gmail.com> - 2011-07-29 10:22 -0700
  Re: PyWart: os.path needs immediate attention! Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-29 12:53 -0500
    Re: PyWart: os.path needs immediate attention! harrismh777 <harmar@member.fsf.org> - 2011-07-29 14:41 -0500
      Re: PyWart: os.path needs immediate attention! "Waldek M." <wm@localhost.localdomain> - 2011-07-29 21:55 +0200
    Re: PyWart: os.path needs immediate attention! Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-30 10:50 +1000
      Function "modes" vs. separate functions (was: PyWart: os.path needs immediate attention!) Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-29 20:15 -0500
        Re: Function "modes" vs. separate functions Ben Finney <ben+python@benfinney.id.au> - 2011-07-30 11:57 +1000
          Re: Function "modes" vs. separate functions Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-29 21:28 -0500
      Re: PyWart: os.path needs immediate attention! Terry Reedy <tjreedy@udel.edu> - 2011-07-30 09:48 -0400
      Re: PyWart: os.path needs immediate attention! Robert Kern <robert.kern@gmail.com> - 2011-07-30 23:31 -0400
  Re: PyWart: os.path needs immediate attention! Teemu Likonen <tlikonen@iki.fi> - 2011-07-29 23:07 +0300
    Re: PyWart: os.path needs immediate attention! Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-30 10:57 +1000
      Re: PyWart: os.path needs immediate attention! Teemu Likonen <tlikonen@iki.fi> - 2011-08-01 11:19 +0300
        Re: PyWart: os.path needs immediate attention! rantingrick <rantingrick@gmail.com> - 2011-08-02 09:03 -0700
          Re: PyWart: os.path needs immediate attention! Chris Angelico <rosuav@gmail.com> - 2011-08-02 17:36 +0100
  Re: PyWart: os.path needs immediate attention! Chris Angelico <rosuav@gmail.com> - 2011-07-30 06:25 +1000
  Re: PyWart: os.path needs immediate attention! Corey Richardson <kb1pkl@aim.com> - 2011-07-29 16:44 -0400
  Re: PyWart: os.path needs immediate attention! Alister Ware <alister.ware@ntlworld.com> - 2011-07-29 21:21 +0000
    Re: PyWart: os.path needs immediate attention! Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-29 16:36 -0500
  Re: PyWart: os.path needs immediate attention! Chris Angelico <rosuav@gmail.com> - 2011-07-30 07:43 +1000
  Re: PyWart: os.path needs immediate attention! Terry Reedy <tjreedy@udel.edu> - 2011-07-29 19:30 -0400
  Re: PyWart: os.path needs immediate attention! Michael Poeltl <michael.poeltl@univie.ac.at> - 2011-07-30 02:30 +0200
    Re: PyWart: os.path needs immediate attention! Grant Edwards <invalid@invalid.invalid> - 2011-07-30 15:33 +0000
      Re: PyWart: os.path needs immediate attention! Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-30 10:56 -0500
        Re: PyWart: os.path needs immediate attention! alex23 <wuwei23@gmail.com> - 2011-08-02 23:52 -0700
  Re: PyWart: os.path needs immediate attention! Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-07-29 22:17 -0700
  Re: PyWart: os.path needs immediate attention! Gelonida N <gelonida@gmail.com> - 2011-08-03 11:52 +0200

csiph-web