]> granicus.if.org Git - python/log
python
26 years agoAdded some tests to make sure that long->int conversions near
Guido van Rossum [Tue, 26 May 1998 14:51:55 +0000 (14:51 +0000)]
Added some tests to make sure that long->int conversions near
sys.maxint and near -sys.maxint-1 work correctly.

26 years agoSubject: Buglet in PyLong_AsLong
Guido van Rossum [Tue, 26 May 1998 14:33:37 +0000 (14:33 +0000)]
Subject: Buglet in PyLong_AsLong
From: "Tim Peters" <tim_one@email.msn.com>
To: "Guido van Rossum" <guido@CNRI.Reston.VA.US>
Date: Sat, 23 May 1998 21:45:53 -0400

Guido, the overflow checking in PyLong_AsLong is off a little:

1) If the C in use sign-extends right shifts on signed longs, there's a
spurious overflow error when converting the most-negative int:

Python 1.5.1 (#0, Apr 13 1998, 20:22:04) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> x = -1L << 31
>>> x
-2147483648L
>>> int(x)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
OverflowError: long int too long to convert
>>>

2) If C does not sign-extend, some genuine overflows won't be caught.

The attached should repair both, and, because I installed a new disk and a C
compiler today, it's even been compiled this time <wink>.

Python 1.5.1 (#0, May 23 1998, 20:24:58) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> x = -1L << 31
>>> x
-2147483648L
>>> int(x)
-2147483648
>>> int(-x)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
OverflowError: long int too long to convert
>>> int(-x-1)
2147483647
>>> int(x-1)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
OverflowError: long int too long to convert
>>>

end-casing-ly y'rs  - tim

26 years agoReplaced the VC++ 5.x instructions with a pointer to ../PCbuild.
Guido van Rossum [Tue, 26 May 1998 14:20:15 +0000 (14:20 +0000)]
Replaced the VC++ 5.x instructions with a pointer to ../PCbuild.

26 years agoMoved VC++ 5.x files to ../PCbuild.
Guido van Rossum [Tue, 26 May 1998 14:17:18 +0000 (14:17 +0000)]
Moved VC++ 5.x files to ../PCbuild.

26 years agoMoved VC++ 5.x stuff here.
Guido van Rossum [Tue, 26 May 1998 14:16:23 +0000 (14:16 +0000)]
Moved VC++ 5.x stuff here.

26 years agoMark Hammond writes:
Guido van Rossum [Tue, 26 May 1998 13:53:23 +0000 (13:53 +0000)]
Mark Hammond writes:

Also, here is a new version of import_nt.c, which allows you to register a
Debug module in the registry.  While I was there I removed some of the
ugliness - what was I thinking :-)

26 years agoDon't die if win32api doesn't exist.
Guido van Rossum [Tue, 26 May 1998 02:51:40 +0000 (02:51 +0000)]
Don't die if win32api doesn't exist.

26 years agoFix a dumb typo in the revparse() regular exception: {1-4} should be {1,4}.
Guido van Rossum [Fri, 22 May 1998 19:43:21 +0000 (19:43 +0000)]
Fix a dumb typo in the revparse() regular exception: {1-4} should be {1,4}.
Now you can click on revisions and diffs again!

26 years agoDocument missing functions: xor, not, truth, countOf, indexOf, and
Guido van Rossum [Fri, 22 May 1998 18:48:37 +0000 (18:48 +0000)]
Document missing functions: xor, not, truth, countOf, indexOf, and
(new!) contains.

26 years agoUse a different implementation of EventHook(). The new version
Guido van Rossum [Fri, 22 May 1998 18:28:17 +0000 (18:28 +0000)]
Use a different implementation of EventHook().  The new version
registers an input file handler for stdin with Tcl and handles Tcl
events until something is available on stdin; it then deletes the
handler and returns from EventHook().

This works with or without GNU readline, and doesn't busy-wait.

It still doesn't work for Mac or Windows :-(

