[PATCH] Python3 compatible modules - credentials, param, _glue

Petr Viktorin pviktori at redhat.com
Thu Feb 9 14:19:04 UTC 2017


On 02/09/2017 02:20 AM, Andrew Bartlett wrote:
> On Tue, 2017-01-31 at 08:24 +1300, Andrew Bartlett wrote:
[...]
>
> I've started a thread to have us move to just using PyCapsule by
> requiring 2.7.  I think this is likely to get up, but we will know
> soon.  This will kill a number of birds with one stone, so can you re-
> work the patches to rely on PyCapsule?

Requiring 2.7 is two questions in one:
- the minimum version for Samba
- the minimum version for independent libraries like pytalloc

But thinking about this, I realized pytalloc can
- export pytalloc_CObject_FromTallocPtr for Python 2
- export pytalloc_PyCapsule_FromTallocPtr for Python 3 *and* 2.7

Then Samba could use only PyCapsule (if it doesn't need 2.6 
compatibility), while talloc maintains backwards compatibility.


-- 
Petr Viktorin




More information about the samba-technical mailing list