(An Unofficial) Python Reference Wiki

"clearly marked experimental"

NameError

Raised when a local or global name is not found. This applies only to unqualified names. The associated value is an error message that includes the name that could not be found.