26 years agoMinor grammatical correction: "This module perform ..." --> "This module
Fred Drake [Fri, 22 May 1998 18:19:19 +0000 (18:19 +0000)]
Minor grammatical correction:  "This module perform ..." --> "This module
performs ...".

26 years agoFixed spelling in comment: "RFC", not "RFX".
Fred Drake [Fri, 22 May 1998 18:18:08 +0000 (18:18 +0000)]
Fixed spelling in comment:  "RFC", not "RFX".

26 years agoAdd an alias (and preferred name) "contains" for "sequenceIncludes".
Guido van Rossum [Fri, 22 May 1998 18:12:59 +0000 (18:12 +0000)]
Add an alias (and preferred name) "contains" for "sequenceIncludes".

Rationalized the doc strings.

Also simplify the module initialization -- we don't need a __version__
which is set to "$Rev" :-) and we don't need a fatal error when the
initialization fails.

26 years agointroduce a new platform-specific variable: os.linesep is the
Guido van Rossum [Fri, 22 May 1998 15:26:04 +0000 (15:26 +0000)]
introduce a new platform-specific variable: os.linesep is the
platform's line separator.  \n on Unix, \r\n on DOS, OS/2 and Windows,
\r on Macs.

26 years agoAddress some gcc -Wall warnings (e.g. include <ctype.h>).
Guido van Rossum [Fri, 22 May 1998 15:23:36 +0000 (15:23 +0000)]
Address some gcc -Wall warnings (e.g. include <ctype.h>).

