Avatar for the python-attrs user
python-attrs
attrs
BlogDocsChangelog

Define __getattribute__() instead of __getattr__() on slotted classes with cached properties

#1291Closed
Comparing
dlax:issue-1288
(
1d845e3
) with
main
(
edcaf04
)
CodSpeed Performance Gauge
-1%
Untouched
12

Benchmarks

Passed

test_fields[C2]
tests/test_functional.py::TestFunctional::test_fields[C2]
CodSpeed Performance Gauge
0%
152.9 µs152.7 µs
test_fields[C2Slots]
tests/test_functional.py::TestFunctional::test_fields[C2Slots]
CodSpeed Performance Gauge
0%
141.4 µs141.3 µs
test_asdict[C1]
tests/test_functional.py::TestFunctional::test_asdict[C1]
CodSpeed Performance Gauge
0%
124.3 µs124.3 µs
test_unsafe_hash[True]
tests/test_functional.py::TestFunctional::test_unsafe_hash[True]
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_asdict[C1Slots]
tests/test_functional.py::TestFunctional::test_asdict[C1Slots]
CodSpeed Performance Gauge
0%
111.6 µs111.7 µs
test_auto_exc[True-True]
tests/test_functional.py::TestFunctional::test_auto_exc[True-True]
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
test_default_decorator
tests/test_functional.py::TestFunctional::test_default_decorator
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_unsafe_hash[False]
tests/test_functional.py::TestFunctional::test_unsafe_hash[False]
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_auto_exc[False-True]
tests/test_functional.py::TestFunctional::test_auto_exc[False-True]
CodSpeed Performance Gauge
0%
3.5 ms3.6 ms
test_auto_exc[False-False]
tests/test_functional.py::TestFunctional::test_auto_exc[False-False]
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_auto_exc[True-False]
tests/test_functional.py::TestFunctional::test_auto_exc[True-False]
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
test_programmatic
tests/test_functional.py::TestFunctional::test_programmatic
CodSpeed Performance Gauge
-5%
16.3 ms17.1 ms

Commits

Click on a commit to change the comparison range
Base
main
edcaf04
-0.5%
Merge branch 'main' into issue-1288
1d845e3
1 year ago
by hynek
© 2025 CodSpeed Technology
Home Terms Privacy Docs