12 Jan
2021
12 Jan
'21
2:36 a.m.
On 12/01/21 2:46 pm, Larry Hastings wrote:
Using an 64-byte empty dict per object with no defined annotations seems so wasteful. And anything short of an empty dict, you'd have to guard against.
If __annotations__ were to return a read-only mapping object instead of a dict, the same empty object could be used for all annotationless objects. -- Greg