Make sure that no tp_as_numbers->nb_<whatever> function is called
without checking for a NULL pointer.  Marc-Andre Lemburg will love it!
(Except that he's just rewritten all this code for a different
approach to coercions ;-( )

26 years agoChange the last 4-space indent into a 1-tab indent.
Guido van Rossum [Fri, 22 May 1998 15:05:36 +0000 (15:05 +0000)]
Change the last 4-space indent into a 1-tab indent.

26 years agoShouldn't use newdir.dir(), which no longer exists!
Guido van Rossum [Fri, 22 May 1998 14:11:57 +0000 (14:11 +0000)]
Shouldn't use newdir.dir(), which no longer exists!

26 years agoI think there was a tiny bug in new_function() -- the 'defaults'
Guido van Rossum [Fri, 22 May 1998 00:57:31 +0000 (00:57 +0000)]
I think there was a tiny bug in new_function() -- the 'defaults'
argument was initialized to Py_None, but later checked for NULL.
Consistently use Py_None.

26 years agoAdd PyErr_PrintEx and PySequence_Contains.
Guido van Rossum [Fri, 22 May 1998 00:56:20 +0000 (00:56 +0000)]
Add PyErr_PrintEx and PySequence_Contains.

26 years agoMake function objects somewhat mutable -- the members func_code,
Guido van Rossum [Fri, 22 May 1998 00:55:34 +0000 (00:55 +0000)]
Make function objects somewhat mutable -- the members func_code,
func_defaults and func_doc (alias __doc__) may be assigned to.  For
the first two, there's a type restriction to code object and tuple,
respectively.

26 years agoPySequence_In() -> PySequence_Contains().
Guido van Rossum [Fri, 22 May 1998 00:54:16 +0000 (00:54 +0000)]
PySequence_In() -> PySequence_Contains().

26 years agoMake sure that no use of a function pointer gotten from a
Guido van Rossum [Fri, 22 May 1998 00:53:47 +0000 (00:53 +0000)]
Make sure that no use of a function pointer gotten from a
tp_as_sequence or tp_as_mapping structure is made without checking it
for NULL first.

26 years agoIn PyObject_IsTrue(), don't call function pointers that are NULL
Guido van Rossum [Fri, 22 May 1998 00:53:24 +0000 (00:53 +0000)]
In PyObject_IsTrue(), don't call function pointers that are NULL
(nb_nonzero, mp_length, sq_length).

26 years agoMoved cmp_member() to abstract.c, as PySequence_Contains() [with
Guido van Rossum [Fri, 22 May 1998 00:52:29 +0000 (00:52 +0000)]
Moved cmp_member() to abstract.c, as PySequence_Contains() [with
swapped arguments].

Also make sure that no use of a function pointer gotten from a
tp_as_sequence or tp_as_mapping structure is made without checking it
for NULL first.

26 years agoA bunch of functions are now properly implemented in abstract.c, and
Guido van Rossum [Fri, 22 May 1998 00:51:39 +0000 (00:51 +0000)]
A bunch of functions are now properly implemented in abstract.c, and
the code here becomes much simpler.  In particular: abs(), divmod(),
pow(), int(), long(), float(), len(), tuple(), list().

Also make sure that no use of a function pointer gotten from a
tp_as_sequence or tp_as_mapping structure is made without checking it
for NULL first.

A few other cosmetic things, such as properly reindenting slice().

26 years agoRenamed PySequence_In() to PySequence_Contains().
Guido van Rossum [Fri, 22 May 1998 00:47:25 +0000 (00:47 +0000)]
Renamed PySequence_In() to PySequence_Contains().

26 years agoCompletely reformatted, standardizing indentation as well as
Guido van Rossum [Fri, 22 May 1998 00:47:05 +0000 (00:47 +0000)]
Completely reformatted, standardizing indentation as well as
programming style.

Recoded many routines to incorporate better error checking, and/or
better versions of the same function found elsewhere
(e.g. bltinmodule.c or ceval.c).  In particular,
Py_Number_{Int,Long,Float}() now convert from strings, just like the
built-in functions int(), long() and float().

Sequences and mappings are now safe to have NULL function pointers
anywhere in their tp_as_sequence or tp_as_mapping fields.  (A few
places in other files need to be checked in too.)

Renamed PySequence_In() to PySequence_Contains().

26 years agoknownfiles: Add the default installation dirs for Apache
Fred Drake [Thu, 21 May 1998 13:15:45 +0000 (13:15 +0000)]
knownfiles:  Add the default installation dirs for Apache
versions <= 1.2, >= 1.3.

26 years agoTrivial little change: when setting a member to an object, hold the
Guido van Rossum [Wed, 20 May 1998 22:25:32 +0000 (22:25 +0000)]
Trivial little change: when setting a member to an object, hold the
old value in a temporary and XDECREF it only after then new value has
been set.  This prevents the (unlikely) case where the destructor of
the member uses the containing object -- it would find it in an
undefined state.

26 years agoAdded support for AMK's {definitions} environment; thanks for the reminder!
Fred Drake [Wed, 20 May 1998 21:32:09 +0000 (21:32 +0000)]
Added support for AMK's {definitions} environment; thanks for the reminder!

26 years agoAdded {definitions} environment, which has \term to define indivual terms.
Fred Drake [Wed, 20 May 1998 17:42:17 +0000 (17:42 +0000)]
Added {definitions} environment, which has \term to define indivual terms.
Similar to {description}.

26 years agowhrandom -> random
Guido van Rossum [Wed, 20 May 1998 17:13:01 +0000 (17:13 +0000)]
whrandom -> random

26 years agoUse random instead of whrandom.
Guido van Rossum [Wed, 20 May 1998 17:05:52 +0000 (17:05 +0000)]
Use random instead of whrandom.

26 years agoAdd Interfaces to replace remaining needs for importing whrandom.
Guido van Rossum [Wed, 20 May 1998 16:28:24 +0000 (16:28 +0000)]
Add Interfaces to replace remaining needs for importing whrandom.
# XXX TO DO: make the distribution functions below into methods.

26 years agoAdd LDLAST to the list of variables processed by the sed script.
Guido van Rossum [Wed, 20 May 1998 15:53:22 +0000 (15:53 +0000)]
Add LDLAST to the list of variables processed by the sed script.

26 years agoCorrect bug doc string (discovered by Berthold Hoellmann):
Guido van Rossum [Wed, 20 May 1998 15:50:56 +0000 (15:50 +0000)]
Correct bug doc string (discovered by Berthold Hoellmann):
get_line_buffer() does not take an optional argument.

26 years agoGet rid of nearly all clals to self._do -- turns out self.tk.call can
Guido van Rossum [Tue, 19 May 1998 21:18:13 +0000 (21:18 +0000)]
Get rid of nearly all clals to self._do -- turns out self.tk.call can
be used just as well, so this saves one Python call in many cases!

26 years agoUse whrandom instead of rand.
Guido van Rossum [Tue, 19 May 1998 21:16:10 +0000 (21:16 +0000)]
Use whrandom instead of rand.

Run 500 steps instead of forever.

26 years agoProtection agains non-existing subdirectories for clean and clobber
Guido van Rossum [Tue, 19 May 1998 21:15:03 +0000 (21:15 +0000)]
Protection agains non-existing subdirectories for clean and clobber
targets.  On some platforms this would cause an infinite Make
recursion.  Also remove "Doc" from the SUBDIRSTOO variable, since it
no longer exists in the standard distribution.

26 years agoAdditions for Mark Hammond's Win32 specific hacks.
Guido van Rossum [Tue, 19 May 1998 20:18:37 +0000 (20:18 +0000)]
Additions for Mark Hammond's Win32 specific hacks.

26 years agoDon't use a separate node for footnotes; see if people scream. ;-)
Fred Drake [Tue, 19 May 1998 19:38:49 +0000 (19:38 +0000)]
Don't use a separate node for footnotes; see if people scream.  ;-)

26 years agoFix definition of release_version (global).
Fred Drake [Tue, 19 May 1998 19:37:55 +0000 (19:37 +0000)]
Fix definition of release_version (global).

26 years agoAdded entry for mimetypes.
Fred Drake [Tue, 19 May 1998 19:13:01 +0000 (19:13 +0000)]
Added entry for mimetypes.

26 years agowebcheck target in this Makefile wasn't used.
Fred Drake [Tue, 19 May 1998 18:04:44 +0000 (18:04 +0000)]
webcheck target in this Makefile wasn't used.

26 years agoFix the webcheck target so it checks the right files....
Fred Drake [Tue, 19 May 1998 18:04:13 +0000 (18:04 +0000)]
Fix the webcheck target so it checks the right files....

26 years ago(py-ask-about-save): New variable used in
Barry Warsaw [Tue, 19 May 1998 16:25:04 +0000 (16:25 +0000)]
(py-ask-about-save): New variable used in
py-execute-import-or-reload.  Same semantics as
compilation-ask-about-save.

26 years ago(py-execute-string): Bind to C-c C-s, and put on menu
Barry Warsaw [Tue, 19 May 1998 16:15:26 +0000 (16:15 +0000)]
(py-execute-string): Bind to C-c C-s, and put on menu

26 years ago(py-stringlit-re): Another ME patch to recognize SQTQs and DQTQs
Barry Warsaw [Tue, 19 May 1998 16:06:21 +0000 (16:06 +0000)]
(py-stringlit-re): Another ME patch to recognize SQTQs and DQTQs
(single and double quoted triple quoted strings :-) with embedded
single like-quotes.  Also recognizes raw prefix.

26 years agoMore ME patches:
Barry Warsaw [Tue, 19 May 1998 15:54:45 +0000 (15:54 +0000)]
More ME patches:

(py-execute-import-or-reload): Cool new command that imports or
reloads the current file as a module, so as not to clutter the global
namespace.  Bound to C-c C-m.

(py-execute-def-or-class): New command that sends the current def or
class to the interpreter.  Bound to C-M-x.

(py-execute-string): New command that sends arbitrary string to the
interpreter.  Not bound by default.

(py-describe-mode): Doco updates.

26 years ago(beginning-of-python-def-or-class): Renamed to
Barry Warsaw [Tue, 19 May 1998 15:31:46 +0000 (15:31 +0000)]
(beginning-of-python-def-or-class): Renamed to
py-beginning-of-def-or-class, and defaliased for backwards
compatibility.  ME patch to add optional second argument, count.

(end-of-python-def-or-class): Renamed to py-end-of-def-or-class, and
defaliased for backwards compatibility.  ME patch to add optional
second argument, count.

26 years agoguess_extension(): Revise documentation string to be more clear. If not
Fred Drake [Tue, 19 May 1998 15:15:59 +0000 (15:15 +0000)]
guess_extension():  Revise documentation string to be more clear.  If not
inited, call init().

26 years agoTest that "import sys.imp" fails as it should.
Guido van Rossum [Tue, 19 May 1998 15:09:42 +0000 (15:09 +0000)]
Test that "import sys.imp" fails as it should.

26 years agoFix a curious bug: statements like "import sys.time" would succeed,
Guido van Rossum [Tue, 19 May 1998 15:09:05 +0000 (15:09 +0000)]
Fix a curious bug: statements like "import sys.time" would succeed,
because the path through the code would notice that sys.__path__ did
not exist and it would fall back to the default path (builtins +
sys.path) instead of failing).  No longer.

26 years agoAdd mimetypes documentation to library reference dependencies.
Fred Drake [Tue, 19 May 1998 15:04:21 +0000 (15:04 +0000)]
Add mimetypes documentation to library reference dependencies.

26 years agoAdd section documenting mimetypes module.
Fred Drake [Tue, 19 May 1998 15:03:45 +0000 (15:03 +0000)]
Add section documenting mimetypes module.

26 years agoMore ME patches:
Barry Warsaw [Tue, 19 May 1998 15:01:06 +0000 (15:01 +0000)]
More ME patches:

(py-shell): Recognize the Python debugger prompt

(py-jump-to-exception): Force into python-mode any buffer that gets
jumped to on exception.  Cope with py-exception-buffer possibly a
cons.

26 years ago#Documentation and comment typos patch given by Michael Ernst. More
Barry Warsaw [Tue, 19 May 1998 14:49:49 +0000 (14:49 +0000)]
#Documentation and comment typos patch given by Michael Ernst.  More
#of his patches to follow.

26 years agoAdd a feature to support specifying an additional search directory for
Guido van Rossum [Mon, 18 May 1998 20:25:54 +0000 (20:25 +0000)]
Add a feature to support specifying an additional search directory for
packages.  (Mark Hammond)

Folded some long lines.

26 years agoRemove Emacs cruft.
Guido van Rossum [Mon, 18 May 1998 20:22:31 +0000 (20:22 +0000)]
Remove Emacs cruft.

26 years agoAdd a feature to support specifying an additional search directory for
Guido van Rossum [Mon, 18 May 1998 20:21:56 +0000 (20:21 +0000)]
Add a feature to support specifying an additional search directory for
packages.  (Mark Hammond)

Remove Emacs cruft.

26 years agoguess_extension(): New function. Performs a reverse mapping from MIME type
Fred Drake [Mon, 18 May 1998 16:27:20 +0000 (16:27 +0000)]
guess_extension():  New function.  Performs a reverse mapping from MIME type
to filename extension.

26 years agoNeatify the _timezones table and remove a misleading comment about
Guido van Rossum [Mon, 18 May 1998 16:09:10 +0000 (16:09 +0000)]
Neatify the _timezones table and remove a misleading comment about
inaccuracies in mktime_tz().

26 years agoFixed typo in docstring: suffixes_map --> suffix_map.
Fred Drake [Mon, 18 May 1998 16:05:24 +0000 (16:05 +0000)]
Fixed typo in docstring:  suffixes_map --> suffix_map.

26 years agoSubject: bug fixes for imaplib.py
Guido van Rossum [Mon, 18 May 1998 14:39:42 +0000 (14:39 +0000)]
Subject: bug fixes for imaplib.py
From: Piers Lauder <piers@staff.cs.usyd.edu.au>
To: Python List <python-list@cwi.nl>
Date: Mon, 18 May 1998 09:51:53 +1000

Following is a context diff for imaplib.py in the Python1.5.1 distribution.
It fixes 2 bugs. One to do with argument quoting, and the other to do with
caching of un-tagged responses. Apologies for its size.

26 years agoAdd file extension .xml, mapping it to text/xml.
Guido van Rossum [Mon, 18 May 1998 14:25:08 +0000 (14:25 +0000)]
Add file extension .xml, mapping it to text/xml.

26 years agoRemove use of RTLD_GLOBAL.
Guido van Rossum [Mon, 18 May 1998 13:42:45 +0000 (13:42 +0000)]
Remove use of RTLD_GLOBAL.

26 years agoFix another oldie (item (b) only):
Guido van Rossum [Sat, 16 May 1998 02:11:10 +0000 (02:11 +0000)]
Fix another oldie (item (b) only):

Date:    Fri, 20 Dec 1996 14:47:50 +0100
From:    Lele Gaifax <lele@nautilus.eclipse.it>
To:      Python List <python-list@cwi.nl>
Subject: Typos in ref manual

Hi all,
browsing the reference manual I noticed what seem two small errors:
  a) in the list of keywords (section 2.3.1) 'exec' is missing
  b) in the Operator Precedence table (5.12) the comparison operators
     include '=', but probably '==' was intended.
