Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'anyway.': 0.05; 'guido': 0.05; 'layers': 0.07; 'high-level': 0.09; 'objects,': 0.09; 'cc:addr:python-list': 0.11; 'mostly': 0.14; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'obviously': 0.18; 'wed,': 0.18; 'bit': 0.19; 'module': 0.19; 'seems': 0.21; 'import': 0.22; 'aug': 0.22; 'putting': 0.22; 'cc:addr:python.org': 0.22; 'skip': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'rest': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'supposed': 0.32; 'created': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'level': 0.37; 'pm,': 0.38; 'sure': 0.39; 'hope': 0.61; 'lower': 0.61; 'more': 0.64; 'between': 0.67; 'crew': 0.84; 'directly.': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=MqzLkPxHVM/M0KiDBHns2y6ABSJWNpHjT+iLps6UJkM=; b=uN9i6k6Yn77283Nz2X8IOrXtJjX8epWQgZZrb1UgnpvlJT343rfcPQ1s9fpETTzVNh TxyiQzT5BnO7rvtgH+GoSHLQOD9qsJ7xNWqha1ssZC3+0qxI1+KegIqc7Dj32ezRbTGq 677/zp9q6WH6V7/uKgPc0ym2BZFsjZtFIagDbNLM+/aUWY9YS7OHxmrpBfmLlx2JvHXE xqFb4eCzFfzX62lnQaIBPEGpEadGrDVCfHW4xMSbqwQy6uETJuJ9FSkCIWLQGT9/c5h8 96wohp9J3KExkpIWiBPYJ3lbxr1R5igFmp/Ty6SrSk3+JQA5LmQbADPNIwuZoRBTLFN6 X5Hg== MIME-Version: 1.0 X-Received: by 10.52.73.135 with SMTP id l7mr9254020vdv.9.1376501888049; Wed, 14 Aug 2013 10:38:08 -0700 (PDT) Sender: skip.montanaro@gmail.com In-Reply-To: <1376499950.3355.9802231.6A03F40D@webmail.messagingengine.com> References: <94f8428f-50b9-4ccd-95a0-6eeafda0fe18@googlegroups.com> <1376499950.3355.9802231.6A03F40D@webmail.messagingengine.com> Date: Wed, 14 Aug 2013 12:38:07 -0500 X-Google-Sender-Auth: WR2D24yD1usBo41RXqJZxVuEVCc Subject: Re: .split() Qeustion From: Skip Montanaro To: random832@fastmail.us Content-Type: text/plain; charset=UTF-8 Cc: Python 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376501891 news.xs4all.nl 15874 [2001:888:2000:d::a6]:38940 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52528 On Wed, Aug 14, 2013 at 12:05 PM, wrote: > Because high-level code isn't supposed to use the os module directly. That seems a bit extreme. One would hope that Guido and the rest of the crew created the os module so people would use it instead of resorting to other lower level hacks. A quick find/grep of my own code suggests that I import os more than sys. I use it mostly for os.path.* and os.environ. I'm not sure there's a higher level way to access them without putting more layers between your code and those objects, which code would obviously have to call them anyway. Did I just misread your comment? Skip