Most "pythonic" syntax to use for an API client library
PythonList at DancesWithMice.info
Mon Apr 29 00:41:43 EDT 2019
On 29/04/19 3:55 PM, Chris Angelico wrote:
> On Mon, Apr 29, 2019 at 1:43 PM DL Neil <PythonList at danceswithmice.info> wrote:
>> Well, seeing you ask: a more HTTP-ish approach *might* be:
>> api.update.customer( 1, name='Bob' )
>> api.verb.subject( adjectives and adverbs )
>> customerID, support_data)
>> Yet, it doesn't really *look right* does it?
>> (and someone might complain about mixing the 'different' variable-values...)
> The point here is not to make an HTTP-like interface, but a
> Python-like interface :)
OK, I'll bite...
...shouldn't the Python-like interface reflect what it is wrapping?
(says he, wrestling with the Kraken and cv2. Grrrr!)
More information about the Python-list