Eli Bendersky added the comment:

[Thanks, Guido]

Attaching patch with SOCK_* constants converted as well. The module globals are 
currently walked twice, once to extract AF_* and once SOCK_*. This is not a 
real performance problem, but should we fold it into a single loop that 
collects two dicts? The code will be less pretty but more efficient.

Another issue is _intenum_converter. Ethan - do you think it belongs in the 
enum module as a helper function or something of the sort?

----------
Added file: http://bugs.python.org/file31521/socket-intenum-af-type.6.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18720>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to