Ticket #5131 defect closed fixed
t.i.p.BaseProtocol mentions unknow 'dataReceived'
| Reported by: | multani | Owned by: | exarkun |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | documentation |
| Cc: | jesstess | Branch: |
branches/baseprotocol-docstring-5131
(diff, github, buildbot, log) |
| Author: | exarkun | Launchpad Bug: |
Description
Reading the API documentation of t.i.p.BaseProtocol, it says that:
... My API is quite simple. Implement dataReceived(data) ...
But dataReceived() is actually implemented by the subclass in t.i.p.Protocol.
If you read the documentation of BaseProtocol only, there's no way (AFAIK) that dataReceived() implemented by your subclass is going to be called. So I think andthe docstring of BaseProtocol should be updated not to mention dataReceived(). Otherwise, it just confuses reader.
Change History
Note: See
TracTickets for help on using
tickets.
