Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'used.': 0.07; 'url:pypi': 0.08; 'global,': 0.09; 'googling': 0.09; 'nameerror:': 0.09; 'to:addr:comp.lang.python': 0.09; 'wednesday,': 0.15; 'bootstrap': 0.16; 'elsewhere,': 0.16; 'subject:function': 0.16; 'url:virtualenv': 0.16; 'utc,': 0.16; 'cc:addr:python-list': 0.16; 'this:': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'seems': 0.20; '(most': 0.21; 'cc:no real name:2**0': 0.21; 'header:In-Reply- To:1': 0.22; 'seemingly': 0.23; 'defined': 0.24; 'string': 0.24; 'traceback': 0.24; 'cc:2**0': 0.26; 'function': 0.27; 'tried': 0.27; 'code,': 0.28; 'example': 0.29; "skip:' 10": 0.29; 'cc:addr:python.org': 0.29; 'arguments.': 0.30; 'clear,': 0.30; 'from:addr:googlemail.com': 0.31; 'subject:?': 0.31; "i've": 0.32; 'header:User-Agent:1': 0.33; 'file': 0.34; 'last):': 0.34; 'url:python': 0.35; 'received:209.85.160': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'skip:" 10': 0.37; 'received:209.85': 0.38; 'think': 0.38; 'url:org': 0.39; 'received:209': 0.39; 'join': 0.61; 'march': 0.61; 'is.': 0.63; 'results': 0.64; 'subject:join': 0.64; 'show': 0.66; 'received:209.85.160.184': 0.67; 'received:mail-gy0-f184.google.com': 0.67; 'join,': 0.84; 'jon': 0.84; 'subject:Global': 0.95 Newsgroups: comp.lang.python Date: Wed, 14 Mar 2012 11:52:50 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.156.91.130; posting-account=HLD_OAoAAAD-0RilNRZUjdKEwXt97Q9q References: User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: Global join function? From: Jon Clements To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org 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: , Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331751173 news.xs4all.nl 6840 [2001:888:2000:d::a6]:33883 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21618 On Wednesday, 14 March 2012 18:41:27 UTC, Darrel Grant wrote: > In the virtualenv example bootstrap code, a global join function is used. > > http://pypi.python.org/pypi/virtualenv > > subprocess.call([join(home_dir, 'bin', 'easy_install'), > 'BlogApplication']) > > > In interpeter, I tried this: > > >>> [join([], 'bin', 'easy_install')] > Traceback (most recent call last): > File "", line 1, in > NameError: name 'join' is not defined > > I think I've seen this used elsewhere, but googling only seems to show > results about the string method join, not whatever this is. > > To be clear, I understand how to use "".join(list), but have not found > any information about this other, seemingly global, join function > which takes multiple arguments. It's been bugging me. os.path.join Jon