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