summaryrefslogtreecommitdiffstats
path: root/Python/pytime.c
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2023-05-30 16:35:30 (GMT)
committerGitHub <noreply@github.com>2023-05-30 16:35:30 (GMT)
commit18cfc1eea569f0ce72ad403840c0e6cc5f81e1c2 (patch)
tree6c22d1e19cd837879770365203b29e1c8a63ed76 /Python/pytime.c
parentc8c1e73d95d5dcd7a2c8d7c10cfafc3fe5a9377e (diff)
downloadcpython-18cfc1eea569f0ce72ad403840c0e6cc5f81e1c2.zip
cpython-18cfc1eea569f0ce72ad403840c0e6cc5f81e1c2.tar.gz
cpython-18cfc1eea569f0ce72ad403840c0e6cc5f81e1c2.tar.bz2
Small speedup for dataclass __eq__ and __repr__ (#104904)
Faster __repr__ with str.__add__ moved inside the f-string. For __eq__ comp;are field by field instead of building temporary tuples. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to 'Python/pytime.c')
0 files changed, 0 insertions, 0 deletions