cannot concatenate 'str' and 'list' objects

Νικόλαος Κούρας nikos.gr33k at gmail.com
Sat Sep 15 09:53:37 EDT 2012


Τη Σάββατο, 15 Σεπτεμβρίου 2012 4:38:51 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
> 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

i see you try to extract only the 1st element of the list, i tried that too but it gives me now this weird message:

if you visit my website http://superhost.gr



More information about the Python-list mailing list