
May 26, 2016
10:20 p.m.
Steven D'Aprano wrote:
I believe that, by far the majority of the time, you will be repeating the same names twice, and likely exceeding most reasonable line lengths:
'referer': referer, 'useragent': useragent, 'use_proxy': use_proxy, 'follow_links': follow_links, 'clobber': clobber, 'timeout': timeout = mapping
I think a more realistic usage would be to give short local names to something having long keys. ('referer': ref, 'useragent': ua, 'use_proxy': prox, 'follow_links': fl, 'clobber': clob, 'timeout': to) = mapping So tying the keys to the names of the target variables might be too restrictive. -- Greg