Hope this help,
lele.

26 years agoInstall config.h.
Guido van Rossum [Sat, 16 May 1998 01:51:49 +0000 (01:51 +0000)]
Install config.h.
Adapt to new build conventions (get rid of Release directory).

26 years agoAnother veeeeeery old patch...
Guido van Rossum [Fri, 15 May 1998 22:04:07 +0000 (22:04 +0000)]
Another veeeeeery old patch...

Date:    Thu, 14 Sep 1995 12:18:20 -0400
From:    Alan Morse <alan@dvcorp.com>
To:      python-list@cwi.nl
Subject: getargs bug in 1.2 and 1.3 BETA

We have found a bug in the part of the getargs code that we added
and submitted, and which was incorporated into 1.1.

The parsing of "O?" format specifiers is not handled correctly;
there is no "else" for the "if" and therefore it can never fail.
What's worse, the advancing of the varargs pointer is not
handled properly, so from then on it is out of sync, wreaking
all sorts of havoc. (If it had failed properly, then the out-of-sync
varargs would not have been an issue.)

Below is the context diff for the change.

Note that I have made a few stylistic changes beyond adding the
else case, namely:

1) Making the "O" case follow the convention established by the other
format specifiers of getting all their vararg arguments before
performing the test, rather than getting some before and some after
the test passes.

