]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add comment to subtle dataclass code (gh-96133)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Tue, 4 Oct 2022 00:30:04 +0000 (17:30 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Oct 2022 00:30:04 +0000 (17:30 -0700)
commit72b5a55bc80676d57e492520d39aaf3fb6f186df
treec95d12a8cd8b5883bcfedb6e14c9999303bb98cd
parent9e8b86de4e7a65b6fc6389caf4fa506ebcf538f6
Add comment to subtle dataclass code (gh-96133)

In the PR that made this change, 1st1 left a "note to self: add a
comment explaining this". This comment was never added.
https://github.com/python/cpython/pull/9518/files#r280608117

I was reading this code and it wasn't obvious to me why we weren't
exec-ing directly into locals. So I got to learn something new :-)
https://docs.python.org/3/reference/executionmodel.html#interaction-with-dynamic-features
Lib/dataclasses.py