- 29 Eki, 2001 23 kayıt (commit)
-
-
Tim Peters yazdı
-
Guido van Rossum yazdı
XXX Remaining problems: - The GC module doesn't know about these; I think it has its reasons to disallow calling __del__, but for now, __del__ on new-style objects is called when the GC module discards an object, for better or for worse. - The code to call a __del__ handler is really ridiculously complicated, due to all the different debug #ifdefs. I've copied this from the similar code in classobject.c, so I'm pretty sure I did it right, but it's not pretty. :-( - No tests yet.
-
Tim Peters yazdı
Ensure that a tempfile can be closed any number of times without error. This wasn't true on Windows.
-
Fred Drake yazdı
right, but the tests for whether we are generating PDF are a bit more readable, and some unnecessary indirection has been removed.
-
Fred Drake yazdı
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 yazdı
-
Fred Drake yazdı
-
Fred Drake yazdı
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 yazdı
-
Andrew M. Kuchling yazdı
Bump version number
-
Fred Drake yazdı
improper time tuples passed to various functions. Based on comments from Andreas Jung.
-
Fred Drake yazdı
-
Fred Drake yazdı
a bunch of them now.
-
Fred Drake yazdı
reference-count annotations; this is needed for the typeset forms of the manuals.
-
Jeremy Hylton yazdı
Removes old XXX comment and possible source of long-delays.
-
Jeremy Hylton yazdı
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 yazdı
Use attribute assignment to illustrate __slots__ raising an error
-
Guido van Rossum yazdı
-
Steven M. Gava yazdı
-
Steven M. Gava yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
- 28 Eki, 2001 3 kayıt (commit)
-
-
Fredrik Lundh yazdı
-
Guido van Rossum yazdı
"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 yazdı
PyObject_CallMethodObArgs() ---> PyObject_CallMethodObjArgs()
-
- 27 Eki, 2001 14 kayıt (commit)
-
-
Guido van Rossum yazdı
-
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.)
-
Guido van Rossum yazdı
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 yazdı
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 yazdı
+ Change keyword arg name from "x" to "items". People passing a mapping object can stretch their imaginations <wink>. + Simplify the docstring text.
-
Tim Peters yazdı
+ 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 yazdı
we're ensuring that's true during the format parse, get rid of nkwlist.
-
Tim Peters yazdı
-
Tim Peters yazdı
the format, instead of waiting until after we can overindex it by mistake.
-
Fred Drake yazdı
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 yazdı
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 yazdı
dict API everywhere on it instead of sometimes using the slower mapping API.
-
Tim Peters yazdı
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 yazdı
+ 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.
-