[issue40501] Deprecate and remove ctypes usage in uuid

Steve Dower report at bugs.python.org
Mon May 4 12:42:33 EDT 2020


Steve Dower <steve.dower at python.org> added the comment:

There are three scenarios where ctypes is used in this module:

* get libuuid.uuid_generate_time_safe and uuid_generate_time (if _uuid was not compiled)
* get rpcrt4.UuidCreateSequential (on Windows, depending on how the libuuid lookup failed)
* GetSystemDirectory (on Windows, safe to replace with alternative approach)

I'll happily move the UuidCreateSequential call into _uuid and add it to the Windows build, but it's not clear whether the libuuid lookup is important or not. If anyone knows of scenarios where you can't compile against libuuid but can load it with ctypes, would be great to hear about it!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40501>
_______________________________________


More information about the Python-bugs-list mailing list