Bug 10028 - Samba Python 3 support
Samba Python 3 support
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Python
unspecified
All All
: P5 normal
: ---
Assigned To: Noel Power
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-17 11:39 UTC by Bohuslav "Slavek" Kabrda
Modified: 2018-06-09 03:41 UTC (History)
5 users (show)

See Also:


Attachments
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?
Thanks!
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.
Comment 4 nanericwang 2018-06-09 01:56:30 UTC
Any update on supporting python3?
Comment 5 Andrew Bartlett 2018-06-09 03:41:51 UTC
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.