Exposing Python 3.6's Private Dict Version
Read OriginalThis article details a method to access the private dictionary version number introduced in Python 3.6 for CPython optimization. Inspired by PyCon talks, it explains how to use the ctypes module to define structures that mirror CPython's internal PyDictObject, allowing programmers to inspect the otherwise hidden 'ma_version_tag' field.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser