[Twisted-Python] need explanation in tutorial
James Y Knight
foom at fuhm.net
Fri Aug 13 14:13:04 EDT 2004
On Aug 13, 2004, at 11:08 AM, litnimax wrote:
> class FingerSetterProtocol(basic.LineReceiver):
> def connectionMade(self): self.lines = []
> def lineReceived(self, line): self.lines.append(line)
> def connectionLost(self, reason):
> self.factory.setUser(*self.lines[:2])
> # first line: user second line: status
>
> What is "*self.lines[:2]"?
This is a basic python question, not a twisted question.
http://docs.python.org/tut/node6.html#SECTION006740000000000000000
James
More information about the Twisted-Python
mailing list