Re: [PATCH] Missing Binding for svn_checksum_t
From: Daniel Shahaf <danielsh_at_elego.de>
Date: Fri, 7 Dec 2012 11:02:29 +0200
> Index: svn_checksum_t.swg
If the input is a 'bytes' instance, where do you stow the 'kind' member?
> + PyErr_SetString(PyExc_TypeError, "Not a valid Bit string");
This line:
- Passes a 'bytes' object to a constructor of 'bytes' object;
- Passes a counted-length string to an API that expects a C string;
- Passes a PyObject * to a Subversion API function taking an svn_checksum_t *;
- Uses an svn_error_t * as the result of the typemap
Basically, you managed to condense four type mismatches into two
I won't blame you for not noticing that your patch generated new
> +}
Cheers
Daniel
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.