• Guido van Rossum's avatar
    Made SocketType and socket the same thing: a subclassable type whose · 384ca9c6
    Guido van Rossum yazdı
    constructor acts just like socket() before.  All three arguments have
    a sensible default now; socket() is equivalent to
    socket(AF_INET, SOCK_STREAM).
    
    One minor issue: the socket() function and the SocketType had
    different doc strings; socket.__doc__ gave the signature,
    SocketType.__doc__ gave the methods.  I've merged these for now, but
    maybe the list of methods is no longer necessary since it can easily
    be recovered through socket.__dict__.keys().  The problem with keeping
    it is that the total doc string is a bit long (34 lines -- it scrolls
    of a standard tty screen).
    
    Another general issue with the socket module is that it's a big mess.
    There's pages and pages of random platform #ifdefs, and the naming
    conventions are totally wrong: it uses Py prefixes and CapWords for
    static functions.  That's a cleanup for another day...  (Also I think
    the big starting comment that summarizes the API can go -- it's a
    repeat of the docstring.)
    384ca9c6
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...