[Twisted-Python] Question about pbquote example

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Aug 14 02:30:02 EDT 2002

Hi, Steve!

On Tue, 13 Aug 2002 16:45:37 -0400, Steve Waterbury <waterbug at beeblebrox.gsfc.nasa.gov> wrote:
> First, thanks for extending the TwistedQuotes example with pbquote.py 
> and quotetap2.py -- very helpful!  

I'm glad you thought so.  I found the pb doc I wrote to be very raw -- don't
hesitate to suggest improvements :).

> Question: in pbquote.py, the QuoteReader's method is named
> perspective_nextQuote(), which returns the result of the quoter's getQuote()
> ... so I'm guessing you named the perspective method that way (instead of
> perspective_getQuote(), e.g.) to emphasize that the result one perspective
> gets from a service is not necessarily the same as the result another
> perspective would get, since it could be affected by the perspective's
> identity, states, etc. -- independently of the fact that, in this particular
> case, the results are random anyway (a somewhat impertinent artifact of the
> quoter example ;^)?

I'm not sure what the question is here...?  I think you're asking "did you name
the perspective method that way to emphasize...", so: Yes and no :-).  I named
it that way for two reasons; one, to emphasize the fact you noticed, but more
importantly to show the difference between the remote method and the local
method: it may have created confusion to do 'foo.callRemote("getQuote")'
because then the name of the method could either be referring to
perspective_getQuote or getQuote itself.  Maybe I should have called it

Thanks for your feedback.

 |    <`'>    |  Glyph Lefkowitz: Traveling Sorcerer   |
 |   < _/ >   |  Lead Developer,  the Twisted project  |
 |  < ___/ >  |      http://www.twistedmatrix.com      |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20020814/f686d5ad/attachment.pgp 

More information about the Twisted-Python mailing list