summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* /F observes that we need an else: in connect()Jeremy Hylton2001-10-301-1/+2
|
* Don't override asplit_pat in Scanner_UH3. No reason to do so, and it brokeJack Jansen2001-10-301-1/+0
| | | | generating Waste.
* On the macintosh don't take a quick exit in find_module() for frozen ↵Jack Jansen2001-10-301-0/+8
| | | | submodule imports: the frozen import goes through a different mechanism.
* Promote file objects out of the "Other Objects" category, so they becomeFred Drake2001-10-301-172/+172
| | | | visible in the table of contents.
* Promote built-in functions to come before built-in types.Fred Drake2001-10-302-4/+2
|
* Whitespace normalization.Tim Peters2001-10-304-5/+5
|
* Mention the new file() builtin in the section on file objects.Tim Peters2001-10-301-3/+6
|
* To cover a recent checkin, added a test to ensure dir(None) == dir(Ellipsis).Tim Peters2001-10-301-0/+4
|
* Just changed some continued-line indentation to read better, due toTim Peters2001-10-301-3/+3
| | | | the earlier s/dictionary/dict/ change.
* Fix SF bug #456386: test_commands regression failure (Andrew Dalke)Guido van Rossum2001-10-301-1/+1
| | | | | | | | | test_commands does not work on IRIX It assumes the output of "ls /bin/ls" is a line that starts with a '-'. On IRIX that file is a symbolic link, so the first character is an l. This causes test_getstatus to fail.
* News and attribution for SF bug #473009.Guido van Rossum2001-10-302-0/+4
|
* Change the limit on the input size for b2a_base64 to what will fit inGuido van Rossum2001-10-301-1/+3
| | | | | | memory, rather than the standard's 57. This fixes SF bug #473009.
* Add values to tp_getattro and tp_flags so that dir(Ellipsis) willGuido van Rossum2001-10-301-14/+20
| | | | return the same as dir(None).
* Minimal test for __del__ hook.Guido van Rossum2001-10-301-0/+12
|
* PySocketSock_connect_ex(): On Windows, return the correct Windows exitTim Peters2001-10-301-1/+6
| | | | | code. The patch is from Jeremy, and allows test_asynchat to run again. Bugfix candidate.
* directory chooser (requires a recent version of Tk)Fredrik Lundh2001-10-291-0/+52
|
* Rename "dictionary" (type and constructor) to "dict".Tim Peters2001-10-2910-63/+66
|
* Add __del__ callbacks. They are too useful to leave out.Guido van Rossum2001-10-292-0/+77
| | | | | | | | | | | | | | | | 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.
* SF bug #476138: tempfile behavior across platformsTim Peters2001-10-292-4/+16
| | | | | Ensure that a tempfile can be closed any number of times without error. This wasn't true on Windows.
* Revise the PDF support in the LaTeX style sheet. This still isn't quiteFred Drake2001-10-291-24/+47
| | | | | right, but the tests for whether we are generating PDF are a bit more readable, and some unnecessary indirection has been removed.
* Update to reflect changes to the low-level logreader: share the infoFred Drake2001-10-291-10/+19
| | | | | | 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.
* Add a test for the insertion of user-provided ADD_INFO records.Fred Drake2001-10-291-2/+12
|
* Allow user code to call the addinfo() method on the profiler object.Fred Drake2001-10-291-0/+3
|
* Make the low-level log-reader object export a dictionary mapping keysFred Drake2001-10-291-45/+163
| | | | | | | | | | | | | | 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.
* dictionary -> dictAndrew M. Kuchling2001-10-291-1/+1
|
* Fix two typos noted by Jens QuadeAndrew M. Kuchling2001-10-291-5/+12
| | | | Bump version number
* Add additional information on exceptions from time.mktime() and related toFred Drake2001-10-291-2/+7
| | | | | improper time tuples passed to various functions. Based on comments from Andreas Jung.
* More refcount information.Fred Drake2001-10-291-0/+40
|
* Ignore all *.tex files in the typesetting output directories since there areFred Drake2001-10-292-2/+2
| | | | a bunch of them now.
* Make sure we generate versions of each file in the Python/C API manual withFred Drake2001-10-292-3/+52
| | | | | reference-count annotations; this is needed for the typeset forms of the manuals.
* Use connect_ex() instead of connect().Jeremy Hylton2001-10-291-12/+9
| | | | Removes old XXX comment and possible source of long-delays.
* Fix for SF bug 453099 -- select not defensiveJeremy Hylton2001-10-291-5/+16
| | | | | | | | | | 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.
* Fix some markup errors noted by MHAndrew M. Kuchling2001-10-291-5/+5
| | | | Use attribute assignment to illustrate __slots__ raising an error
* When overriding __str__ or __repr__, set the tp_print slot to NULL.Guido van Rossum2001-10-291-0/+2
|
* more loading from cfg filesSteven M. Gava2001-10-291-17/+61
|
* more of config dialog reading from filesSteven M. Gava2001-10-294-38/+82
|
* Use sendall() in the stream test instead of send().Guido van Rossum2001-10-291-1/+1
|
* Test sendall().Guido van Rossum2001-10-291-1/+1
|
* Add 'sendall' to list of socket methods.Guido van Rossum2001-10-291-1/+1
|
* added finditer sanity checkFredrik Lundh2001-10-282-3/+13
|
* Oops. In the tp_name field, the name should be "_socket.socket", notGuido van Rossum2001-10-281-2/+2
| | | | | | "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).
* PyObject_CallFunctionObArgs() ---> PyObject_CallFunctionObjArgs()Fred Drake2001-10-284-23/+23
| | | | PyObject_CallMethodObArgs() ---> PyObject_CallMethodObjArgs()
* News about the socket type and the HP-UX port.Guido van Rossum2001-10-271-1/+8
|
* Made SocketType and socket the same thing: a subclassable type whoseGuido van Rossum2001-10-271-119/+167
| | | | | | | | | | | | | | | | | | | | | 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.)
* SF patch #475657 (Dietmar Schwertberger)Guido van Rossum2001-10-273-9/+14
| | | | | | | | | | | | 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
* SF bug #475327: type() produces incorrect error msgTim Peters2001-10-272-6/+22
| | | | | | | | | | | | | 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.
* dictionary() constructor:Tim Peters2001-10-272-11/+9
| | | | | | + Change keyword arg name from "x" to "items". People passing a mapping object can stretch their imaginations <wink>. + Simplify the docstring text.
* vgetargskeywords()Tim Peters2001-10-271-16/+17
| | | | | | | | | | + 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>.
* vgetargskeywords: Now that it's clear that nkwlist must equal max, andTim Peters2001-10-271-4/+3
| | | | we're ensuring that's true during the format parse, get rid of nkwlist.
* vgetargskeywords: Prevent another potential sprintf buffer overrun.Tim Peters2001-10-271-2/+2
|