Bug 10028 - Samba Python 3 support
Samba Python 3 support
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Python
All All
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2013-07-17 11:39 UTC by Bohuslav "Slavek" Kabrda
Modified: 2016-01-18 15:52 UTC (History)
5 users (show)

See Also:

port pytalloc to python 3 (3.75 KB, patch)
2014-07-25 12:13 UTC, ttomecek
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bohuslav "Slavek" Kabrda 2013-07-17 11:39:45 UTC
Hi guys, have you considered supporting Python 3 with Samba? Any plans/work already started? Any way I could help?
Comment 1 Alexander Bokovoy 2013-07-18 15:54:48 UTC
Yes, we consider it. Please look at https://lists.samba.org/archive/samba-technical/2013-May/092648.html and onward for the discussion.

Any help reviewing our Python code for Python3/2 co-existence would be appreciated. You can attach patches here, if you want.

Majority of the code that needs real work is not Python code, though. We have auto-generated C code and auto-generated Python bindings to that code, which also includes Unicode string handling along with byte-level strings (blobs). These bindings have C source that is used as a template and that template needs to be converted.
Comment 2 ttomecek 2014-07-25 12:13:41 UTC
Created attachment 10152 [details]
port pytalloc to python 3

I've been working on porting pytalloc to python 3. I'm not sure what kind of coding style you prefer — I will gladly rewrite the patch with usage of macros if needed.
Also I haven't updated waf configuration.
Comment 3 Aurélien Aptel 2016-01-18 15:52:07 UTC
Petr Viktorin's patches made their way to master so IIUC at least pyldb has been ported to python 3.