2) Making the logic of the tests parallel, so the "if" part indicates
that the format is accepted and the "else" part indicates that the
format has failed. They were inconsistent with each other and with the
the other format specifiers.

-Alan Morse (amorse@dvcorp.com)

26 years agoChange the output names. Do away with the Release and Debug
Guido van Rossum [Fri, 15 May 1998 20:26:31 +0000 (20:26 +0000)]
Change the output names.  Do away with the Release and Debug
subdirectories.

All final products go into the current directory (i.e., PCbuild).

Object files go into temp-release and temp-debug.

Debug versions of DLLs have _d appended to their basename, e.g. the
debug version of python15.dll is python15_d.dll, the debug version of
python.exe is python_d.exe, and the debug version of parser.pyd is
parser_d.pyd.  (See corresponding patch to importdl.c.)  Uniformly
changed all extension modules to use .pyd, not .dll.

26 years agoIn debug mode on MS Windows, DLLs are called foo_d.pyd or foo_d.dll.
Guido van Rossum [Fri, 15 May 1998 20:22:08 +0000 (20:22 +0000)]
In debug mode on MS Windows, DLLs are called foo_d.pyd or foo_d.dll.

26 years agoAdd some symbols. Remove the LIBRARY statement at the top (and the
Guido van Rossum [Fri, 15 May 1998 20:04:21 +0000 (20:04 +0000)]
Add some symbols.  Remove the LIBRARY statement at the top (and the
commented-out CODE/DATA statements).

26 years agoSmall change to the l2h target allowing the output dir, $(HTMLDIR), to be
Fred Drake [Fri, 15 May 1998 17:50:32 +0000 (17:50 +0000)]
Small change to the l2h target allowing the output dir, $(HTMLDIR), to be
a sibling of the html/ directory in the distribution.

26 years agoUpdate to use latex2html 98.1p5.
Fred Drake [Fri, 15 May 1998 17:14:17 +0000 (17:14 +0000)]
Update to use latex2html 98.1p5.

26 years agoUpdate to use latex2html 98.1p5.
Fred Drake [Fri, 15 May 1998 17:13:08 +0000 (17:13 +0000)]
Update to use latex2html 98.1p5.

Cleanup temporary files produced by latex2html in the output directory.

26 years agoUpdate note about latex2html version required.
Fred Drake [Fri, 15 May 1998 17:03:00 +0000 (17:03 +0000)]
Update note about latex2html version required.

26 years agoAdd support for the Macintosh Library Modules document.
Fred Drake [Fri, 15 May 1998 17:02:10 +0000 (17:02 +0000)]
Add support for the Macintosh Library Modules document.

26 years agoRevise comment about \let support a little to more accurately reflect the
Fred Drake [Fri, 15 May 1998 16:59:38 +0000 (16:59 +0000)]
Revise comment about \let support a little to more accurately reflect the
support that's offered.

26 years agoIgnore the mac/ directory....
Fred Drake [Fri, 15 May 1998 16:56:44 +0000 (16:56 +0000)]
Ignore the mac/ directory....

26 years agoUpdate to use the output names used by latex2html for the Python Reference
Fred Drake [Fri, 15 May 1998 16:18:21 +0000 (16:18 +0000)]
Update to use the output names used by latex2html for the Python Reference
Manual; the old FrameMaker names no longer apply.

26 years agoExtend handling for \let a bit, to also allow \let\something=<character>. We
Fred Drake [Fri, 15 May 1998 13:45:54 +0000 (13:45 +0000)]
Extend handling for \let a bit, to also allow \let\something=<character>.  We
still don't support things like \let^^M=\something, where ^^M could actually be
any active character.  Print a decent warning if we find one we can't handle.

26 years agoRemove debugging echo.
Fred Drake [Fri, 15 May 1998 13:38:21 +0000 (13:38 +0000)]
Remove debugging echo.

26 years agodo_cmd_let(): Simple implementation to allow \let to be used to establish
Fred Drake [Fri, 15 May 1998 04:28:37 +0000 (04:28 +0000)]
do_cmd_let():  Simple implementation to allow \let to be used to establish
synonyms for macros.  This supports:

\let\newname = \oldname
\let\newname\oldname

This is useful sometimes, and can at least avoid real errors at other times.

26 years agoImproved version of patch for HPUX from David Arnold.
Guido van Rossum [Thu, 14 May 1998 21:01:27 +0000 (21:01 +0000)]
Improved version of patch for HPUX from David Arnold.

26 years agoAdded support for \developer, \developers, \developersaddress.
Fred Drake [Thu, 14 May 1998 21:00:28 +0000 (21:00 +0000)]
Added support for \developer, \developers, \developersaddress.

26 years agoAdded definitions for \developer, \developers, \developersaddress.
Fred Drake [Thu, 14 May 1998 20:56:31 +0000 (20:56 +0000)]
Added definitions for \developer, \developers, \developersaddress.

Ask Guido if you really want to know why.  ;-)

