You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IReactorTCP.connectTCP claims that its host parameter should be a bytes.
However, this is inconsistent with usage elsewhere in Twisted, and furthermore the implementation in PosixReactorBase assumes otherwise. (It will work with bytes, but other documentation suggests it expects a str.)
Verdict from the mailing list: this should be treated as a simple bug in the interface definition, and fixed.
Any IReactorTCP implementation that strictly implemented the interface-as-written by only accepting bytes wouldn't work, so there isn't any compatibility hazard.
#!CommitTicketReference repository="" revision="ec7445d6361ce04424b3570a81263dc6760f15de"
Merge pull request #1664 from twisted/10251-connecttcp-host-type
Author: twm
Reviewer: adiroiban
Fixes: ticket:10251
Correct the IReactorTCP.connectTCP host parameter type annotation to match
real-world implementations as discussed on the mailing list.
IReactorTCP.connectTCP
claims that itshost
parameter should be abytes
.However, this is inconsistent with usage elsewhere in Twisted, and furthermore the implementation in
PosixReactorBase
assumes otherwise. (It will work withbytes
, but other documentation suggests it expects astr
.)Searchable metadata
The text was updated successfully, but these errors were encountered: