Fred Drake [Thu, 8 Mar 2001 22:17:54 +0000 (22:17 +0000)]
Add more font flavors for <var> elements; the previous incarnation caused
some NT/IE5.5 users to see only boxes for these characters. This might be
specific to NT Service Pack 6.
Jack Jansen [Tue, 6 Mar 2001 22:51:00 +0000 (22:51 +0000)]
PythonInterpreterClassic and PythonInterpreterCarbon now have filetype "Atmp". The ConfigurePythonXXX scripts will set this to APPL when copying either of those to PythonInterpreter.
Jack Jansen [Tue, 6 Mar 2001 22:46:25 +0000 (22:46 +0000)]
macostools.copy() now has an optional forcetype flag, which sets the filetype. This is used by various tools to set the type to APPL when copying interpreter template files (Atmp filetype).
Fred Drake [Tue, 6 Mar 2001 07:28:20 +0000 (07:28 +0000)]
Turn "Python Documentation Central" into just "Documentation Central"; some
Web browsers tried to wrap lines in bad ways, so we avoid the problem by
putting fewer words on the page.
Fred Drake [Tue, 6 Mar 2001 07:19:34 +0000 (07:19 +0000)]
Correct typos in Ping's email address.
Remove premature use of negative indexes in string operation examples;
negative indexes have not been explained at that point, and the use of
negative indexes are not necessary for the examples.
Fred Drake [Tue, 6 Mar 2001 05:52:16 +0000 (05:52 +0000)]
Move all knowledge that $(MAINOBJ) is built in the Modules/ directory
into Makefile.pre.in; the configure script will only determine the basename
of the file.
This fixes installation of a Python built using C++, reported by Greg
Wilson.
Fred Drake [Sat, 3 Mar 2001 19:41:55 +0000 (19:41 +0000)]
Be a bit more strict in setting up the export of the C API for this
module; do not attempt to insert the API object into the module dict
if there was an error creating it.
Fred Drake [Sat, 3 Mar 2001 18:08:52 +0000 (18:08 +0000)]
Wrap several more of the constants in #ifdef/#endif for FreeBSD; at least
some fairly recent versions have an anaemic selection of terminal-control
symbols.
Barry Warsaw [Sat, 3 Mar 2001 04:14:21 +0000 (04:14 +0000)]
Added `memtest' target which excludes the quicktest modules plus
test_dl, test___all__, test_fork1, and test_longexp. All these either
take way too long with Insure or crash it.
Fred Drake [Fri, 2 Mar 2001 21:05:58 +0000 (21:05 +0000)]
Revise the scripts I use to update the documentation on the SourceForge
site. These now seem (slightly) more reliable, and easier to work with
since update-docs.sh no longer needs to be installed ahead of time on
my account at SF.
Fred Drake [Fri, 2 Mar 2001 18:15:11 +0000 (18:15 +0000)]
There is no longer a -X option to the interpreter, so remove the comments
on how PyErr_NewException() behaves in that case.
Clarify why an owned reference is kept in an extension module's
variable that refers to the result of PyErr_NewException(); one reader
thought that was a leak.
Jack Jansen [Fri, 2 Mar 2001 16:32:03 +0000 (16:32 +0000)]
Enable FSpResourceFileAlreadyOpen only for Carbon. This is not strictly correct: OS9 InterfaceLib has it, but enabling it will make Python refuse to run on 8.6 and earlier.
Fred Drake [Fri, 2 Mar 2001 16:26:45 +0000 (16:26 +0000)]
Job.build_html(): When formatting HTML into more than one HTML page, and
not doing the \label{foo} --> foo.html transformation (--numeric was
specified on the command line), still look to see if there is an
"About this document..." node and copy that to "about.html", since the
page footers use that as the target.
Fred Drake [Fri, 2 Mar 2001 07:28:03 +0000 (07:28 +0000)]
When not copying a file because the output is up to date, make the message
slightly more brief, and more like the message that an extension will not
be built because the built copy is up to date.
UNIX style fork/execve/wait are not fully compatible with thread
support on BeOS. For Python, that means neither fork() from import
nor import from a fork work reliably. os._execvpe() does the latter,
importing tempfile to set up a tantalizing target for hackers. This
patch replaces both the tempfile name generation and the exec that
uses it, in case we're on BeOS. Need this for
setup:distutils:execvp(); symptoms are random crashes and internal
BeOS error messages about th name, in case we're on BeOS. It's an
issue because setup.py + distutils calls os.execvp(); symptoms are
random crashes during setup.py, and internal BeOS error messages
about thread IDs.
Ka-Ping Yee [Fri, 2 Mar 2001 05:50:34 +0000 (05:50 +0000)]
Make getsourcefile() succeed even if the filename doesn't end in '.py' --
as long as the filename also doesn't end in a suffix that indicates
a binary file (according to the flags in imp.get_suffixes()).
Shrink try...except clauses and replace some of them with explicit checks.
Believe it or not, but "more" on Windows requires "more <file" rather
than "more file". Since tempfilepager() is only used on Windows, it
seems, do this unconditionally -- on Unix, it always invokes something
else.
Made sure that the warnings issued by symtable_check_unoptimized()
(about import * and exec) contain the proper filename and line number,
and are transformed into SyntaxError exceptions with -Werror.
Jeremy Hylton [Thu, 1 Mar 2001 22:59:14 +0000 (22:59 +0000)]
Useful future statement support for the interactive interpreter
(Also remove warning about module-level global decl, because we can't
distinguish from code passed to exec.)
Define PyCompilerFlags type contains a single element,
cf_nested_scopes, that is true if a nested scopes future statement has
been entered at the interactive prompt.
New API functions:
PyNode_CompileFlags()
PyRun_InteractiveOneFlags()
-- same as their non Flags counterparts except that the take an
optional PyCompilerFlags pointer
compile.c: In jcompile() use PyCompilerFlags argument. If
cf_nested_scopes is true, compile code with nested scopes. If it
is false, but the code has a valid future nested scopes statement,
set it to true.
pythonrun.c: Create a new PyCompilerFlags object in
PyRun_InteractiveLoop() and thread it through to
PyRun_InteractiveOneFlags().
Fred Drake [Thu, 1 Mar 2001 21:54:49 +0000 (21:54 +0000)]
Solaris defines VSWTCH instead of VSWTC; carefully make sure both are
defined and export both names.
Solaris also does not define CBAUDEX; it is not clear that CBAUDEXT
(which is defined there) is the same thing, so we only protect against
the lack of CBAUDEX.