Barry Warsaw [Wed, 27 Jan 1999 23:13:59 +0000 (23:13 +0000)]
builtin_complex(): Nailed memory leak. This one's in the instance
test for classes with a __complex__() method. The attribute is pulled
out of the instance with PyObject_GetAttr() but this transfers
ownership and the function object was never DECREF'd.
Guido van Rossum [Wed, 27 Jan 1999 22:43:55 +0000 (22:43 +0000)]
Get rid of do_clear_break / do_clb command -- it is redundant.
(It was left in accidentally after a long and arduous 3-way patch session.)
Barry Warsaw [Wed, 27 Jan 1999 21:41:08 +0000 (21:41 +0000)]
pcre_exec(): Andrew Kuchling's patch for pcre memory leak.
Fred Drake [Wed, 27 Jan 1999 18:50:21 +0000 (18:50 +0000)]
Add the info "dir" fragment to the info tarball.
Fred Drake [Wed, 27 Jan 1999 18:49:44 +0000 (18:49 +0000)]
Fragment of an info "dir" file for the Python documentation.
Fred Drake [Wed, 27 Jan 1999 18:40:36 +0000 (18:40 +0000)]
Simplify slightly.
Fred Drake [Wed, 27 Jan 1999 18:30:16 +0000 (18:30 +0000)]
Don't build info for the Macintosh module reference by default; it
doesn't do well.
Barry Warsaw [Wed, 27 Jan 1999 18:04:05 +0000 (18:04 +0000)]
initerrno(): Nailed a not-so-tiny memory leak. The de dictionary is
put into the module dict, but is never DECREF'd in this function, so
it and all its contents leak.
Barry Warsaw [Wed, 27 Jan 1999 17:54:20 +0000 (17:54 +0000)]
PyImport_ReloadModule(): Nailed a small memory leak. In the
else-clause of the subname test, the parentname object was never
DECREF'd.
Guido van Rossum [Wed, 27 Jan 1999 17:53:11 +0000 (17:53 +0000)]
Patches by William Lewis for Nextstep descendants.
Barry Warsaw [Wed, 27 Jan 1999 17:48:27 +0000 (17:48 +0000)]
PyLong_FromString(): Nailed a small memory leak. In the str==start
test, we forgot that z is still pointing to a real live object.
DECREF() it before returning.
Fred Drake [Wed, 27 Jan 1999 17:37:36 +0000 (17:37 +0000)]
\py@linkToName: New macro to consolidate support for most internal
hyperlinking in the PDF version. This also allows many of the
macros that do this stuff to be a good bit more readable.
Takes the target name and link content as parameters.
Use \py@linkToName for all internal links.
Fred Drake [Wed, 27 Jan 1999 17:21:09 +0000 (17:21 +0000)]
Added the files for the repr and ConfigParser modules.
Fred Drake [Wed, 27 Jan 1999 17:20:33 +0000 (17:20 +0000)]
Document the repr module. This removes the entire "Code objects and
files, debugger etc." section from "Undocumented Modules"!
Barry Warsaw [Wed, 27 Jan 1999 16:39:40 +0000 (16:39 +0000)]
err_input(): Nailed a small memory leak. If the error is E_INTR, the
v temporary variable was never decref'd. Test this by starting up the
interpreter, hitting C-c, then immediately exiting.
Same potential leak can occur if error is E_NOMEM, since the return is
done in the case block. Added Py_XDECREF(v); to both blocks, just
before the return.
Barry Warsaw [Wed, 27 Jan 1999 16:33:19 +0000 (16:33 +0000)]
_PySys_Init(): Nailed small memory leak. The stringobject created for
sys.version was missing a Py_XDECREF().
Fred Drake [Wed, 27 Jan 1999 15:48:23 +0000 (15:48 +0000)]
Don't say that the module defines the "following functions" and then
only describe one; say "following function" instead!
Merge the two one-sentence paragraphs into a single paragraph, so it
doesn't look too stupid.
Just van Rossum [Wed, 27 Jan 1999 14:22:11 +0000 (14:22 +0000)]
cleaned up ugly hack related to activate events and suspend/resume -- jvr
Barry Warsaw [Tue, 26 Jan 1999 22:01:37 +0000 (22:01 +0000)]
Re-format the module docstring and document the new get() argument.
Fred Drake [Tue, 26 Jan 1999 21:49:05 +0000 (21:49 +0000)]
Incorporate changes for patched version of ConfigParser.
Guido van Rossum [Tue, 26 Jan 1999 19:29:25 +0000 (19:29 +0000)]
Patch by Chris Petrilli (not really tested since I don't know this
module myself) to accept an option keyword argument (vars) that is
substituted on top of the defaults that were setup in __init__. The
patch also fixes the problem where you can't have recusive references
inside your configuration file.
Fred Drake [Tue, 26 Jan 1999 19:23:09 +0000 (19:23 +0000)]
\py@modindex: Format the index entry for the module index more like
that used in the "normal" index. No visual difference, but
more easily processed by helper scripts.
Fred Drake [Tue, 26 Jan 1999 15:47:59 +0000 (15:47 +0000)]
Documentation for the ConfigParser module, by Christopher G. Petrilli
(petrilli@amber.org).
Jack Jansen [Tue, 26 Jan 1999 13:09:59 +0000 (13:09 +0000)]
Added Sherlock source for Python documentation, and added icons to them all.
Barry Warsaw [Tue, 26 Jan 1999 02:15:50 +0000 (02:15 +0000)]
expandtabs__doc__: blank line which was not terminated with \n\ caused
the SunPro C compiler to choke. Removed this redundant line.
Guido van Rossum [Mon, 25 Jan 1999 23:20:23 +0000 (23:20 +0000)]
Add spawnv and spawnve functions for Win32 platforms.
Guido van Rossum [Mon, 25 Jan 1999 22:36:24 +0000 (22:36 +0000)]
A gift from Fredrik Lundh: fast C implementation of expandtabs().
I've reformatted it, added a few comments, a test for tabsize <= 0,
and used the AS_STRING macro.
Guido van Rossum [Mon, 25 Jan 1999 22:31:53 +0000 (22:31 +0000)]
Document the default for tabsize in expandtabs().
Guido van Rossum [Mon, 25 Jan 1999 21:57:29 +0000 (21:57 +0000)]
The usual.
Fred Drake [Mon, 25 Jan 1999 21:57:07 +0000 (21:57 +0000)]
Allow recognition of attributes even if they don't have space in front
of them. I.e., '<a name="foo"href="bar.html">' will now have two
attributes recognized.
Based on comments from newgroup.
Guido van Rossum [Mon, 25 Jan 1999 21:48:56 +0000 (21:48 +0000)]
Change rare occurrences of #if HAVE_LONG_LONG to #ifdef.
Guido van Rossum [Mon, 25 Jan 1999 21:43:51 +0000 (21:43 +0000)]
Make sure not to call realloc() with a NULL pointer -- call malloc()
in that case. Tamito Kajiyama.
Guido van Rossum [Mon, 25 Jan 1999 21:39:03 +0000 (21:39 +0000)]
Include myselect.h -- needed on some platforms.
Guido van Rossum [Mon, 25 Jan 1999 21:38:29 +0000 (21:38 +0000)]
Rearrange the -I flags for compiling _tkinter.c so that
/usr/local/include comes before /usr/X11R1/include. On some Linux
distributions the latter apparently contains (standard!) a bad tcl.h
or tk.h.
Guido van Rossum [Mon, 25 Jan 1999 21:37:02 +0000 (21:37 +0000)]
Don't die if CodeType doesn't exist -- ignore the error. This could
happen in restricted mode.
Guido van Rossum [Mon, 25 Jan 1999 21:36:13 +0000 (21:36 +0000)]
There's a macro PycString_IMPORT which the documentation listed as
PycStringIO_IMPORT. While arguably the name used in the documentation
is more consistent, I think it's probably safer not to change the
macro definition and instead fix the doco.
Guido van Rossum [Mon, 25 Jan 1999 20:56:33 +0000 (20:56 +0000)]
Correct typo in new function get_breaks().
Guido van Rossum [Mon, 25 Jan 1999 20:56:07 +0000 (20:56 +0000)]
Change clear syntax to support three alternatives:
clear
clear file:line
clear bpno bpno ...
Also print the breakpoint data after calling set_break(), because the
print statement in set_break() has gone.
Guido van Rossum [Mon, 25 Jan 1999 20:51:34 +0000 (20:51 +0000)]
Change clear_break() to the old signature clear_break(file, line).
Add new clear_bpbynumber() with single bpno argument. (Adapted from
a patch by Richard Wolff.)
Also some cleanup in error messages and moved some comments into a
docstring.
Guido van Rossum [Mon, 25 Jan 1999 19:42:19 +0000 (19:42 +0000)]
Ai! complex_nonzero() has && which should be ||, else decidedly
non-zero things like 5j and complex(1,0) are considered to be
zero/false. Tim Peters.
Guido van Rossum [Mon, 25 Jan 1999 16:12:23 +0000 (16:12 +0000)]
Only do ttyname() when HAVE_TTYNAME is defined.
Also define F_OK etc. when not already defined, when doing access().
Jack Jansen [Mon, 25 Jan 1999 15:11:15 +0000 (15:11 +0000)]
Adding sherlock search templates for Python and Python FAQ.
Jack Jansen [Mon, 25 Jan 1999 12:39:39 +0000 (12:39 +0000)]
Added Icn module to toolboxmodules
Jack Jansen [Mon, 25 Jan 1999 12:24:27 +0000 (12:24 +0000)]
Set PythonCore version number to sys.hexversion, and removed version
numbers in all other projects/libraries.
Just van Rossum [Sun, 24 Jan 1999 23:24:21 +0000 (23:24 +0000)]
Script to synchronize files with / in their name and their _s_ counterparts.
Needed to keep CWGUSI under cvs because of filesnames with slashes.
Just van Rossum [Sat, 23 Jan 1999 00:06:06 +0000 (00:06 +0000)]
Test checkin, to see whether I really can do it. --jvr schpeaking.
Just van Rossum [Fri, 22 Jan 1999 23:58:04 +0000 (23:58 +0000)]
Test checkin, to see whether I really can do it. --jvr schpeaking.
Fred Drake [Fri, 22 Jan 1999 22:48:24 +0000 (22:48 +0000)]
Add "term" to AUTOCLOSE.
Guido van Rossum [Fri, 22 Jan 1999 20:10:49 +0000 (20:10 +0000)]
Header for PyObject_DelItem() mentioned non-existing 3rd argument.
Jack Jansen [Fri, 22 Jan 1999 13:26:45 +0000 (13:26 +0000)]
Updated for 1.5.2b1
Jack Jansen [Fri, 22 Jan 1999 13:23:12 +0000 (13:23 +0000)]
In unpackevent, get the direct object (----) before asking for missed parameters.
The documentation is unclear on this, but the old implementation caused problems
with Default Folder.
Jack Jansen [Fri, 22 Jan 1999 13:14:06 +0000 (13:14 +0000)]
Select the whole default input field in AskString (Joe Strout)
Barry Warsaw [Thu, 21 Jan 1999 17:06:11 +0000 (17:06 +0000)]
(py-mode-map): Add back force of RET (aka C-m) to
py-newline-and-indent.
Jack Jansen [Thu, 21 Jan 1999 14:30:55 +0000 (14:30 +0000)]
Added examples/testcode for the Icn module.
Jack Jansen [Thu, 21 Jan 1999 13:34:26 +0000 (13:34 +0000)]
Don't qualify local symbols with aetools...
Jack Jansen [Thu, 21 Jan 1999 13:31:30 +0000 (13:31 +0000)]
Manually added definitions for normal, bold, etc. These are in MacTypes (of all
places) which isn't worth bgenning.
Jack Jansen [Thu, 21 Jan 1999 12:51:36 +0000 (12:51 +0000)]
Updated for 1.5.2b1
Jack Jansen [Thu, 21 Jan 1999 12:50:47 +0000 (12:50 +0000)]
Updated for 1.5.2b1 (better late than never:-)
Jack Jansen [Thu, 21 Jan 1999 12:50:19 +0000 (12:50 +0000)]
Updated the version number in the vers and preffilename resources.
Jack Jansen [Thu, 21 Jan 1999 12:49:20 +0000 (12:49 +0000)]
Removed warnings for packages (Just implemented support for freezing
them, so the warning is obsolete).
Fred Drake [Wed, 20 Jan 1999 20:35:05 +0000 (20:35 +0000)]
convert(): Added parameter "autoclose", which should be a sequence of
general identifiers for which closing tags will be omitted
when SGML is generated. This can be used to tell the markup
generator to drop stuff like </para>. Note that it needs to
be possible for the closing tag to *always* be omitted for it
to be included in "autoclose".
main(): Added command-line option "-a" / "--autoclose" to set the
list of general identifiers passed to the convert() function
as the "autoclose" parameter. The list may only be specified
once (not additive) and GIs should be comma-separated. The
default list includes only "para".
Fred Drake [Wed, 20 Jan 1999 17:26:56 +0000 (17:26 +0000)]
Modified the "sgml" and "xml" targets to stop if the sub-makes fail in
any subdirectory; don't continue with remaining subdirs.
Added "api", "ext", "lib", "mac", "ref", and "tut" targets to only do
submakes in those directories. This is just a lot easier to use than
to cd into the subdir and use make.rules directly.
Fred Drake [Wed, 20 Jan 1999 16:26:09 +0000 (16:26 +0000)]
Add caveat on partial dependence on the "cl" module, only available on
IRIX systems.
Fred Drake [Wed, 20 Jan 1999 15:55:20 +0000 (15:55 +0000)]
Move the jpeg module to the SGI section; it is dependent on the "cl"
module available on IRIX.
Fred Drake [Tue, 19 Jan 1999 23:09:31 +0000 (23:09 +0000)]
create_module_info(): If there's a \moduleauthor, move it to an
<author> inside the <moduleinfo> element.
Fix problems with paragraph identification.
Fred Drake [Tue, 19 Jan 1999 23:03:04 +0000 (23:03 +0000)]
isnmtoken(), istoken(): Fix to ensure the regex has to match the
entire attribute value.
Add ability to save list of "empty" elements to a file -- enabled by
constant in the code.
Fred Drake [Tue, 19 Jan 1999 21:46:48 +0000 (21:46 +0000)]
handle_labels(): Fix problem for document fragments containing more
than one "root" that prevented all the <label id=...> items
from being promoted to id attributes on the enclosing chapter/
section/... properly.
Fred Drake [Tue, 19 Jan 1999 20:00:08 +0000 (20:00 +0000)]
Revised comments on null bytes in pattern string.
Removed "New" from module synopsis.
Fred Drake [Tue, 19 Jan 1999 19:35:18 +0000 (19:35 +0000)]
Fix second description of handling 2-digit years (last item in
introductory text).
Fred Drake [Tue, 19 Jan 1999 17:11:23 +0000 (17:11 +0000)]
convert(): Change the element name remapping to convert <refmodule>
to <module link>.
Fred Drake [Tue, 19 Jan 1999 17:10:31 +0000 (17:10 +0000)]
format_attrs(): Attempt a bit more minimization for SGML output.
Fred Drake [Tue, 19 Jan 1999 16:30:10 +0000 (16:30 +0000)]
add_module_idx(), add_idx_hook():
Change the message printed before running buildindex.py;
"Doing the index..." wasn't clear and could be misinterpreted
with an inappropriate mindset. ;-)
Fred Drake [Tue, 19 Jan 1999 16:05:13 +0000 (16:05 +0000)]
Enable os.path as a mostly-normal submodule, including "from os.path
import isfile" and "import os.path".
Barry Warsaw [Tue, 19 Jan 1999 13:26:56 +0000 (13:26 +0000)]
(py-mode-map): Removed special bindings for C-m and C-j to
py-newline-and-indent. These ought to get picked up by the mapcar
that follows; any existing binding to newline-and-indent gets shadowed
to py-newline-and-indent.
This will break some people who, e.g. bind C-m or C-j to newline but
still want these bound to py-newline-and-indent in Python mode. On
the other hand, the forced binding pisses off Emacs diehards. So
consider this experimental and see if any tall Dutch guys complain :-)
Barry Warsaw [Mon, 18 Jan 1999 21:49:39 +0000 (21:49 +0000)]
(py-narrow-to-defun): New command (bound to C-x n d) which mimics the
standard narrow-to-defun but works with Python classes and methods.
With no arg, narrows to most enclosing def/method. With C-u arg,
narrows to most enclosing class.
Greg Ward [Mon, 18 Jan 1999 17:08:16 +0000 (17:08 +0000)]
Added 'warn' method.
Fred Drake [Mon, 18 Jan 1999 15:46:02 +0000 (15:46 +0000)]
Fix typo spotted by Jeff MacDonald <jam@ans.net>.
Guido van Rossum [Mon, 18 Jan 1999 15:18:57 +0000 (15:18 +0000)]
Only deiconify when iconic.
Guido van Rossum [Mon, 18 Jan 1999 15:18:34 +0000 (15:18 +0000)]
Misc
Jack Jansen [Mon, 18 Jan 1999 09:34:50 +0000 (09:34 +0000)]
Interface to GetIcon, PlotIcon and friends.
Guido van Rossum [Fri, 15 Jan 1999 04:03:46 +0000 (04:03 +0000)]
Added doc strings to the exception classes.
Contributed by Blake Winton, but considerably edited.
Guido van Rossum [Fri, 15 Jan 1999 03:23:55 +0000 (03:23 +0000)]
Patch by Piers Lauder: make exceptions classes.
Take opportunity to add more explanatory messages to exceptions.
Barry Warsaw [Fri, 15 Jan 1999 02:12:31 +0000 (02:12 +0000)]
(py-electric-delete): Implement the XEmacs 21 blessed way of checking
for delete forwardness.
Guido van Rossum [Thu, 14 Jan 1999 22:40:30 +0000 (22:40 +0000)]
Bruce Wheeler quotes Mark Hammond with a different version of the
last patch to this file: use pathLen, not bufSize, as the initializer.
Fred Drake [Thu, 14 Jan 1999 22:35:05 +0000 (22:35 +0000)]
Add a "tarball" target.
Fred Drake [Thu, 14 Jan 1999 21:44:56 +0000 (21:44 +0000)]
Adjust so that we are no longer using special entities for well-known
names. These are too much of a pain for occaissional authors.
Barry Warsaw [Thu, 14 Jan 1999 21:26:54 +0000 (21:26 +0000)]
for method getaddrlist(): Added a note clarifying that all named
headers and their continuation lines are parsed.
Fred Drake [Thu, 14 Jan 1999 21:18:52 +0000 (21:18 +0000)]
Shorten the name of the <rfc> "number" attribute to "num".
Fred Drake [Thu, 14 Jan 1999 21:18:03 +0000 (21:18 +0000)]
Make <rfc> no longer an empty element but a container. The text
currently generated by the LaTeX and LaTeX2HTML processes is generated
here as well, making it more flexible in the SGML version.
Reduce the <args> element so that <optional> goes away; just use
square brackets to indicate what's optional. This makes it easier to
read than the LaTeX, and the processor can do any checking it needs to
in order to make sure it's legit. Possible shortcoming: DSSSL
processors may need more explicit markup. Can probably hack around it
for this case, but we'll see.
Barry Warsaw [Thu, 14 Jan 1999 20:00:58 +0000 (20:00 +0000)]
Test the rfc822.py module. Contains just a few simple cases, and some
troublesome ones encountered on the c.l.py list.
Barry Warsaw [Thu, 14 Jan 1999 19:59:58 +0000 (19:59 +0000)]
Message.getaddrlist(): This now handles multiple occurances of the
named header, so that if a message has, e.g. multiple CC: lines, all
will get returned by the call to getaddrlist(). It also correctly
handles addresses which show up in continuation lines.
AdderlistClass.__init__(): Added \n to self.CR which fixes a bug that
sometimes, an address would contain a bogus trailing newline.
Message.getaddress(): In final else clause, added a test for the
character we're at being in self.specials. Without this, such
characters never get consumed and we infloop. Case in point (as
posted to c.l.py):
To: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com>
----------------------------^
otherwise we'd infloop here
Fred Drake [Thu, 14 Jan 1999 19:45:38 +0000 (19:45 +0000)]
Several new functions to re-write tables to be at least partly
conformant with the OASIS Exchange model. There's a little more
massage left to do, but not much.
Guido van Rossum [Thu, 14 Jan 1999 19:31:42 +0000 (19:31 +0000)]
Should include "Python.h", not <Python.h> -- it's not a standard
header file (yet :-).
Guido van Rossum [Thu, 14 Jan 1999 19:11:11 +0000 (19:11 +0000)]
Jim Ahlstrom patch: Watcom chokes on a long expression in c_asinh().
Break it up.
Guido van Rossum [Thu, 14 Jan 1999 19:07:00 +0000 (19:07 +0000)]
Jim Ahlstrom patch: the module doc string is too long for 16-bit VC
1.5. Omit the second part.
Guido van Rossum [Thu, 14 Jan 1999 19:01:53 +0000 (19:01 +0000)]
Jim Ahlstrom patch: cutoff should be a long for machines with 16-bit
ints. (In theory, other variables should be widened to long as well,
but this won't ever be needed, since the len of a list is still an
int.)
Guido van Rossum [Thu, 14 Jan 1999 19:00:14 +0000 (19:00 +0000)]
Jim Ahlstrom patch: BIGCHUNK is too large for 16-bit int.
Guido van Rossum [Thu, 14 Jan 1999 18:51:53 +0000 (18:51 +0000)]
Jim Ahlstrom added some SIZEOF defs for VC and WATCOM (only).
Fred Drake [Thu, 14 Jan 1999 18:26:23 +0000 (18:26 +0000)]
Added clean and clobber targets.
Fred Drake [Thu, 14 Jan 1999 18:17:07 +0000 (18:17 +0000)]
Update to the latest version of Michael Ernst's script.