- 29 Oct, 2001 21 commits
-
-
Tim Peters authored
Ensure that a tempfile can be closed any number of times without error. This wasn't true on Windows.
-
Fred Drake authored
right, but the tests for whether we are generating PDF are a bit more readable, and some unnecessary indirection has been removed.
-
Fred Drake authored
dictionary instead of building a new one, and provide an overridable method to allow subclasses to catch ADD_INFO records that are not part of the initial block of ADD_INFO records created by the profiler itself.
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
to lists of values, giving the contents of all the ADD_INFO records seen so far. This is initialized agressively when the log file is opened, so that whoever is looking at the log reader can always see the initial data loaded into the data stream. ADD_INFO events later in the log file continue to be reported to the application layer as before. Add a new method, addinfo(), to the profiler. This can be used to insert additional ADD_INFO records into the profiler log. Fix the tp_flags and tp_name slots on the type objects.
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
Bump version number
-
Fred Drake authored
improper time tuples passed to various functions. Based on comments from Andreas Jung.
-
Fred Drake authored
-
Fred Drake authored
a bunch of them now.
-
Fred Drake authored
reference-count annotations; this is needed for the typeset forms of the manuals.
-
Jeremy Hylton authored
Removes old XXX comment and possible source of long-delays.
-
Jeremy Hylton authored
And SF patch 473223 -- infinite getattr loop Wrap select() and poll() calls with try/except for EINTR. If EINTR is raised, treat as a response where no fd is ready. In dispatcher constructor, make sure self.socket is always initialized.
-
Andrew M. Kuchling authored
Use attribute assignment to illustrate __slots__ raising an error
-
Guido van Rossum authored
-
Steven M. Gava authored
-
Steven M. Gava authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
- 28 Oct, 2001 3 commits
-
-
Fredrik Lundh authored
-
Guido van Rossum authored
"socket.socket" -- on Windows, "socket.socket" is the wrapper class. Also added the module name to the SSL type (which is not a new-style class -- I don't want to mess with it yet).
-
Fred Drake authored
PyObject_CallMethodObArgs() ---> PyObject_CallMethodObjArgs()
-
- 27 Oct, 2001 16 commits
-
-
Guido van Rossum authored
-
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.)
-
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
-
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.
-
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.
-
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>.
-
Tim Peters authored
we're ensuring that's true during the format parse, get rid of nkwlist.
-
Tim Peters authored
-
Tim Peters authored
the format, instead of waiting until after we can overindex it by mistake.
-
Fred Drake authored
the va_list until we are sure we have a format string and need to use it; this avoid premature initialization and having to finalize it several different places because of error returns.
-
Tim Peters authored
this routine will report an error now when it didn't before, but, if so, it's a legitimate error that should never have been suppressed.
-
Tim Peters authored
dict API everywhere on it instead of sometimes using the slower mapping API.
-
Tim Peters authored
The "need" for this was probably removed by an earlier patch that stopped the loop right before it from passing NULL to a dict lookup routine. I still haven't convinced myself that the next loop is correct, so am leaving the next mysterious PyErr_Clear() call in for now.
-
Tim Peters authored
+ Generally test nkeywords against 0 instead of keywords against NULL (saves a little work if an empty keywords dict is passed, and is conceptually more on-target regardless). + When a call erroneously specifies a keyword argument both by position and by keyword name: - It was easy to provoke this routine into an internal buffer overrun by using a long argument name. Now uses PyErr_format instead (which computes a safe buffer size). - Improved the error msg.
-
Tim Peters authored
+ Got rid of now-redundant dict typecheck. + Renamed nkwds to nkwlist. Now all the "counting" vrbls have names related to the things they're counting in an obvious way.
-
Tim Peters authored
+ Renamed argslen to nargs. + Renamed kwlen to nkeywords. This one was especially confusing because kwlen wasn't the length of the kwlist argument, but of the keywords argument.
-