Commit ee511ea
committed
(improvement) query, serializers: address PR review feedback
- Replace malloc/free with PyBytes_FromStringAndSize(NULL, ...) pattern in
vector fast-paths, eliminating extra buffer copy and malloc(0) edge case
- Change _check_int32_range to raise OverflowError instead of struct.error,
consistent with _check_float_range
- Remove unused imports (struct, malloc, free)
- Differentiate error messages in _raise_bind_serialize_error: 'invalid type'
for TypeError vs 'value out of range' for OverflowError/struct.error
- Replace unused loop variable with while loop in UNSET_VALUE fill
- Expand __getitem__ docstrings explaining performance rationale
- Fix copyright header in test_parameter_binding.py1 parent 941424e commit ee511ea
2 files changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
493 | 495 | | |
494 | 496 | | |
495 | 497 | | |
| |||
573 | 575 | | |
574 | 576 | | |
575 | 577 | | |
576 | | - | |
577 | | - | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
578 | 584 | | |
579 | 585 | | |
580 | 586 | | |
| |||
752 | 758 | | |
753 | 759 | | |
754 | 760 | | |
755 | | - | |
| 761 | + | |
756 | 762 | | |
757 | 763 | | |
758 | 764 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
330 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
331 | 332 | | |
332 | 333 | | |
333 | 334 | | |
| |||
0 commit comments