[Twisted-Python] tcp.GetHost in twisted.web.server
Glyph Lefkowitz
glyph at twistedmatrix.com
Fri Sep 7 15:18:06 MDT 2001
On Fri, Sep 07, 2001 at 03:46:50PM +0200, Maj-Britt Bruheim wrote:
> Just checking before I commit :)
>
> Why do this:
>
> _host = socket.gethostbyaddr(socket.gethostname())[0]
> ...
> def getHost(self):
> return self._host
>
> when this works?
>
> def getHost(self):
> return self.transport.GetHost()
Can't recall any reason for it at the moment except for the fact that your
capitalization is wrong and those methods do subtly different things... :-)
> This at least doesn't make the crash go bad in win98
What crash?
--
______ __ __ _____ _ _
| ____ | \_/ |_____] |_____|
|_____| |_____ | | | |
@ t w i s t e d m a t r i x . c o m
http://twistedmatrix.com/users/glyph
More information about the Twisted-Python
mailing list