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


Groups > comp.lang.python > #21617

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!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <darrel343@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'used.': 0.07; 'url:pypi': 0.08; 'global,': 0.09; 'googling': 0.09; 'nameerror:': 0.09; 'bootstrap': 0.16; 'elsewhere,': 0.16; 'subject:function': 0.16; 'url:virtualenv': 0.16; 'this:': 0.16; '>>>': 0.18; 'seems': 0.20; '(most': 0.21; 'seemingly': 0.23; 'defined': 0.24; 'string': 0.24; 'traceback': 0.24; 'function': 0.27; 'tried': 0.27; 'code,': 0.28; 'message-id:@mail.gmail.com': 0.29; 'example': 0.29; "skip:' 10": 0.29; 'arguments.': 0.30; 'clear,': 0.30; 'subject:?': 0.31; "i've": 0.32; 'received:209.85.212': 0.33; 'file': 0.34; 'last):': 0.34; 'to:addr:python-list': 0.35; 'url:python': 0.35; '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; 'to:addr:python.org': 0.40; 'join': 0.61; 'is.': 0.63; 'results': 0.64; 'subject:join': 0.64; 'show': 0.66; 'join,': 0.84; 'received:209.85.212.178': 0.91; 'subject:Global': 0.95
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=D+rxCgJqmlePFhiRtn4HjyWMVsC0z7/hhbb0CLuno2k=; b=rZ0R3FHS9Tqjg2bMuXGpkQUZvlEC5bRAyA57sEIaMHVAzlNcC4oI4rb2ZULOeh+fuA T416aoGIT1jC5BZ5cP5tGfICobA+Iw345kAHYGpER3vq+pqNcF7bI8Mf6Ek+ArYzIDXb aM+sXRmfNgHor9GIbRDAbTL0ROCiNFUzT4ViEPs5DbNqVjUr1P3BugVoQl6d8jY8CHXJ ieE1gGo9Tj3vVnb24drObA2iaA65VvZaPooLfd1ew99CNlQByT7AICx+AdFk/aIDpK5m HFerjjGE0vSZJcE7zR7Hc03ATXc16Dh2+OVue7VzfZT+bqcBoJLp5nLhi+SsxqLVuqmH PJPA==
MIME-Version 1.0
Date Wed, 14 Mar 2012 11:41:27 -0700
Subject Global join function?
From Darrel Grant <darrel343@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.643.1331750822.3037.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331750822 news.xs4all.nl 6957 [2001:888:2000:d::a6]:57907
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21617

Show key headers only | View raw


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.

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.

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


Thread

Global join function? Darrel Grant <darrel343@gmail.com> - 2012-03-14 11:41 -0700
  Re: Global join function? Jon Clements <joncle@googlemail.com> - 2012-03-14 11:52 -0700
  Re: Global join function? Jon Clements <joncle@googlemail.com> - 2012-03-14 11:52 -0700

csiph-web