On Aug 20, 8:18 pm, Asun Friere <[EMAIL PROTECTED]> wrote:
> On Aug 21, 4:34 am, [EMAIL PROTECTED] wrote:
>
> > to concatenate 2 lists to each other before it does the join, ... is
> > impossible in Python. The "+" operator is only for addition and for
> > two or more strings.
>
> Really?
>
> >>> [
[EMAIL PROTECTED] wrote:
> On Aug 20, 1:16 pm, "Robert Dailey" <[EMAIL PROTECTED]> wrote:
[...]
> When you use join, you join the items in the list with each other to
> form one long string. In your statement, your script tries to
> concatenate 2 lists to each other before it does the join, which i
"Robert Dailey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Yeah! That's it lol. Sorry, I wasn't looking at the documentation. At
least
| you got the point!
But newbies might not have. In any case, 'dir(list)' in interactive mode
prints the list methods and similarly for oth
On Aug 21, 4:34 am, [EMAIL PROTECTED] wrote:
> In your statement, your script tries to
> concatenate 2 lists to each other before it does the join, which is
> impossible in Python. The "+" operator is only for addition and for
> two or more strings.
Not so; the + operator is "for" *any* class whic
On Aug 21, 4:34 am, [EMAIL PROTECTED] wrote:
> to concatenate 2 lists to each other before it does the join, ... is
> impossible in Python. The "+" operator is only for addition and for
> two or more strings.
Really?
>>> [1,2,3] + [4,5,6]
[1, 2, 3, 4, 5, 6]
--
http://mail.python.org/mailman/lis
Yeah! That's it lol. Sorry, I wasn't looking at the documentation. At least
you got the point!
Thanks again guys.
On 8/20/07, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
>
> "Robert Dailey" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> | Hi all,
> |
> | Thanks for your response. I
"Robert Dailey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Hi all,
|
| Thanks for your response. I figured out the issue. I was using
| list.append() to append another list, when I should have been using
| expand(). Sorry for the confusion.
The method is .extend, not .expand ;
Hi all,
Thanks for your response. I figured out the issue. I was using
list.append() to append another list, when I should have been using
expand(). Sorry for the confusion.
On 8/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Aug 20, 1:16 pm, "Robert Dailey" <[EMAIL PROTECTED]> wrote:
>
On Aug 20, 1:16 pm, "Robert Dailey" <[EMAIL PROTECTED]> wrote:
> here is a more realized example of the lists I'm trying to join:
>
> _user_includes = [
> "../src",
> "../resource",
> "../inc",
> "../src",
> "../data",
> "../gui",
> "../script
On Mon, 2007-08-20 at 13:16 -0500, Robert Dailey wrote:
> here is a more realized example of the lists I'm trying to join:
>
>
> _user_includes = [
> "../src",
> # [snip]
> ]
>
> _system_includes = [
> "../../../../../../Symbian/9.1/NGAGE_SDK_1.1/EPOC32/include",
> # [snip]
>
On Aug 20, 1:16 pm, "Robert Dailey" <[EMAIL PROTECTED]> wrote:
> here is a more realized example of the lists I'm trying to join:
>
> _user_includes = [
> "../src",
> "../resource",
> "../inc",
> "../src",
> "../data",
> "../gui",
> "../script
here is a more realized example of the lists I'm trying to join:
_user_includes = [
"../src",
"../resource",
"../inc",
"../src",
"../data",
"../gui",
"../script",
"../script/actions",
"../gui/dispatch",
"../gui/factor
12 matches
Mail list logo