On 6/06/2006 8:38 PM, bruno at modulix wrote:
> John Machin wrote:
>> On 5/06/2006 10:46 PM, Bruno Desthuilliers wrote:
>>
>>> [EMAIL PROTECTED] a écrit :
>>>
hi
in my code, i use dict(a) to make to "a" into a dictionary , "a" comes
from user input, so my program does not know in the
John Machin wrote:
> On 5/06/2006 10:46 PM, Bruno Desthuilliers wrote:
>
>> [EMAIL PROTECTED] a écrit :
>>
>>> hi
>>> in my code, i use dict(a) to make to "a" into a dictionary , "a" comes
>>> from user input, so my program does not know in the first place. Then
>>> say , it becomes
>>>
>>> a = {
On 5/06/2006 10:46 PM, Bruno Desthuilliers wrote:
> [EMAIL PROTECTED] a écrit :
>> hi
>> in my code, i use dict(a) to make to "a" into a dictionary , "a" comes
>> from user input, so my program does not know in the first place. Then
>> say , it becomes
>>
>> a = { '-A' : 'value1' , '-B' : "value2"
[EMAIL PROTECTED] a écrit :
> hi
> in my code, i use dict(a) to make to "a" into a dictionary , "a" comes
> from user input, so my program does not know in the first place. Then
> say , it becomes
>
> a = { '-A' : 'value1' , '-B' : "value2" , "-C" : "value3" , '-D' :
> 'value4' }
>
> somewhere ne
def all(s):
for x in s:
if not x: return False
return True
bad_combos = [['-A', '-B'], ['-A', '-C'], ...]
for bad_combo in bad_combos:
assert not all([bad_elem in a for bad_elem in bad_combo])
[EMAIL PROTECTED] wrote:
> hi
> in my code, i use dict(a) to make to "a" into a dic
hi
in my code, i use dict(a) to make to "a" into a dictionary , "a" comes
from user input, so my program does not know in the first place. Then
say , it becomes
a = { '-A' : 'value1' , '-B' : "value2" , "-C" : "value3" , '-D' :
'value4' }
somewhere next in my code, i will check for these..:
1)