Re: Varable parsing error with python

2015-02-10 Thread Steven D'Aprano
OmPs wrote: > On 10 Feb 2015 13:59, "OmPs" wrote: >> Tried that as well getting the same error. > > I feel its something to do with variable substitution. Python doesn't do variable substitution. At least not the way I think of it. What do you mean by "variable substitution"? Instead of "feel

Re: Varable parsing error with python

2015-02-10 Thread Dave Angel
On 02/10/2015 01:24 PM, Denis McMahon wrote: On Tue, 10 Feb 2015 18:39:42 +1100, Chris Angelico wrote: On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: def _getPackgeVersion(xmlfile, p): package = str(p) if isinstance(fpmdict["application"]["package"], list): f

Re: Varable parsing error with python

2015-02-10 Thread Denis McMahon
On Tue, 10 Feb 2015 18:39:42 +1100, Chris Angelico wrote: > On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: >> def _getPackgeVersion(xmlfile, p): >> package = str(p) >> if isinstance(fpmdict["application"]["package"], list): >> for i in fpmdict["application"]["package

Re: Varable parsing error with python

2015-02-10 Thread Dave Angel
On 02/10/2015 03:29 AM, OmPs wrote: On 10 Feb 2015 13:12, "Chris Angelico" wrote: On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: def _getPackgeVersion(xmlfile, p): package = str(p) if isinstance(fpmdict["application"]["package"], list): for i in fpmdict["app

Re: Varable parsing error with python

2015-02-10 Thread OmPs
On 10 Feb 2015 13:59, "OmPs" wrote: > > > On 10 Feb 2015 13:12, "Chris Angelico" wrote: > > > > On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: > > > def _getPackgeVersion(xmlfile, p): > > > package = str(p) > > > if isinstance(fpmdict["application"]["package"], list): > > >

Re: Varable parsing error with python

2015-02-10 Thread OmPs
On 10 Feb 2015 13:12, "Chris Angelico" wrote: > > On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: > > def _getPackgeVersion(xmlfile, p): > > package = str(p) > > if isinstance(fpmdict["application"]["package"], list): > > for i in fpmdict["application"]["package"]: >

Re: Varable parsing error with python

2015-02-09 Thread Chris Angelico
On Tue, Feb 10, 2015 at 6:30 PM, OmPs wrote: > def _getPackgeVersion(xmlfile, p): > package = str(p) > if isinstance(fpmdict["application"]["package"], list): > for i in fpmdict["application"]["package"]: > if i["@name"] == p: > _