Repository navigation
docs(protocols): tighten the transport-layer docstrings and cut timed context (#719) - #1034
Conversation
|
Cross-review verdict on The Confirmed:
|
aad7b16 to
67602de
Compare
|
Cross-review verdict on The
Every value in all three tables starts as a The new Scope: since round 1 the commit changed only Unverified: no full Sphinx |
|
Retracting the GOOD TO GO on
Suggested wording: "…counts as different from the class it names, so re-registering a built-in entry warns until a packet on that port is first decoded, which resolves the entry to the class; after that it is silent."
|
67602de to
044de91
Compare
|
Cross-review verdict on
Fix: stop describing when the entry resolves. End the sentence the way |
… context (#719) - Drop issue/PR citations and "used to"/"until" history from the TCP, UDP and base-class notes and comments; keep the reasons the code is shaped as it is (Enum_Flags(0) vs cast, flags resolved before options, MPTCP option lengths, parse_ip_address, per-protocol registries). - Correct the Transport._decode_next_layer lookup description (the higher port is used when only it is registered) and the TCP NOP option title. - Docstrings and comments only; AST identical to main.
044de91 to
69eb8bf
Compare
|
Cross-review verdict on The The reviewer ran seven probes, each in a fresh process: register first, twice; decode first; a different class, then the original back; and a segment from port 80 to port 21. In every row the warning count matched whether the incumbent differed. "The guard this shares with Scope: the only change since round 3 is that deleted clause. The PR is one commit on |
make testpasses, and a test case covers the change (N/A: prose only;tests/protocols/transportandtests/projectpass)What is the purpose of your pull request?
docs— documentation onlyDescription
Transport-layer slice of the #719 prose sweep:
pcapkit/protocols/transport/(dccp.pyandrsvp.pyare empty,__init__.pyneeded nothing). Docstrings and comments only.Transportnotes; kept the rationale (Enum_Flags(0)vscast, flags resolved before options, MPTCP option lengths,parse_ip_address, separate per-protocol registries).Transport._decode_next_layer(higher port is used when only it is registered), the NOP option title, and "Transportowns no__proto__" (it inherits the base one; TCP/UDP define their own).-n: 19 warnings onmain, 18 here for these files, none new (oneProtocolBase.readref went away).AST guard (docstrings stripped, vs
origin/main):tcp.pysctp.pyudp.pytransport.pyPart of #719.