Python None Cannot Represent an Unloaded Field
· 4 min read
Python makes absence easy to express. A database NULL, a missing JSON key, an
empty relation, and an optional function result can all become None.
That convenience becomes dangerous for partially loaded entities. If a query
did not select task.name, returning None tells business code something the
runtime does not know.
TeaQL's generated Python E expressions keep Value, Null, and
NotLoaded separate. Loaded nulls evaluate to None; unselected fields raise
a structured TeaQLNotLoadedError.
