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


Groups > comp.lang.python > #21619

Re: Global join function?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'broken.': 0.07; 'question:': 0.07; 'used.': 0.07; 'url:pypi': 0.08; '>>>>': 0.09; 'googling': 0.09; 'nameerror:': 0.09; 'snippets': 0.09; 'am,': 0.12; 'bootstrap': 0.16; 'elsewhere,': 0.16; 'skip:\xc2 30': 0.16; 'subject:function': 0.16; 'url:virtualenv': 0.16; 'cc:addr:python- list': 0.16; 'this:': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'seems': 0.20; 'cheers,': 0.20; '(most': 0.21; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'defined': 0.24; 'string': 0.24; 'traceback': 0.24; 'cc:2**0': 0.26; 'function': 0.27; 'import': 0.27; 'tried': 0.27; 'code,': 0.28; 'message- id:@mail.gmail.com': 0.29; 'example': 0.29; "skip:' 10": 0.29; 'cc:addr:python.org': 0.29; 'line:': 0.30; 'chris': 0.30; 'url:library': 0.31; 'subject:?': 0.31; "i've": 0.32; 'last):': 0.34; 'url:python': 0.35; 'received:209.85.214': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'think': 0.38; 'url:org': 0.39; 'received:209': 0.39; 'missing': 0.40; 'join': 0.61; 'is.': 0.63; 'results': 0.64; 'subject:join': 0.64; 'show': 0.66; '11:41': 0.84; 'join,': 0.84; 'sender:addr:chris': 0.84; 'url:join': 0.91; 'presumably': 0.93; 'subject:Global': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OsjSGGxpSRNmBqj21niKH4Gku9tGhkdpuCzjUyiESmw=; b=C2pob92ZiDvIRhk2/z01ead5CgqYVpIMnyEqJdTRV8lifghy+9zVJlh+UcOgL4CX2k Q8IA3bh+UBUrGjaJzfrTwaMgUgLAROY4Y7uGLUpV1IrElLQRCWzsXIKCtnLLDNwdsiem 2oeKMQ/+EoeFccDo6AzsOsTPjXOmKJzRlfsaA=
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=OsjSGGxpSRNmBqj21niKH4Gku9tGhkdpuCzjUyiESmw=; b=VVpIC6Zalyc3H0L7G3CNxWR3folszjciHpenWZRHUrYSD54qCilJoLn1jzybr07grd Bjh/DRuoGKwhgbZbikFJUfniFhFHqPzmZhwkduEb4vvw0zg8g5PMVqZ8cHnZUU6wVNYY 4hk5QlJ0PSbbz2lw4QCzDWb0TnUwyHESNR2E21wdZrMa/a/EUI7W4KBeQZJvJxFNEFvj moZhQ83MI9KEr2NtBcLq3JMzc7hlFm6wiqrJNHmxx+iQxP6sUgVc4q7fzYACHfS9RhoD 8OFEU5v7+qAtI/7h7DIquMOEj0l8QhDf75wunlzOWZqps8c9JJH8pb0mz2ox0Chv5Kgc P7Aw==
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <CAGbOqHbN_K-DZek_Vv8iFKcAL-Os6zLKtWhhO=e895=-uX3Y-g@mail.gmail.com>
References <CAGbOqHbN_K-DZek_Vv8iFKcAL-Os6zLKtWhhO=e895=-uX3Y-g@mail.gmail.com>
Date Wed, 14 Mar 2012 11:54:32 -0700
X-Google-Sender-Auth Ohk0D7mdorGpOQzKEHZCsHTNVHE
Subject Re: Global join function?
From Chris Rebert <clp2@rebertia.com>
To Darrel Grant <darrel343@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Gm-Message-State ALoCoQmEfVMM5qVK0KiMWLATkSVrnUqkt6Cke7Q7tDFCGoSlAg1kkBaFHkywvbqiiZ+6eELWxNFh
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 <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.645.1331751274.3037.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331751274 news.xs4all.nl 6987 [2001:888:2000:d::a6]:36003
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21619

Show key headers only | View raw


On Wed, Mar 14, 2012 at 11:41 AM, Darrel Grant <darrel343@gmail.com> 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 "<stdin>", line 1, in <module>
> 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.

Those example snippets are broken. They're presumably missing the line:
    from os.path import join
Docs for the function in question:
http://docs.python.org/library/os.path.html#os.path.join

Cheers,
Chris

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


Thread

Re: Global join function? Chris Rebert <clp2@rebertia.com> - 2012-03-14 11:54 -0700

csiph-web