The client provides list() methods for listing all kinds of resources. Most of the listing endpoints support pagination by providing a querystring like ?from=tr_12345&limit=42. We allow passing querystring parameters using generic keywords arguments to the list() method (and all other API interfacing methods), f.i.; client.payments.list(from="tr_12345", limit=42).
The problem is that from is a reserved word in Python, which means that you cannot actually use it as a keyword argument name: you'll get a SyntaxError exception:
File "test.py", line 4
client.payments.list(from="tr_12345")
^
SyntaxError: invalid syntax
The client provides
list()
methods for listing all kinds of resources. Most of the listing endpoints support pagination by providing a querystring like?from=tr_12345&limit=42
. We allow passing querystring parameters using generic keywords arguments to thelist()
method (and all other API interfacing methods), f.i.;client.payments.list(from="tr_12345", limit=42)
.The problem is that
from
is a reserved word in Python, which means that you cannot actually use it as a keyword argument name: you'll get a SyntaxError exception:We need to find a proper solution for this.