Jake VanderPlas 5/26/2017

Exposing Python 3.6's Private Dict Version

Read Original

This 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.

Exposing Python 3.6's Private Dict Version

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week