-
Notifications
You must be signed in to change notification settings - Fork 108
Support Python 3.13 #215
Description
Similar to #191, I already have code that changes the C parts so far and is tested to work in both the stable build of 3.13 and the current cpython source tree version of 3.14.
The code so far: AraHaan@30fc2fa
Also note that the memimport.py and the zipextimport.py files from https://github.com/SeaHOH/memimport/ might end up in the resulting WIP cp313 branch on my fork.
Also note: Python 3.11 is the last version of python that single file will be supported, so any code for single file loading of the python core dll itself will need to be ifdef'd out for Python 3.13+ and the command line options in py2exe when requesting for Python 3.13+ exes resulting in a hard error from py2exe. This is due to it being impossible to retain single file exe support as any and all attempts to keep it results in instant crashing/c extensions not working at all. The crashing is when using the undocumented and non-exported ntdll.dll symbol known as LdrpHandleTlsData due to the fact that calling it seems to only work when building c++ code. Also, when combined with the fact that it is undocumented and not exported means that the address to the function can change between revisions of Windows or even worse the function can be removed entirely or missing making it not a good idea to use it.