|
From: Patrick T. <pat...@go...> - 2012-04-01 10:43:21
|
Quoting Faheem Mitha (2012-03-31 22:04:45)
>> Typically you'd grep for file removals and so on, or run it in a chroot or something
>> similar but I don't thing you should go that road and try to replace eval.
>
>Not sure what you are saying here. Do you think I should replace eval, or
>should not replace eval?
Sorry, ambiguous use of natural language :)
I think you should not use eval.
>> You could try using a different separator, say a semicolon for inner lists and a dot for
>> outer lists. If you don't have a problem to compromise your syntax like this you can use:
>>
>> value = 1.2;3.4.5
>> [inner.split('.') for inner in value.split(';')]
>
>Interesting suggestion, thanks.
It's ugly, I know. Let's hope the validate interface gets refined here.
best,
/p
|