Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder.news-service.com!news2.euro.net!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; '(except': 0.05; 'cpython': 0.05; 'one?': 0.05; 'suppose': 0.05; 'path,': 0.07; 'sep': 0.07; 'python': 0.08; '>>>>': 0.09; 'backslash': 0.09; 'builtin': 0.09; 'splitting': 0.09; 'tuple': 0.09; 'wrote:': 0.15; '12:22': 0.16; '3.2.1': 0.16; 'contexts,': 0.16; 'dirname': 0.16; 'drastic': 0.16; 'filename,': 0.16; 'propagate': 0.16; 'rantingrick': 0.16; 'splits': 0.16; 'thunderbird': 0.16; 'what?': 0.16; 'pm,': 0.16; 'interesting.': 0.19; 'received:209.85.210.174': 0.19; 'received :mail-iy0-f174.google.com': 0.19; 'header:In-Reply-To:1': 0.22; 'changes,': 0.25; 'moving': 0.25; 'string': 0.26; 'windows': 0.26; 'specifically': 0.26; 'replaced': 0.29; 'id:': 0.29; 'module': 0.30; 'behind.': 0.30; 'forward.': 0.30; 'named': 0.32; 'propose': 0.32; 'message-id:@gmail.com': 0.32; 'does': 0.32; 'actually': 0.33; 'to:addr:python-list': 0.34; 'header:User-Agent:1': 0.34; 'operating': 0.34; 'there': 0.34; '...': 0.34; 'agree': 0.35; 'module.': 0.35; 'surprised': 0.35; 'widely': 0.35; 'pretty': 0.35; 'stopped': 0.35; 'skip:" 10': 0.36; 'skip:o 20': 0.36; 'some': 0.37; 'but': 0.37; 'could': 0.37; 'received:192': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'perhaps': 0.39; 'received:192.168.1': 0.39; 'should': 0.39; 'help': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'sense': 0.40; "i'd": 0.40; 'methods': 0.40; 'forward': 0.62; 'family': 0.63; 'making': 0.66; 'subject:!': 0.67; 'wish': 0.70; 'introduce': 0.79; '5.0': 0.84; 'methods)': 0.84; 'worthy': 0.84; '-->': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=MV2/uAMm/IrZViIJFsZNpNHad669MFcQFaF+FKCSOwM=; b=EQ1u3BW+6IBP15ypdc3ga2c9x49LfGa8MvzVwx6HMggPMVe8ZHtVq9JOoS0zD8BIqN 3ekbRIC4aw+yni9quwxtjOS228Dne4Hf9tzef3HfMBUmxerR5SjyHbY29aA5jssWbNtz XfdLXlocl3Gzjuv2gbsJWkmwrtspLc1PPZa18= Date: Fri, 29 Jul 2011 12:53:04 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: PyWart: os.path needs immediate attention! References: <14874f59-a836-4031-a8c9-6b24f4d5e812@d7g2000vbv.googlegroups.com> In-Reply-To: <14874f59-a836-4031-a8c9-6b24f4d5e812@d7g2000vbv.googlegroups.com> X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1311961999 news.xs4all.nl 23891 [2001:888:2000:d::a6]:33363 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10531 On 2011.07.29 12:22 PM, rantingrick wrote: > * New path module will ONLY support one path sep! There is NO reason > to support more than one. When we support more than one path sep we > help to propagate multiplicity.We should only support the slash and > NOT the backslash across ALL OS's since the slash is more widely > accepted. If an OS does not have the capability to support only the > slash then that OS is not worthy of a Python builtin module. The users > of such OS will be responsible for managing their OWN os_legacy.path > module. We are moving forward. Those who wish to wallow in the past > will be left behind. So now you propose that not only does Python need drastic changes, but a major operating system family as well (I know Windows will accept a forward slash in some contexts, but I'd be pretty surprised if one could completely replace the backslash with it completely)? Interesting. > * Introduce a new method named "partition" which (along with string > splitting methods) will replace the six methods "basename", "dirname", > "split", "splitdrive", "splitunc", "splittext". The method will return > a tuple of the path split into four parts: (drive, path, filename, > extension). This is the ONLY splitting method this module needs. All > other splits can use string methods. So these pretty specifically named functions (except perhaps split) should be replaced with one ambiguously named one? Interesting. > - dirname --> os.path.join(drive,path) Now you've stopped making sense completely. Also interesting. > * split --> split what? > ... >>>> os.path.exists(path, ignoreSymLnks=False) I actually agree with you on these, which I suppose is interesting. -- CPython 3.2.1 | Windows NT 6.1.7601.17592 | Thunderbird 5.0 PGP/GPG Public Key ID: 0xF88E034060A78FCB