Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21617 > unrolled thread
| Started by | Darrel Grant <darrel343@gmail.com> |
|---|---|
| First post | 2012-03-14 11:41 -0700 |
| Last post | 2012-03-14 11:52 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
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
| From | Darrel Grant <darrel343@gmail.com> |
|---|---|
| Date | 2012-03-14 11:41 -0700 |
| Subject | Global join function? |
| Message-ID | <mailman.643.1331750822.3037.python-list@python.org> |
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.
[toc] | [next] | [standalone]
| From | Jon Clements <joncle@googlemail.com> |
|---|---|
| Date | 2012-03-14 11:52 -0700 |
| Message-ID | <mailman.644.1331751173.3037.python-list@python.org> |
| In reply to | #21617 |
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 "<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. os.path.join Jon
[toc] | [prev] | [next] | [standalone]
| From | Jon Clements <joncle@googlemail.com> |
|---|---|
| Date | 2012-03-14 11:52 -0700 |
| Message-ID | <9936996.807.1331751170123.JavaMail.geo-discussion-forums@vbyl20> |
| In reply to | #21617 |
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 "<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. os.path.join Jon
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web