[issue11063] Rework uuid module: lazy initialization and add a new C extension

Ned Deily report at bugs.python.org
Mon Oct 2 13:12:09 EDT 2017


Ned Deily <nad at python.org> added the comment:

I agree with Barry's comment on PR 3855: "I'd rather see a configure check for the existence of uuid_generate_time_safe() rather than hard coding it to platforms !APPLE for two reasons. 1) If macOS ever adds this API in some future release, this ifndef will be incorrect, and 2) if some other platform comes along that doesn't have this API, it will still use the incorrect function."  It's exactly for situations like this that autoconf tests exist; we should not be hardwiring assumptions about the lack of particular platform APIs.

----------
nosy: +ned.deily

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


More information about the Python-bugs-list mailing list