[Python-Dev] constant/enum type in stdlib

Glyph Lefkowitz glyph at twistedmatrix.com
Tue Nov 23 22:06:41 CET 2010


On Nov 23, 2010, at 10:37 AM, Ben.Cottrell at nominum.com wrote:

> I'd prefer not to think of the number of times I've made the following mistake:
> 
> s = socket.socket(socket.SOCK_DGRAM, socket.AF_INET)

If it's any consolation, it's fewer than the number of times I have :).

(More fun, actually, is where you pass a file descriptor to the wrong argument of 'fromfd'...)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20101123/319bcf09/attachment.html>


More information about the Python-Dev mailing list