The Samba-Bugzilla – Bug 10028
Samba Python 3 support
Last modified: 2019-02-20 00:24:47 UTC
Hi guys, have you considered supporting Python 3 with Samba? Any plans/work already started? Any way I could help?
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.
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.
Petr Viktorin's patches made their way to master so IIUC at least pyldb has been ported to python 3.
Any update on supporting python3?
Noel Power is currently spearheading the multi-engineer-year effort in this area.
Good progress has been made, but much more work is still needed.
It is not expected that this will be done for 4.9, perhaps it might be finished for the next release.
Samba 4.10 will ship with full python3 support.