Class variable inheritance

2009-09-07 Thread Henry 'Pi' James
I've just found out that a subclass shares the class variables of its superclass until it's instantiated for the first time, but not any more afterwards: Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more inf

asyncore's lack of sendto(), recvfrom()

2009-07-11 Thread Henry 'Pi' James
Is there any good reason why sendto() and recvfrom() aren't wrapped by asyncore? Obviously, recvfrom() cannot be replaced by recv(), but even sendto() cannot be replace by connect() and send(), either: I'm writing a traceroute module, and I found out that under the current firewall configuration o

Renaming __getattribute__ (PEP?)

2004-12-12 Thread Henry 'Pi' James
I'm pretty sure this must not be a new idea, but it seems no one else has voiced their agitation about the name "__getattribute__" so far. Its closeness to "__getattr__" is only one thing that irritates tons of people, as is apparent through the endless repeating question about the difference betwe