26 years agoFix the fix to allow the .tex document sources not live in ".".
Fred Drake [Thu, 14 May 1998 20:36:49 +0000 (20:36 +0000)]
Fix the fix to allow the .tex document sources not live in ".".

26 years agoMostly spurious change to ensure that everyone's version of this picks up the
Fred Drake [Thu, 14 May 1998 20:07:10 +0000 (20:07 +0000)]
Mostly spurious change to ensure that everyone's version of this picks up the
execute bit.... problem discovered by Guido.

26 years agoDon't run tools/toc2bkm.py unless we're building PDF.
Fred Drake [Thu, 14 May 1998 20:03:14 +0000 (20:03 +0000)]
Don't run tools/toc2bkm.py unless we're building PDF.

Change the way TEXINPUTS gets defined to ensure that the directory containing
the main document file comes before any other dir, to allow documents to have
files that "override" like-named files elsewhere on the search path.  Guido
discovered we needed this.

26 years agoUpdated markup style (got rid of \verb@...@, mostly).
Fred Drake [Thu, 14 May 1998 19:37:06 +0000 (19:37 +0000)]
Updated markup style (got rid of \verb@...@, mostly).

26 years agoAdd pointer to Misc/HPUX-NOTES.
Guido van Rossum [Thu, 14 May 1998 15:47:35 +0000 (15:47 +0000)]
Add pointer to Misc/HPUX-NOTES.

