>> try:
>> max_retries = config['max_retries']
>> except KeyError:
>> max_retries = 10
>>
>> versus
>>
>> max_retries = config.get('max_retries', 10)
>>
>>
>>
>> Cheers,
>> AT
>>
>>
>&g
Hello,
Not sure what the difference is in the usage of attrs
I could not find the documentation for this although I'm sure it's going to
be obvious after the fact.
Also, could someone tell me what the double asterisks mean in the line
return Comment(**attrs)
?
Is this some type of variable len
2 matches
Mail list logo