]> granicus.if.org Git - python/log
python
27 years agoNit to prevent empty node in formatted version.
Fred Drake [Fri, 27 Feb 1998 05:21:36 +0000 (05:21 +0000)]
Nit to prevent empty node in formatted version.

27 years agoReformulate how the info stuff is ignored.
Fred Drake [Fri, 27 Feb 1998 05:20:59 +0000 (05:20 +0000)]
Reformulate how the info stuff is ignored.

27 years agoUse a Python script to create "empty" indexes. This solves Guido's
Fred Drake [Fri, 27 Feb 1998 05:18:28 +0000 (05:18 +0000)]
Use a Python script to create "empty" indexes.  This solves Guido's
corrupted file problem and avoids the shell escape interpretation
portability problem.  ;-(  See comments at top of newind.py for an
explanation.

27 years agoUpdate....
Fred Drake [Fri, 27 Feb 1998 02:23:15 +0000 (02:23 +0000)]
Update....

27 years agoAdded \label{}s for logical addressing.
Fred Drake [Thu, 26 Feb 1998 22:01:23 +0000 (22:01 +0000)]
Added \label{}s for logical addressing.

27 years agoAdded \label{}s for logical addressing.
Fred Drake [Thu, 26 Feb 1998 21:47:54 +0000 (21:47 +0000)]
Added \label{}s for logical addressing.

27 years agoAdjusted to work with the newer version of LaTeX2HTML as well.
Fred Drake [Thu, 26 Feb 1998 18:49:58 +0000 (18:49 +0000)]
Adjusted to work with the newer version of LaTeX2HTML as well.

27 years agoMarked references to the other manuals as \emph{} in the abstract.
Fred Drake [Thu, 26 Feb 1998 18:49:12 +0000 (18:49 +0000)]
Marked references to the other manuals as \emph{} in the abstract.

Added \label{}s for logical addressing.

27 years agoNew version of tb_lineno(), this time *not* using try-except, to avoid
Guido van Rossum [Thu, 26 Feb 1998 17:25:02 +0000 (17:25 +0000)]
New version of tb_lineno(), this time *not* using try-except, to avoid
disturbing the current exception, and returning tb.tb_lineno, which is
the line number of thr traceback, rather than the current line number.
By Jim Hugunin.

27 years agoFix up description of 'S' format; as Dave Ascher pointed out, it
Guido van Rossum [Thu, 26 Feb 1998 17:07:11 +0000 (17:07 +0000)]
Fix up description of 'S' format; as Dave Ascher pointed out, it
was ungrammatical to the point of saying the opposite of what it
should say.

27 years agoDo a little bit more work on a table-driven basis. A little cleanup.
Fred Drake [Thu, 26 Feb 1998 05:52:37 +0000 (05:52 +0000)]
Do a little bit more work on a table-driven basis.  A little cleanup.

Seems to work at the moment.

27 years agoAdd support for some of the newer commands, a little cleanup.
Fred Drake [Thu, 26 Feb 1998 05:49:37 +0000 (05:49 +0000)]
Add support for some of the newer commands, a little cleanup.

27 years agoA working version of the 'args' command (it prints the current values
Guido van Rossum [Wed, 25 Feb 1998 20:50:32 +0000 (20:50 +0000)]
A working version of the 'args' command (it prints the current values
of the variables known to hold arguments, but that's as close as I can
get, and generally it's close enough).

27 years agoAdd test for core dump -- make sure it doesn't come back!
Guido van Rossum [Wed, 25 Feb 1998 17:51:50 +0000 (17:51 +0000)]
Add test for core dump -- make sure it doesn't come back!

27 years ago&do_cmd_bcode, &do_cmd_ecode: Removed; no longer used.
Fred Drake [Wed, 25 Feb 1998 17:50:07 +0000 (17:50 +0000)]
&do_cmd_bcode, &do_cmd_ecode:  Removed; no longer used.

&do_cmd_url:  Make sure the tilde gets treated right for the browsers.

&replace_verbatim:  Be sure we always have a leading vertical space.

27 years agoAdd back some safeguards on the index elements that were lost in the
Guido van Rossum [Wed, 25 Feb 1998 17:50:03 +0000 (17:50 +0000)]
Add back some safeguards on the index elements that were lost in the
last patch.  Dave Ascher found a case that dumps core without these:

def myComparison(x,y):
    return cmp(x%3,y%7)

z = range(12)
z.sort(myComparison)

27 years ago(py-execute-region): Simplified calculation of temporary file name.
Barry Warsaw [Wed, 25 Feb 1998 16:45:43 +0000 (16:45 +0000)]
(py-execute-region): Simplified calculation of temporary file name.
When running synchronously in a subproc buffer, be sure to
pop-to-buffer so the output is visible.

27 years ago(py-temp-directory): Minor docstring nit.
Barry Warsaw [Wed, 25 Feb 1998 16:33:56 +0000 (16:33 +0000)]
(py-temp-directory): Minor docstring nit.

27 years agoTweak the tb_lineno() function to be compatible with JPython, which
Guido van Rossum [Wed, 25 Feb 1998 16:33:39 +0000 (16:33 +0000)]
Tweak the tb_lineno() function to be compatible with JPython, which
has no line number table etc.

27 years ago(py-master-file): Fixed some typos in the docstring.
Barry Warsaw [Wed, 25 Feb 1998 15:57:47 +0000 (15:57 +0000)]
(py-master-file): Fixed some typos in the docstring.

27 years agoMake sure the ']' in the content of the \item[] isn't used as the ending ']'.
Fred Drake [Wed, 25 Feb 1998 15:48:16 +0000 (15:48 +0000)]
Make sure the ']' in the content of the \item[] isn't used as the ending ']'.

27 years agoSupport for sound input added. The interface is even worse than the
Jack Jansen [Wed, 25 Feb 1998 15:47:51 +0000 (15:47 +0000)]
Support for sound input added. The interface is even worse than the
sound-output interface, so this needs a Python wrapper shortly.

27 years agoRegenerated because of confusion with Style/StyleParameter and
Jack Jansen [Wed, 25 Feb 1998 15:46:50 +0000 (15:46 +0000)]
Regenerated because of confusion with Style/StyleParameter and
Char/CharParameter

27 years agoRegerated: Style and StyleParameter are different beasts
Jack Jansen [Wed, 25 Feb 1998 15:45:21 +0000 (15:45 +0000)]
Regerated: Style and StyleParameter are different beasts

27 years agoOops, this wasn't checked in yet: part of the AE structure for the new
Jack Jansen [Wed, 25 Feb 1998 15:44:38 +0000 (15:44 +0000)]
Oops, this wasn't checked in yet: part of the AE structure for the new
universal headers.

27 years agoModule to use Mac serial port as a communication link
Jack Jansen [Wed, 25 Feb 1998 15:43:57 +0000 (15:43 +0000)]
Module to use Mac serial port as a communication link

27 years agoHelper routines to create standalone Python applications.
Jack Jansen [Wed, 25 Feb 1998 15:42:48 +0000 (15:42 +0000)]
Helper routines to create standalone Python applications.

27 years agoHack to get at string buffer address changed
Jack Jansen [Wed, 25 Feb 1998 15:42:03 +0000 (15:42 +0000)]
Hack to get at string buffer address changed

27 years agoHelper file for version-checking
Jack Jansen [Wed, 25 Feb 1998 15:41:24 +0000 (15:41 +0000)]
Helper file for version-checking

27 years agoAdded (minimal) documentation on how to build standalone applications
Jack Jansen [Wed, 25 Feb 1998 15:40:35 +0000 (15:40 +0000)]
Added (minimal) documentation on how to build standalone applications
with Python.

Updated various things (versions of libraries used, urls).

27 years agoPyFile_FromFile() description: make sure the closing brace for the arguments
Fred Drake [Wed, 25 Feb 1998 15:40:22 +0000 (15:40 +0000)]
PyFile_FromFile() description:  make sure the closing brace for the arguments
comes after the arguments are complete.

27 years agoDerive the name of the modules .ind from the jobname.
Fred Drake [Wed, 25 Feb 1998 15:31:20 +0000 (15:31 +0000)]
Derive the name of the modules .ind from the jobname.

27 years agoChange quoting of the "echo" commands yet again.... why can't shells agree?
Fred Drake [Wed, 25 Feb 1998 15:30:47 +0000 (15:30 +0000)]
Change quoting of the "echo" commands yet again.... why can't shells agree?

Derive the name of the modules .idx from the jobname.

27 years agoMake this work better with a4 paper.
Fred Drake [Wed, 25 Feb 1998 15:29:43 +0000 (15:29 +0000)]
Make this work better with a4 paper.

Make the table of contents "hot" for PDF output.  No additional packages are
needed.

Move code for \b@code, \e@code into the macros for the verbatim environment
directly since they're not used elsewhere.

Derive the name of the modules .idx from the jobname.

Some clean ups.

27 years agoTypo: baseWidht -> baseWidth.
Guido van Rossum [Tue, 24 Feb 1998 23:26:18 +0000 (23:26 +0000)]
Typo: baseWidht -> baseWidth.

27 years agoLogical markup.
Fred Drake [Tue, 24 Feb 1998 21:43:05 +0000 (21:43 +0000)]
Logical markup.

27 years agoAdd support for hyperref package. This builds the PDF outline, makes the ToC
Fred Drake [Mon, 23 Feb 1998 21:37:27 +0000 (21:37 +0000)]
Add support for hyperref package.  This builds the PDF outline, makes the ToC
and index "hot", etc.

Updated a comment about fncychap.

Removed unused minitoc support; I'm not going to use it.  Something that makes
more sense with the Python lib ref can be done with reasonable effort, and can
wait a little while.

27 years agoclean: Remove *.out (hyperref's internal files for building outlines for PDF).
Fred Drake [Mon, 23 Feb 1998 21:34:26 +0000 (21:34 +0000)]
clean:  Remove *.out (hyperref's internal files for building outlines for PDF).

27 years agoIgnore hyperref's *.out files (used in building outlines for PDF).
Fred Drake [Mon, 23 Feb 1998 21:33:43 +0000 (21:33 +0000)]
Ignore hyperref's *.out files (used in building outlines for PDF).

27 years agoChange quoting a little bit to avoid problems building it at CNRI.
Fred Drake [Mon, 23 Feb 1998 21:32:18 +0000 (21:32 +0000)]
Change quoting a little bit to avoid problems building it at CNRI.

27 years agoClean up some stuff in the {seealso} at the end. This avoids a little nit
Fred Drake [Mon, 23 Feb 1998 21:31:24 +0000 (21:31 +0000)]
Clean up some stuff in the {seealso} at the end.  This avoids a little nit
(which causes processing to fail) when using the LaTeX hyperref package.

27 years agoPatches from Jack for new Apple headers
Guido van Rossum [Mon, 23 Feb 1998 15:30:44 +0000 (15:30 +0000)]
Patches from Jack for new Apple headers

27 years agoMarked the unmarked AttributeError. (AMK)
Fred Drake [Mon, 23 Feb 1998 14:42:00 +0000 (14:42 +0000)]
Marked the unmarked AttributeError.  (AMK)

"Protect the class instance" --> "Protect the object"  It works for anything
with attributes to look up!  (AMK)

Logical markup.

27 years ago"streans" --> "streams" (AMK)
Fred Drake [Mon, 23 Feb 1998 14:37:40 +0000 (14:37 +0000)]
"streans" --> "streams" (AMK)

27 years agoAdd a period to "Written by James Roskind"
Fred Drake [Sun, 22 Feb 1998 20:42:11 +0000 (20:42 +0000)]
Add a period to "Written by James Roskind"

27 years agoChanged way *.ind are forced to exist; the files are now reset to contain
Fred Drake [Sun, 22 Feb 1998 19:47:13 +0000 (19:47 +0000)]
Changed way *.ind are forced to exist; the files are now reset to contain
an empty index instead of touched.  Note that for modindex.ind, this also
includes "\label{modindex}" so that the modindex.py script doesn't change
the set of labels in the document.

Be more consistent in use of $* in commands.

27 years agoFixed and extended the example; the original example contained some
Guido van Rossum [Sun, 22 Feb 1998 04:41:51 +0000 (04:41 +0000)]
Fixed and extended the example; the original example contained some
bogus code.

27 years agoAdd slightly more explicit warning about running "make clean" when
Guido van Rossum [Sun, 22 Feb 1998 04:36:34 +0000 (04:36 +0000)]
Add slightly more explicit warning about running "make clean" when
changing the --with-thread option.  I'm doubtful this will help
though...

27 years agoAdded two subsections with extra hints and details, even for
Guido van Rossum [Sun, 22 Feb 1998 04:23:51 +0000 (04:23 +0000)]
Added two subsections with extra hints and details, even for
extensions and embedding programs.

27 years agoAdapt to new webchecker structure. Due to better structure of
Guido van Rossum [Sat, 21 Feb 1998 20:08:39 +0000 (20:08 +0000)]
Adapt to new webchecker structure.  Due to better structure of
getpage(), much less duplicate code is needed -- we only need to
override readhtml().

27 years agoMajor overhaul. Don't use global variable (e.g. verbose); use
Guido van Rossum [Sat, 21 Feb 1998 20:02:09 +0000 (20:02 +0000)]
Major overhaul.  Don't use global variable (e.g. verbose); use
instance variables.  Make all global functions methods, for easy
overriding.  Restructure getpage() for easy overriding.  Add
save_pickle() method and load_pickle() global function to make it
easier for other programs to emulate the toplevel interface.

27 years agoThe list of module descriptions should be a {description} environment, not
Fred Drake [Sat, 21 Feb 1998 06:30:17 +0000 (06:30 +0000)]
The list of module descriptions should be a {description} environment, not
{itemize}!

27 years agoRemoved two items, correct one spelling error.
Fred Drake [Fri, 20 Feb 1998 21:55:10 +0000 (21:55 +0000)]
Removed two items, correct one spelling error.

27 years agoA bug in PCRE could cause core dumps in patterns such as
Guido van Rossum [Fri, 20 Feb 1998 21:45:14 +0000 (21:45 +0000)]
A bug in PCRE could cause core dumps in patterns such as
'((a)*)*'. Andrew Kuchling posted a fix to the string-sig.

27 years agoDefault button on main window wasn't set correctly
Jack Jansen [Fri, 20 Feb 1998 16:08:47 +0000 (16:08 +0000)]
Default button on main window wasn't set correctly

27 years agoAdded some debug prints (if enabled by setting DEBUG)
Jack Jansen [Fri, 20 Feb 1998 16:08:19 +0000 (16:08 +0000)]
Added some debug prints (if enabled by setting DEBUG)

27 years agoBuildApplet will now also update old applets
Jack Jansen [Fri, 20 Feb 1998 16:06:56 +0000 (16:06 +0000)]
BuildApplet will now also update old applets

27 years agoCurrent ("1.5b4") projects, with new UH toolbox modules and such
Jack Jansen [Fri, 20 Feb 1998 16:05:24 +0000 (16:05 +0000)]
Current ("1.5b4") projects, with new UH toolbox modules and such

27 years agoUSE_PRECOMPILED_HEADERS renamed to MSL_USE_PRECOMPILED_HEADERS
Jack Jansen [Fri, 20 Feb 1998 16:04:01 +0000 (16:04 +0000)]
USE_PRECOMPILED_HEADERS renamed to MSL_USE_PRECOMPILED_HEADERS

27 years ago- Universal Headers 3 mods
Jack Jansen [Fri, 20 Feb 1998 16:03:15 +0000 (16:03 +0000)]
- Universal Headers 3 mods
- Started on menubar-restore code (but it still doesn't work 100%)

27 years agoRegenerated from Universal Headers 3.0.1. Some new calls are
Jack Jansen [Fri, 20 Feb 1998 16:02:09 +0000 (16:02 +0000)]
Regenerated from Universal Headers 3.0.1. Some new calls are
blacklisted, because they are not available in classic 68k programs,
and bgen doesn't have a way to put #ifdef/#endif in the generated
code. For now we only implement calls that work on all three models.

27 years agoFixed double-dispose of splash() dialog
Jack Jansen [Fri, 20 Feb 1998 15:59:59 +0000 (15:59 +0000)]
Fixed double-dispose of splash() dialog

27 years agoUpdated for Waste 1.3
Jack Jansen [Fri, 20 Feb 1998 15:57:30 +0000 (15:57 +0000)]
Updated for Waste 1.3

27 years agoAdd fstat() if using GUSI
Jack Jansen [Fri, 20 Feb 1998 15:56:19 +0000 (15:56 +0000)]
Add fstat() if using GUSI

27 years agoUniversal Headers 3
Jack Jansen [Fri, 20 Feb 1998 15:55:53 +0000 (15:55 +0000)]
Universal Headers 3

27 years agoUpdated to Universal Headers 3 constant names
Jack Jansen [Fri, 20 Feb 1998 15:55:30 +0000 (15:55 +0000)]
Updated to Universal Headers 3 constant names

27 years agoRegenerated from Universal Headers 3.0.1 (which are changed
Jack Jansen [Fri, 20 Feb 1998 15:54:44 +0000 (15:54 +0000)]
Regenerated from Universal Headers 3.0.1 (which are changed
substantially from previous releases)

27 years agoUpdated to Waste 1.3
Jack Jansen [Fri, 20 Feb 1998 15:53:58 +0000 (15:53 +0000)]
Updated to Waste 1.3

27 years agoBreak circular reference on menus upon cleanup
Jack Jansen [Fri, 20 Feb 1998 15:51:39 +0000 (15:51 +0000)]
Break circular reference on menus upon cleanup

27 years agoAdded CHECK_IMPORT_CASE
Jack Jansen [Fri, 20 Feb 1998 15:50:23 +0000 (15:50 +0000)]
Added CHECK_IMPORT_CASE
Added HAVE_HYPOT, except for 68k (where you get 10-byte-float hypot,
sigh...)

27 years agoRemoved incorrect weMonoStyled from initialization
Jack Jansen [Fri, 20 Feb 1998 15:48:57 +0000 (15:48 +0000)]
Removed incorrect weMonoStyled from initialization

27 years agoFixed bug in explanation of how to run test.autotest, and warned for
Jack Jansen [Fri, 20 Feb 1998 15:46:35 +0000 (15:46 +0000)]
Fixed bug in explanation of how to run test.autotest, and warned for
out-of-memory condition

27 years agoTell TeX about a pathological hyphenation case (BaseHTTPRequestHandler).
Fred Drake [Fri, 20 Feb 1998 06:08:07 +0000 (06:08 +0000)]
Tell TeX about a pathological hyphenation case (BaseHTTPRequestHandler).

27 years agoAdded \label{}s for logical addressing.
Fred Drake [Fri, 20 Feb 1998 06:03:52 +0000 (06:03 +0000)]
Added \label{}s for logical addressing.

Logical markup.

27 years agoAdded \label{}s for logical addressing.
Fred Drake [Fri, 20 Feb 1998 05:49:37 +0000 (05:49 +0000)]
Added \label{}s for logical addressing.

27 years agoFixed typo reported by Vladimir Marangozov <Vladimir.Marangozov@imag.fr>.
Fred Drake [Fri, 20 Feb 1998 00:45:52 +0000 (00:45 +0000)]
Fixed typo reported by Vladimir Marangozov <Vladimir.Marangozov@imag.fr>.

27 years agoDon't ignore makeinfo errors.
Fred Drake [Thu, 19 Feb 1998 21:40:51 +0000 (21:40 +0000)]
Don't ignore makeinfo errors.

27 years agoClean up name->name conversion a little, *make sure it happens in all the
Fred Drake [Thu, 19 Feb 1998 21:40:22 +0000 (21:40 +0000)]
Clean up name->name conversion a little, *make sure it happens in all the
right places*!

27 years agoRevert to the old (indented) form of @DGUX_IS_BROKEN@.
Guido van Rossum [Thu, 19 Feb 1998 21:33:13 +0000 (21:33 +0000)]
Revert to the old (indented) form of @DGUX_IS_BROKEN@.

27 years agoDifferent way to suppores the DGUX rule
Guido van Rossum [Thu, 19 Feb 1998 21:32:40 +0000 (21:32 +0000)]
Different way to suppores the DGUX rule

27 years agoChange default RCS bin directory to /usr/local/bin/.
Guido van Rossum [Thu, 19 Feb 1998 21:29:38 +0000 (21:29 +0000)]
Change default RCS bin directory to /usr/local/bin/.

27 years agoDelete the 'exit' command from the Tcl interpreter -- it would allow
Guido van Rossum [Thu, 19 Feb 1998 21:28:49 +0000 (21:28 +0000)]
Delete the 'exit' command from the Tcl interpreter -- it would allow
users to exit Python without the normal precautions.  (The can do this
using os._exit() anyway, but at least that's documented.)

27 years agoFix bug in trace_vdelete(); should use master's delete command.
Guido van Rossum [Thu, 19 Feb 1998 21:20:30 +0000 (21:20 +0000)]
Fix bug in trace_vdelete(); should use master's delete command.

27 years agoAdded debug statements to report data actually sent and received on
Guido van Rossum [Thu, 19 Feb 1998 21:19:48 +0000 (21:19 +0000)]
Added debug statements to report data actually sent and received on
the socket.

27 years agoFix for literal null bytes -- these must be replaced by the four
Guido van Rossum [Thu, 19 Feb 1998 21:18:56 +0000 (21:18 +0000)]
Fix for literal null bytes -- these must be replaced by the four
characters \, 0, 0, 0.

27 years agoFixed a bug in the gauss() function. The bug was reported by Mike
Guido van Rossum [Thu, 19 Feb 1998 21:17:42 +0000 (21:17 +0000)]
Fixed a bug in the gauss() function.  The bug was reported by Mike
Miller, who complained that its kurtosis was bad, and then fixed by
Lambert Meertens (author of the original algorithm) who discovered
that the mathematical analysis leading to his solution was wrong, and
provided a corrected version.  Mike then tested the fix and reported
that the kurtosis was now good.

27 years agoAdd rmd() (remove directory command); fix comment in parse257.
Guido van Rossum [Thu, 19 Feb 1998 21:15:44 +0000 (21:15 +0000)]
Add rmd() (remove directory command); fix comment in parse257.

In login(), force passwd and acct to '' when they are None (this can
happen in the test program!).

27 years agoFaster implementation of normcase (using string.lower(
Guido van Rossum [Thu, 19 Feb 1998 21:08:36 +0000 (21:08 +0000)]
Faster implementation of normcase (using string.lower(
string.replace(...)) instead of a for loop).

Don't call normcase() in normpath() -- the filesystem just might be
case preserving...

27 years agoJeff Kunce writes (and he is right):
Guido van Rossum [Thu, 19 Feb 1998 21:02:32 +0000 (21:02 +0000)]
Jeff Kunce writes (and he is right):

Also, I just ran across a [possible] minor glitch
in the library documentation for site.py. It says:

"For example, suppose sys.prefix and
sys.exec_prefix are set to `/usr/local'. The
Python 1.5 library is then installed in
`/usr/local/lib/python1.5'. Suppose this has a
subdirectory `/usr/local/python1.5/site-packages'
with three subsubdirectories, `foo', `bar' and
`spam'..."

I think it should be:
"...Suppose this has a subdirectory
`/usr/local/lib/python1.5/site-packages' with..."
          ^^^^

27 years agoRevise comment about the {fulllineitems} environment to be accurate.
Fred Drake [Thu, 19 Feb 1998 21:02:26 +0000 (21:02 +0000)]
Revise comment about the {fulllineitems} environment to be accurate.

27 years agoFix some outdated comments (mostly by removing a large comment block
Guido van Rossum [Thu, 19 Feb 1998 21:00:45 +0000 (21:00 +0000)]
Fix some outdated comments (mostly by removing a large comment block
that was only causing confusing).  Add free(userpath) and
free(machinepath) statements to prevent some leaks.

27 years agoImprove support for logical node names.
Fred Drake [Thu, 19 Feb 1998 21:00:41 +0000 (21:00 +0000)]
Improve support for logical node names.

27 years agoEnable CHECK_IMPORT_CASE on Win32.
Guido van Rossum [Thu, 19 Feb 1998 20:59:23 +0000 (20:59 +0000)]
Enable CHECK_IMPORT_CASE on Win32.

27 years agoAdjusted \label{} for *consistent* logical addressing.
Fred Drake [Thu, 19 Feb 1998 20:59:19 +0000 (20:59 +0000)]
Adjusted \label{} for *consistent* logical addressing.

Logical markup.

27 years agoMoved clear_carefully() to _PyModule_Clear() in moduleobject.c
Guido van Rossum [Thu, 19 Feb 1998 20:58:44 +0000 (20:58 +0000)]
Moved clear_carefully() to _PyModule_Clear() in moduleobject.c
(modified) and use that.

Some differences in the cleanup algorithm:

- Clear __main__ before the other modules.

- Delete more sys variables: including ps1, ps2, exitfunc, argv, and
even path -- this will prevent new imports!

- Restore stdin, stdout, stderr from __stdin__, __stdout__,
__stderr__, effectively deleting hooks that the user might have
installed -- so their (the hooks') destructors will run.

27 years agoMake backup copies of stdin, stdout, stderr as __stdin__, __stdout__,
Guido van Rossum [Thu, 19 Feb 1998 20:53:06 +0000 (20:53 +0000)]
Make backup copies of stdin, stdout, stderr as __stdin__, __stdout__,
__stderr__.  These will be used by the import cleanup.

27 years agoAdd internal routine _PyModule_Clear(), which does approximately what
Guido van Rossum [Thu, 19 Feb 1998 20:51:52 +0000 (20:51 +0000)]
Add internal routine _PyModule_Clear(), which does approximately what
clear_carefully() used to do in import.c.  Differences: leave only
__builtins__ alone in the 2nd pass; and don't clear the dictionary (on
the theory that as long as there are references left to the
dictionary, those might be destructors that might expect __builtins__
to be alive when they run; and __builtins__ can't normally be part of
a cycle).

27 years agoAdded \label{} for logical addressing.
Fred Drake [Thu, 19 Feb 1998 20:50:52 +0000 (20:50 +0000)]
Added \label{} for logical addressing.

27 years agoVladimir Marangozov' performance hack: copy f_builtins from ancestor
Guido van Rossum [Thu, 19 Feb 1998 20:48:26 +0000 (20:48 +0000)]
Vladimir Marangozov' performance hack: copy f_builtins from ancestor
if the globals are the same.

Also, when creating a dummy builtins dictionary, add "None" to it,
just to be kind.

27 years agoCheck ferror(), not errno, for fread() error.
Guido van Rossum [Thu, 19 Feb 1998 20:46:48 +0000 (20:46 +0000)]
Check ferror(), not errno, for fread() error.