1. 30 Oct, 2001 5 commits
  2. 29 Oct, 2001 24 commits
  3. 28 Oct, 2001 3 commits
  4. 27 Oct, 2001 8 commits
    • Guido van Rossum's avatar
      86443216
    • Guido van Rossum's avatar
      Made SocketType and socket the same thing: a subclassable type whose · 384ca9c6
      Guido van Rossum authored
      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
    • Guido van Rossum's avatar
      SF patch #475657 (Dietmar Schwertberger) · bd67d6f3
      Guido van Rossum authored
      RISCOS/Makefile:
      include structseq and weakrefobject;
      changes to keep command line length below 2048
      
      RISCOS/Modules/riscosmodule.c:
      typos from the stat structseq patch
      
      Include/pyport.h:
      don't re-#define __attribute__(__x) on RISC OS as it is already defined in c library
      bd67d6f3
    • Tim Peters's avatar
      SF bug #475327: type() produces incorrect error msg · 3abca127
      Tim Peters authored
      object.h:  Added PyType_CheckExact macro.
      
      typeobject.c, type_new():
      
      + Use the new macro.
      + Assert that the arguments have the right types rather than do incomplete
        runtime checks "sometimes".
      + If this isn't the 1-argument flavor() of type, and there aren't 3 args
        total, produce a "types() takes 1 or 3 args" msg before
        PyArg_ParseTupleAndKeywords produces a "takes exactly 3" msg.
      3abca127
    • Tim Peters's avatar
      dictionary() constructor: · 4d85953f
      Tim Peters authored
      + Change keyword arg name from "x" to "items".  People passing a mapping
        object can stretch their imaginations <wink>.
      + Simplify the docstring text.
      4d85953f
    • Tim Peters's avatar
      vgetargskeywords() · c2f01120
      Tim Peters authored
      + Squash another potential buffer overrun.
      + Simplify the keyword-arg loop by decrementing the count of keywords
        remaining instead of incrementing Yet Another Variable; also break
        out early if the number of keyword args remaining hits 0.
      
      Since I hit the function's closing curly brace with this patch, that's
      enough of this for now <wink>.
      c2f01120
    • Tim Peters's avatar
      vgetargskeywords: Now that it's clear that nkwlist must equal max, and · b639d497
      Tim Peters authored
      we're ensuring that's true during the format parse, get rid of nkwlist.
      b639d497
    • Tim Peters's avatar