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
"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
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
>>
>
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
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
"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
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