[Python-checkins] r43126 - in python/trunk: Doc/lib/libsocket.tex Lib/socket.py Lib/test/test_socket.py Misc/NEWS Modules/socketmodule.c

Georg Brandl g.brandl at gmx.net
Mon Mar 20 23:57:58 CET 2006


Guido van Rossum wrote:
> Why are these accessor methods? A more Pythonic API would make them
> read-only attributes, like the various attributes of file objects.

I had them as properties in a first version of the patch, but MvL said

"""
I also wonder what style of API should be used. All other
state access goes through get-methods(), which all start
with get except for fileno(). Adding properties would
introduce another API style, so -1.
"""

Georg



More information about the Python-checkins mailing list