search for: pyfoo_bar

Displaying 2 results from an estimated 2 matches for "pyfoo_bar".

Did you mean: foo_bar
2019 Jun 28
1
Re: [PATCH libnbd v3] python: Raise a custom exception containing error string and errno.
...but there may be a few issues still: > > - Still no error checking in raise_exception(). We're on an error > path already here so it's hard to do anything useful, although > perhaps we should not segfault. Yeah, avoiding the segfault is still worthwhile - but our lack of PyFOO_BAR() error checking is more pervasive than just in raise_exception(), so a patch to audit all of our generated code will pick that up along with the rest. > > - The .errno attribute returns a (Python module) errno value, not a > number, so the number is effectively lost, should that reall...
2019 Jun 28
2
Re: [PATCH libnbd v3] python: Raise a custom exception containing error string and errno.
On 6/28/19 1:27 PM, Richard W.M. Jones wrote: > Previously errors caused a RuntimeException to be raised. This commit > defines a custom exception (nbd.Error) which has two parameters, the > required error string, and the optional errno (which may be 0 if > unavailable). > > For example: > > $ ./run nbdsh -c 'h.pread(0, 0)' > Traceback (most recent call last):