[Twisted-Python] need explanation in tutorial

litnimax litnimax at fromru.com
Fri Aug 13 14:04:17 MDT 2004


Thanks much. I will try to ask only twisted related questions..

On Fri, 13 Aug 2004 14:13:04 -0400, James Y Knight <foom at fuhm.net> wrote:

> 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
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/




More information about the Twisted-Python mailing list