[issue20519] Replace uuid ctypes usage with an extension module.

Gustavo J. A. M. Carneiro report at bugs.python.org
Wed Oct 28 09:36:07 EDT 2015


Gustavo J. A. M. Carneiro added the comment:

New patch that:

1. adds assert(sizeof(uuid_t) == 16); to the extension module;

2. fixes the code path when ctypes has to be used instead of the extension module (needed a bit more refactoring, apologies if it makes the diff harder to read);

3. Adjusts the uuid module tests to account for the possibility of ctypes not being imported.

----------
Added file: http://bugs.python.org/file40874/uuid.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20519>
_______________________________________


More information about the Python-bugs-list mailing list