News

Python 3.11 adds tomllib to address that problem. Note that tomllib doesn’t create or write TOML files; for that you need a third-party module like Tomli-W or TOML Kit.
The string "Hello there" is created and stored in memory as a Python object. The name x is created in the local namespace and pointed at that object, which increases its reference count by 1, to 1.