Re: [Tutor] importing variables

2009-11-12 Thread Dave Angel
Stefan Lesicnik wrote: On Thu, Nov 12, 2009 at 6:26 PM, bob gailer wrote: Stefan Lesicnik wrote: Hi guys, Im trying to do something and hit a bit of a wall, potentially im going about this the wrong way. Essentially the problem is: features file contains rt='text''' import features

Re: [Tutor] importing variables

2009-11-12 Thread Alan Gauld
"bob gailer" wrote I need to use features.a as i am iterating through a list and a would be the different features i want to check if they exist, and then use the variable. I hope that makes sense, or if anyone has any suggestion on how properly to do this! Even though Alan missed your poin

Re: [Tutor] importing variables

2009-11-12 Thread Stefan Lesicnik
On Thu, Nov 12, 2009 at 6:26 PM, bob gailer wrote: > Stefan Lesicnik wrote: >> >> Hi guys, >> >> Im trying to do something and hit a bit of a wall, potentially im >> going about this the wrong way. Essentially the problem is: >> >> features file contains >> rt='''text''' >> >> import features >> >

Re: [Tutor] importing variables

2009-11-12 Thread bob gailer
Stefan Lesicnik wrote: Hi guys, Im trying to do something and hit a bit of a wall, potentially im going about this the wrong way. Essentially the problem is: features file contains rt='''text''' import features a = 'rt' print features.rt #this works print features.a #this fails I need to u

Re: [Tutor] importing variables

2009-11-12 Thread Stefan Lesicnik
On Thu, Nov 12, 2009 at 4:38 PM, Alan Gauld wrote: > > "Stefan Lesicnik" wrote > >> features file contains >> rt='''text''' >> >> import features >> >> a = 'rt' >> print features.rt  #this works >> print features.a  #this fails > > Because you defined a in your current file. > You need to define

Re: [Tutor] importing variables

2009-11-12 Thread Alan Gauld
"Stefan Lesicnik" wrote features file contains rt='''text''' import features a = 'rt' print features.rt #this works print features.a #this fails Because you defined a in your current file. You need to define it in features. I need to use features.a as i am iterating through a list and

[Tutor] importing variables

2009-11-12 Thread Stefan Lesicnik
Hi guys, Im trying to do something and hit a bit of a wall, potentially im going about this the wrong way. Essentially the problem is: features file contains rt='''text''' import features a = 'rt' print features.rt #this works print features.a #this fails I need to use features.a as i am ite