str().join() isn't working

Robert Dailey rcdailey at gmail.com
Mon Aug 20 12:05:31 EDT 2007


Hi,

First have a look at the following code:


In main.py:
-----------------------------------------------------------------------------------
    space = " "

    includes = space.join( system._user_includes ) + " " + space.join(
system._system_includes )


In system.py:
-----------------------------------------------------------------------------------
_user_includes = [
    ]

_system_includes = [
    ]


The above does not work. The interpreter states: "TypeError: sequence item
0: expected string, list found". I'm not sure what this means. Can anyone
help me figure out what I'm doing wrong? Thanks.

PS: I've also tried putting strings in the lists above just to make sure
that them being empty wasn't the problem. I got no different results.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070820/b9ea688e/attachment.html>


More information about the Python-list mailing list