Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'args': 0.04; 'attribute': 0.05; 'error:': 0.05; 'skip:\\ 20': 0.05; 'line:': 0.07; 'parsing': 0.07; 'skip:\\ 40': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; "skip:' 30": 0.15; 'files)': 0.16; 'subject: \n ': 0.16; 'subject:based': 0.16; 'subject:values': 0.16; 'module': 0.19; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; "skip:' 10": 0.30; 'subject:data': 0.33; 'code:': 0.33; 'received:google.com': 0.34; 'path': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'some': 0.38; 'difficulty': 0.65; 'skip:/ 30': 0.91 X-Received: by 10.49.98.42 with SMTP id ef10mr2865858qeb.15.1362562891913; Wed, 06 Mar 2013 01:41:31 -0800 (PST) Newsgroups: comp.lang.python Date: Wed, 6 Mar 2013 01:41:31 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.127.128; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <390f0dc5-5750-4849-9433-a19d90cc8566@googlegroups.com> <3958fc2b-a2fe-4c85-a104-4c6f551cf787@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.127.128 MIME-Version: 1.0 Subject: Re: sync databse table based on current directory data without losign previous values From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362562894 news.xs4all.nl 6969 [2001:888:2000:d::a6]:35698 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40618 Its about the following line of code: current_fullpaths.add( os.path.join(root, files) ) that presents the following error: : 'list' object has no attribute 'startsw= ith'=20 args =3D ("'list' object has no attribute 'startswith'",)=20 message =3D "'list' object has no attribute 'startswith'" join calls some module that find difficulty when parsing its line: /usr/lib64/python2.6/posixpath.py in join(a=3D'/home/nikos/public_html/dat= a/files/', *p=3D(['\xce\x9a\xcf\x8d\xcf\x81\xce\xb9\xce\xb5 \xce\x99\xce\xb= 7\xcf\x83\xce\xbf\xcf\x8d \xce\xa7\xcf\x81\xce\xb9\xcf\x83\xcf\x84\xce\xad = \xce\x95\xce\xbb\xce\xad\xce\xb7\xcf\x83\xce\xbf\xce\xbd \xce\x9c\xce\xb5.m= p3', '\xce\xa0\xce\xb5\xcf\x81\xce\xaf \xcf\x84\xcf\x89\xce\xbd \xce\x9b\xc= e\xbf\xce\xb3\xce\xb9\xcf\x83\xce\xbc\xcf\x8e\xce\xbd.mp3'],)) 63 path =3D a 64 for b in p: 65 if b.startswith('/'):