Re: Idiom for partial failures

2020-02-22 Thread Ethan Furman
On 02/21/2020 02:51 PM, Rob Gaddi wrote: On 2/21/20 9:18 AM, David Wihl wrote: Yes, the API has to support partial failures across all six supported languages. Not all operations need to be atomic and there is considerable efficiency in having multiple operations sent in a single request. Than

Re: Idiom for partial failures

2020-02-21 Thread Rob Gaddi
On 2/21/20 9:18 AM, David Wihl wrote: Yes, the API has to support partial failures across all six supported languages. Not all operations need to be atomic and there is considerable efficiency in having multiple operations sent in a single request. Thanks, -David On Thu, Feb 20, 2020 at 6:07 PM

Re: Idiom for partial failures

2020-02-21 Thread David Wihl
Yes, the API has to support partial failures across all six supported languages. Not all operations need to be atomic and there is considerable efficiency in having multiple operations sent in a single request. Thanks, -David On Thu, Feb 20, 2020 at 6:07 PM Rob Gaddi wrote: > On 2/20/20 9:30 AM,

Re: Idiom for partial failures

2020-02-20 Thread DL Neil via Python-list
On 21/02/20 10:05 AM, Stefan Ram wrote: David Wihl writes: I believe that it would be more idiomatic in Python (and other languages lik= e Ruby) to throw an exception when one of these partial errors occur. I wonder whether the term "idiomatic" is too heavily burdened here. Python o

Re: Idiom for partial failures

2020-02-20 Thread Richard Damon
On 2/20/20 12:30 PM, David Wihl wrote:  (first post) I'm working on the Python client library [0]for the Google Ads API [1]. In some cases, we can start a request with a partial failure [2] flag = True. This means that the request may contain say 1000 operations. If any of the operations fai

Re: Idiom for partial failures

2020-02-20 Thread Tim Chase
On 2020-02-20 13:30, David Wihl wrote: > I believe that it would be more idiomatic in Python (and other > languages like Ruby) to throw an exception when one of these > partial errors occur. That way there would be the same control flow > if a major or minor error occurred. There are a variety of

Re: Idiom for partial failures

2020-02-20 Thread Rob Gaddi
On 2/20/20 9:30 AM, David Wihl wrote:  (first post) I'm working on the Python client library [0]for the Google Ads API [1]. In some cases, we can start a request with a partial failure [2] flag = True. This means that the request may contain say 1000 operations. If any of the operations fail

Re: Idiom for partial failures

2020-02-20 Thread Ethan Furman
On 02/20/2020 09:30 AM, David Wihl wrote: I'm working on the Python client library for the Google Ads API. In some cases, we can start a request with a partial failure flag = True. This means that the request may contain say 1000 operations. If any of the operations fail, the request will ret

Idiom for partial failures

2020-02-20 Thread David Wihl
 (first post) I'm working on the Python client library [0]for the Google Ads API [1]. In some cases, we can start a request with a partial failure [2] flag = True. This means that the request may contain say 1000 operations. If any of the operations fail, the request will return with a success