Re: Subtle Syntax Error

dcharno <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
Rich Shepard wrote:
>      gone = self.polTree.GetItemText(hilite)
>      self.polTree.Delete(hilite)
>      self.appData.cur.execute("delete from subpolicy where subpol_name = 'gone'")

Python is not going to replace the substring "gone" with the value of 
the variable gone for you.

http://diveintopython.org/native_data_types/formatting_strings.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.