26 years agoAdd an index entry.
Fred Drake [Thu, 14 May 1998 15:16:12 +0000 (15:16 +0000)]
Add an index entry.

Bow to font lock.

26 years agoWhen a .o file is an absolute pathname, assume it's a file for which
Guido van Rossum [Thu, 14 May 1998 02:37:45 +0000 (02:37 +0000)]
When a .o file is an absolute pathname, assume it's a file for which
we have no .c source.

26 years agostrop_replace(): balk if the pattern string is empty.
Guido van Rossum [Thu, 14 May 1998 02:36:29 +0000 (02:36 +0000)]
strop_replace(): balk if the pattern string is empty.

26 years agowhichmodule(): remove redundant PyErr_Clear(); add explicit setting
Guido van Rossum [Thu, 14 May 1998 02:34:46 +0000 (02:34 +0000)]
whichmodule(): remove redundant PyErr_Clear(); add explicit setting
of error when sys.modules isn't there.

26 years agoDon't delete glmodule.c on 'make clobber' (it's a checked in file!).
Guido van Rossum [Thu, 14 May 1998 02:33:57 +0000 (02:33 +0000)]
Don't delete glmodule.c on 'make clobber' (it's a checked in file!).

26 years agoNew APIs for embedding applications that want to add their own entries
Guido van Rossum [Thu, 14 May 1998 02:32:54 +0000 (02:32 +0000)]
New APIs for embedding applications that want to add their own entries
to the table of built-in modules.  This should normally be called
*before* Py_Initialize().  When the malloc() or realloc() call fails,
-1 is returned and the existing table is unchanged.

After a similar function by Just van Rossum.

int PyImport_ExtendInittab(struct _inittab *newtab);
int PyImport_AppendInittab(char *name, void (*initfunc)());

26 years agoRemove unnecessary PyErr_Clear().
Guido van Rossum [Thu, 14 May 1998 02:31:26 +0000 (02:31 +0000)]
Remove unnecessary PyErr_Clear().

26 years agoSince PyDict_GetItem() can't raise an exception any more, there's no
Guido van Rossum [Thu, 14 May 1998 02:16:20 +0000 (02:16 +0000)]
Since PyDict_GetItem() can't raise an exception any more, there's no
need to call PyErr_Clear() when it returns NULL.

26 years agoSince PyDict_GetItem() can't raise an exception any more, there's no
Guido van Rossum [Thu, 14 May 1998 01:49:48 +0000 (01:49 +0000)]
Since PyDict_GetItem() can't raise an exception any more, there's no
need to cxall PyErr_Clear() when it returns NULL.