cannot concatenate 'str' and 'list' objects

Chris Angelico rosuav at gmail.com
Sat Sep 15 09:38:09 EDT 2012


On Sat, Sep 15, 2012 at 11:28 PM, Νικόλαος Κούρας <nikos.gr33k at gmail.com> wrote:
> Iam not using frameworks just plain python code written in Notepad++
>
> Can you please tell me how to switch this line in order for this line to work?

f = open( '../' + page[0])

will possibly work. But do try to understand what's happening, rather
than simply solve the problem. You may find that something else has
changed too.

ChrisA



More information about the Python-list mailing list