|
|
|
|
|
by figgis
2828 days ago
|
|
I apologize but I'm really having trouble understanding what the problem you are referring too. In python syntax that would be written as - if ConditionA:
attr = "foo"
else:
attr = "bar"
if ConditionB:
obj = A()
else:
obj = B()
if hasattr(attr, obj):
do_magic()
I haven't tested Bowler yet but I would think something that refactors code would handle that pretty easily? |
|