18:31:46) PeterCai: why do we need Interface in twisted? It doesn't enforce a class to implement any method as in other languages. For me, it seems only works when use adapter pattern.
(18:32:04) idnar: it also acts as documentation
(18:32:47) habnabit: The adaptation part is neat too.
(18:33:24) idnar: and there's zope.interface.verify
(18:33:40) idnar: (although you should probably only use that in unit tests and the like)
(18:34:01) buster` [n=buster@lostmind.org] 进入了聊天室。
(18:34:33) wiqd 离开了聊天室(quit: Remote closed the connection)。
(18:34:41) wiqd [n=wiqd@osiris.codelounge.org] 进入了聊天室。
(18:35:13) spiv: ablmf: twisted does use adapters occasionally.
(18:35:32) spiv: ablmf: but mainly it serves as extremely clear documentation about the contract an object promises to meet
(18:36:20) spiv: ablmf: http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.html is extremely helpful and clear compared to what you'd get by looking at the generated API docs of the implementations.
(18:36:50) pr100 [n=user@cpc2-cmbg4-0-0-cust688.cmbg.cable.ntl.com] 进入了聊天室。
--
look to the things around you,the immediate world around you, if you are alive,it will mean something to you ——Paul Strand
