Re: Call function via literal name

2016-07-29 Thread TUA
On Friday, 29 July 2016 13:35:30 UTC-7, TUA wrote: > Rather than do this: > > if test['method'] == 'GET': > res = requests.get(test['endpoint'],auth=test['auth'], > verify=False) > elif test['method'] == 'POST': > res =

Re: Call function via literal name

2016-07-29 Thread Ian Kelly
On Fri, Jul 29, 2016 at 2:35 PM, TUA wrote: > Rather than do this: > > if test['method'] == 'GET': > res = requests.get(test['endpoint'],auth=test['auth'], > verify=False) > elif test['method'] == 'POST': > res =

Re: Call function via literal name

2016-07-29 Thread Jon Ribbens
On 2016-07-29, TUA wrote: > Rather than do this: > > if test['method'] == 'GET': > res = requests.get(test['endpoint'],auth=test['auth'], > verify=False) > elif test['method'] == 'POST': > res =

Call function via literal name

2016-07-29 Thread TUA
Rather than do this: if test['method'] == 'GET': res = requests.get(test['endpoint'],auth=test['auth'], verify=False) elif test['method'] == 'POST': res = requests.post(test['endpoint'], auth=test['auth'], verify=False,