Repository navigation
Correct error messages for out-of-range Meta length bounds - #1172
Conversation
Merging this PR will degrade performance by 10.31%
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
|
The CodSpeed result for In a local pyperf comparison of the same workload on macOS, the difference between main and the patched version was not statistically significant. This does not establish the cause of the Linux simulation result. I am leaving the PR open pending resolution of the CodSpeed check. |
2dadb61 to
f3d3ba3
Compare
Calling
Meta(min_length=10**400)results in aValueErrorwith the incorrect message "must be >= 0" for a positive integer. With this fix, out-of-rangemin_lengthandmax_lengthvalues result in an error identifying the range issue. Accepted values and diagnostics for representable negative values are unchanged.This is the length-bound fix discussed in #1122, separate from the numeric constraints work in #1006.