Commit c14c5e2
Matt Davis
[IRON] Document parent-constructor bypass in AccumFifoHandle / PacketFifoHandle
Address review issue 7: AccumFifoHandle and PacketFifoHandle deliberately
do not call super().__init__() because ObjectFifoHandle's constructor
requires an ObjectFifo with semantics (depth, dims_from_stream_per_cons,
_get_endpoint) that AccumFifo and PacketFifo do not have. They instead
stub the attributes ObjectFifoHandle exposes as properties directly.
Add an explicit class-docstring '.. note::' section in each documenting:
- which attributes are stubbed
- why super() is bypassed
- that all_of_endpoints (which traverses _object_fifo) is overridden
- that the proper long-term fix is a shared narrower base class
This is a documentation fix, not a behavioural change. The shared base
class refactor is intentionally out of scope for the initial primitive
landing; the bypass pattern is rare in upstream IRON code, and explicit
documentation keeps the next maintainer from being surprised.
(SparseFifoHandle and VariableRateFifoHandle inherit normally from
ObjectFifoHandle and do call super().__init__; only AccumFifoHandle
and PacketFifoHandle exhibit the bypass pattern.)1 parent 2594626 commit c14c5e2
2 files changed
Lines changed: 30 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
481 | 501 | | |
482 | 502 | | |
483 | 503 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
| 504 | + | |
489 | 505 | | |
490 | 506 | | |
491 | 507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
612 | 620 | | |
613 | 621 | | |
614 | 622 | | |
| |||
618 | 626 | | |
619 | 627 | | |
620 | 628 | | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
| 629 | + | |
625 | 630 | | |
626 | 631 | | |
627 | 632 | | |
| |||
0 commit comments