Re: str().join() isn't working

2007-08-21 Thread kyosohma
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? > > >>> [

Re: str().join() isn't working

2007-08-21 Thread Steve Holden
[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

Re: str().join() isn't working

2007-08-20 Thread Terry Reedy
"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

Re: str().join() isn't working

2007-08-20 Thread John Machin
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

Re: str().join() isn't working

2007-08-20 Thread Asun Friere
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

Re: str().join() isn't working

2007-08-20 Thread Robert Dailey
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

Re: str().join() isn't working

2007-08-20 Thread Terry Reedy
"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 ;

Re: str().join() isn't working

2007-08-20 Thread Robert Dailey
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: >

Re: str().join() isn't working

2007-08-20 Thread kyosohma
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

Re: str().join() isn't working

2007-08-20 Thread Carsten Haese
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] >

Re: str().join() isn't working

2007-08-20 Thread beginner
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

Re: str().join() isn't working

2007-08-20 Thread Robert Dailey
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