]> granicus.if.org Git - python/log
python
24 years agosys.setdefaultencoding() should only be called in case the standard
Marc-André Lemburg [Mon, 18 Sep 2000 11:06:00 +0000 (11:06 +0000)]
sys.setdefaultencoding() should only be called in case the standard
default encoding ("ascii") is changed. This safes quite a few cycles
during startup since the first call to .setdefaultencoding() will
initialize the codec registry and the encodings package.

See python-dev for a discussion (Subject: "[Python-Dev] [comp.lang.python] sys.setdefaultencoding (2.0b1)").

24 years agosatisfy the tabnanny
Jeremy Hylton [Mon, 18 Sep 2000 01:46:01 +0000 (01:46 +0000)]
satisfy the tabnanny

24 years agoCatch up to recent changes in TextFile (spotted by Bastian Kleineidam).
Greg Ward [Mon, 18 Sep 2000 00:41:10 +0000 (00:41 +0000)]
Catch up to recent changes in TextFile (spotted by Bastian Kleineidam).

24 years agoAdded documentation for new functions.
Fred Drake [Sun, 17 Sep 2000 16:10:25 +0000 (16:10 +0000)]
Added documentation for new functions.
Deprecated sequenceIncludes().

Based on patch by Denis S. Otkidach <ods@users.sourceforge.net>,
this closes SourceForge patch #101390.

24 years agoAdd invert() and __invert__() as aliases for inv()/__inv__().
Fred Drake [Sun, 17 Sep 2000 16:09:27 +0000 (16:09 +0000)]
Add invert() and __invert__() as aliases for inv()/__inv__().
Add contains() as alias for __contains__().
Make PyArg_ParseTuple() formats include the function name.

Based on patch by Denis S. Otkidach <ods@users.sourceforge.net>,
this closes SourceForge patch #101390.

24 years agoFix for SF bug 110688: Instance deallocation neglected to account for
Tim Peters [Sun, 17 Sep 2000 14:40:17 +0000 (14:40 +0000)]
Fix for SF bug 110688:  Instance deallocation neglected to account for
that Py_INCREF boosts global _Py_RefTotal when Py_REF_DEBUG is defined
but Py_TRACE_REFS isn't.

There are, IMO, way too many preprocessor gimmicks in use for refcount
debugging (at least 3 distinct true/false symbols, but not all 8 combos
are supported by the code, etc etc), and no coherent documentation of
this stuff -- 'twas too painful to track this one down.

24 years agoFixed to respect 'define_macros' and 'undef_macros' on Extension object.
Greg Ward [Sun, 17 Sep 2000 00:54:58 +0000 (00:54 +0000)]
Fixed to respect 'define_macros' and 'undef_macros' on Extension object.

24 years agoAdded 'expand_makefile_vars()' to (duh) expand make-style variables
Greg Ward [Sun, 17 Sep 2000 00:53:02 +0000 (00:53 +0000)]
Added 'expand_makefile_vars()' to (duh) expand make-style variables
  in a string (gives you something to do with the dictionary returned
  by 'parse_makefile()').
Pulled the regexes in 'parse_makefile()' out -- they're now globals,
  as 'expand_makefile_vars()' needs (two of) them.
Cosmetic tweaks to 'parse_makefile()'.

24 years agoAdded 'read_setup_file()' to read old-style Setup files. Could make life
Greg Ward [Sun, 17 Sep 2000 00:45:18 +0000 (00:45 +0000)]
Added 'read_setup_file()' to read old-style Setup files.  Could make life
  easier for people porting Makefile.pre.in-based extensions to Distutils.
Also loosened argument-checking in Extension constructor to make life
  easier for 'read_setup_file()'.

24 years agoarraymodule: Fix SF bug 113960.
Tim Peters [Sat, 16 Sep 2000 22:31:29 +0000 (22:31 +0000)]
arraymodule:  Fix SF bug 113960.
    reverse() didn't work at all due to bad arg check.
    Fixed that.
    Added Brad Chapman to ACKS file, as the proud new owner of two
        implicitly copyrighted lines of Python source code <wink>.
    Repaired buffer_info's total lack of arg-checking.
    Replaced memmove by memcpy in reverse() guts, as memmove is
        often slower and the memory areas are guaranteed disjoint.
    Replaced poke-and-hope unchecked decl of tmp buffer size by
        assert-checked larger tmp buffer.
    Got rid of inconsistent spaces before open paren in docstrings.
    Added reverse() sanity tests to test_array.py.

24 years agoAllow this script to act like a module by only calling main() if
Barry Warsaw [Sat, 16 Sep 2000 22:09:51 +0000 (22:09 +0000)]
Allow this script to act like a module by only calling main() if
__name__ == '__main__'.  Closes SF bug #110844.

24 years agoMake the <body> tag match those of the generated HTML; rely on the style
Fred Drake [Sat, 16 Sep 2000 21:31:33 +0000 (21:31 +0000)]
Make the <body> tag match those of the generated HTML; rely on the style
sheet instead of encoding anything there.

24 years agoDocument \cfuncdesc, \ctypedesc, and \cvardesc.
Fred Drake [Sat, 16 Sep 2000 21:23:25 +0000 (21:23 +0000)]
Document \cfuncdesc, \ctypedesc, and \cvardesc.

24 years agoImprove the test output a bit.
Guido van Rossum [Sat, 16 Sep 2000 21:16:01 +0000 (21:16 +0000)]
Improve the test output a bit.

24 years agoPush more of the display control into the style sheet.
Fred Drake [Sat, 16 Sep 2000 20:40:44 +0000 (20:40 +0000)]
Push more of the display control into the style sheet.

24 years agoChanged so lines that are all comment (or just whitespace + comment)
Greg Ward [Sat, 16 Sep 2000 18:33:36 +0000 (18:33 +0000)]
Changed so lines that are all comment (or just whitespace + comment)
are completely skipped, rather than being treated as blank lines
(and then subject to the 'skip_blanks' flag).  This allows us
to process old-style Setup files, which rely on
  hello \\
  # boo!
  there
coming out as "hello there".

24 years agoAndrew Kuchling:
Greg Ward [Sat, 16 Sep 2000 18:09:22 +0000 (18:09 +0000)]
Andrew Kuchling:
Fixed precendence bug that meant setting skip_blanks to false didn't work
under some circumstances.

24 years ago[change from 2000/08/11, propagating now to distutils copy]
Greg Ward [Sat, 16 Sep 2000 18:06:31 +0000 (18:06 +0000)]
[change from 2000/08/11, propagating now to distutils copy]
Factored the guts of 'warn()' out to 'gen_error()', and added the
'error()' method (trivial thanks to the refactoring).

24 years ago[change from 2000/04/17, propagating now to distutils copy]
Greg Ward [Sat, 16 Sep 2000 18:04:55 +0000 (18:04 +0000)]
[change from 2000/04/17, propagating now to distutils copy]
Dropped the 'collapse_ws' option and replaced it with 'collapse_join' --
it's *much* faster (no 're.sub()') and this is the reason I really added
'collapse_ws', ie. to remove leading whitespace from a line being joined
to the previous line.

24 years agoUse PyOS_setsig() instead of directly calling signal() or sigaction().
Guido van Rossum [Sat, 16 Sep 2000 16:37:53 +0000 (16:37 +0000)]
Use PyOS_setsig() instead of directly calling signal() or sigaction().

This fixes the first half of bug #110611: the immediate exit when ^C
is hit when readline and threads are configured.

Also added a new module variable, readline.library_version.

24 years agoUse typedef PyOS_sighandler_t and APIs PyOS_getsig() and
Guido van Rossum [Sat, 16 Sep 2000 16:35:28 +0000 (16:35 +0000)]
Use typedef PyOS_sighandler_t and APIs PyOS_getsig() and
PyOS_setsig(), instead of directly calling signal() or sigaction().

This fixes the second half of bug #110611: the mysterious ignoring of
the first ^C when readline isn't used.

24 years agoAdd PyOS_getsig() and PyOS_setsig() -- wrappers around signal() or
Guido van Rossum [Sat, 16 Sep 2000 16:32:19 +0000 (16:32 +0000)]
Add PyOS_getsig() and PyOS_setsig() -- wrappers around signal() or
sigaction() (if HAVE_SIGACTION is defined).

24 years agoAdd typedef PyOS_sighandler_t and prototypes for PyOS_getsig() and
Guido van Rossum [Sat, 16 Sep 2000 16:31:31 +0000 (16:31 +0000)]
Add typedef PyOS_sighandler_t and prototypes for PyOS_getsig() and
PyOS_setsig().

24 years agoDocument new APIs PyOS_getsig() and PyOS_setsig().
Guido van Rossum [Sat, 16 Sep 2000 16:30:48 +0000 (16:30 +0000)]
Document new APIs PyOS_getsig() and PyOS_setsig().
(Is there no macro to document a typedef?)

Fred, please check my latex!

24 years agoRene Liebscher: if we have to run the same sub-command multiple times
Greg Ward [Sat, 16 Sep 2000 16:04:59 +0000 (16:04 +0000)]
Rene Liebscher: if we have to run the same sub-command multiple times
(eg. "bdist_dumb", to generate both ZIP and tar archives in the same
run), tell all but the last run to keep temp files -- this just gets
rid of the need to pseudo-install the same files multiple times.

24 years agoRenamed --keep-tree to --keep-temp.
Greg Ward [Sat, 16 Sep 2000 15:56:32 +0000 (15:56 +0000)]
Renamed --keep-tree to --keep-temp.

24 years agoRenamed --clean to --no-keep-temp and --noclean to --keep-temp.
Greg Ward [Sat, 16 Sep 2000 15:54:18 +0000 (15:54 +0000)]
Renamed --clean to --no-keep-temp and --noclean to --keep-temp.

24 years agoRenamed --keep-tree option to --keep-temp.
Greg Ward [Sat, 16 Sep 2000 15:53:41 +0000 (15:53 +0000)]
Renamed --keep-tree option to --keep-temp.

24 years agoEnsure sub-commands of "install" are reinitialized too.
Greg Ward [Sat, 16 Sep 2000 15:30:47 +0000 (15:30 +0000)]
Ensure sub-commands of "install" are reinitialized too.
Run "install" the right way, by calling 'run_command()'.

24 years agoRemove some debugging output from the last change.
Greg Ward [Sat, 16 Sep 2000 15:27:17 +0000 (15:27 +0000)]
Remove some debugging output from the last change.

24 years agoIn 'reinitialize_subcommand()', pass 'reinit_subcommands' flag on to the
Greg Ward [Sat, 16 Sep 2000 15:25:55 +0000 (15:25 +0000)]
In 'reinitialize_subcommand()', pass 'reinit_subcommands' flag on to the
real implementation in Distribution.

24 years agoGeneralized 'reinitialize_command()' so it can optionally reinitialize
Greg Ward [Sat, 16 Sep 2000 15:23:28 +0000 (15:23 +0000)]
Generalized 'reinitialize_command()' so it can optionally reinitialize
the command's sub-commands as well (off by default).  This is essential if
we want to be be able to run (eg.) "install" twice in one run, as happens
when generating multiple built distributions in one run.

24 years agoAdded the "sub-command" machinery to formalize the notion of "command
Greg Ward [Sat, 16 Sep 2000 15:09:17 +0000 (15:09 +0000)]
Added the "sub-command" machinery to formalize the notion of "command
families" -- eg. install and its brood, build and its brood, and so forth.
Specifically: added the 'sub_commands' class attribute (empty list, sub-
classes must override it) and a comment describing it, and the
'get_sub_commands()' method.

24 years agoFactored the "sub-command" machinery out to Command. Mainly, this
Greg Ward [Sat, 16 Sep 2000 15:06:57 +0000 (15:06 +0000)]
Factored the "sub-command" machinery out to Command.  Mainly, this
meant removing 'get_sub_commands()', and moving the 'sub_commands' class
attribute to the end and restructuring it to conform to the new regime.

24 years agoUse a really ugly hack that depends on output processing by LaTeX2HTML.
Fred Drake [Sat, 16 Sep 2000 14:16:57 +0000 (14:16 +0000)]
Use a really ugly hack that depends on output processing by LaTeX2HTML.
This replaces the tilde character with the string ";SPMtilde;", which
LaTeX2HTML converts to a tilde on output.

24 years agoUpdate URL to unicode.org's FTP site using an HTTP URL to the same
Fred Drake [Sat, 16 Sep 2000 13:46:42 +0000 (13:46 +0000)]
Update URL to unicode.org's FTP site using an HTTP URL to the same
document.

24 years agoUpdate *both* uses of the URL to the zlib home page, and use the version
Fred Drake [Sat, 16 Sep 2000 06:18:26 +0000 (06:18 +0000)]
Update *both* uses of the URL to the zlib home page, and use the version
advertised as the canonical form.

24 years agoUpdate link to the zlib homepage.
Fred Drake [Sat, 16 Sep 2000 05:07:03 +0000 (05:07 +0000)]
Update link to the zlib homepage.

24 years agoUpdate the link to Andrew Kuchling's crypto code.
Fred Drake [Sat, 16 Sep 2000 05:02:24 +0000 (05:02 +0000)]
Update the link to Andrew Kuchling's crypto code.

24 years agoUpdate link to the FIPS PUB 180-1 (PDF is available, but not PostScript).
Fred Drake [Sat, 16 Sep 2000 04:59:33 +0000 (04:59 +0000)]
Update link to the FIPS PUB 180-1 (PDF is available, but not PostScript).

24 years agoUpdate some stale links.
Fred Drake [Sat, 16 Sep 2000 04:21:22 +0000 (04:21 +0000)]
Update some stale links.

24 years agoRepair senseless random.seed docstring (reported on c.l.py).
Tim Peters [Sat, 16 Sep 2000 04:02:48 +0000 (04:02 +0000)]
Repair senseless random.seed docstring (reported on c.l.py).

24 years agoFixed legit gripe from c.l.py that math.fmod docs aren't confusing enough.
Tim Peters [Sat, 16 Sep 2000 03:54:24 +0000 (03:54 +0000)]
Fixed legit gripe from c.l.py that math.fmod docs aren't confusing enough.
FRED, please check my monkey-see-monkey-do Tex fiddling!

24 years agoTweaked the build temp dir names again.
Greg Ward [Sat, 16 Sep 2000 02:06:45 +0000 (02:06 +0000)]
Tweaked the build temp dir names again.

24 years agoTypo fix.
Greg Ward [Sat, 16 Sep 2000 01:59:06 +0000 (01:59 +0000)]
Typo fix.

24 years agoInclude the Python version in the platform-specific build directories:
Greg Ward [Sat, 16 Sep 2000 01:54:46 +0000 (01:54 +0000)]
Include the Python version in the platform-specific build directories:
with the recent change in 'get_platform()', we now have directory names
like "build/lib-1.5-linux-i586".  Idea and original patch by
Rene Liebscher.

24 years agoDocument the directory separatory for include dir and library dir lists.
Greg Ward [Sat, 16 Sep 2000 01:44:45 +0000 (01:44 +0000)]
Document the directory separatory for include dir and library dir lists.

24 years agoThis will eventually evolve into a package that creates CodeWarrior projects from...
Jack Jansen [Fri, 15 Sep 2000 22:44:08 +0000 (22:44 +0000)]
This will eventually evolve into a package that creates CodeWarrior projects from templates (for distutils, and possibly the standard extensions too). For now it generates a correct xml file based on sources/output/expfile, but that is about all.

24 years ago- add a new test
Neil Schemenauer [Fri, 15 Sep 2000 22:32:29 +0000 (22:32 +0000)]
- add a new test
- document some of the tricky tests (hopefully correctly :)

24 years agoFix a link -- there is no starship.python.org!
Fred Drake [Fri, 15 Sep 2000 22:11:24 +0000 (22:11 +0000)]
Fix a link -- there is no starship.python.org!

24 years agoAdd a constant "library" to the module which names the library used,
Fred Drake [Fri, 15 Sep 2000 21:35:14 +0000 (21:35 +0000)]
Add a constant "library" to the module which names the library used,
based on the available headers.

Update comments on the filename extensions used to reflect library
differences.

Added get() and setdefault() methods to the dbm object.

Added docstrings, convert all methods to PyArg_ParseTuple() so that
error messages will have the method names.

24 years agoAdd some comments on the available implementations that this module can
Fred Drake [Fri, 15 Sep 2000 21:31:31 +0000 (21:31 +0000)]
Add some comments on the available implementations that this module can
use.

Change the list of flag values for open() to a table.

Markup consistency nits.

24 years agofix bug #110661 (PR#356) -- accept either & or ; as separator for CGI
Jeremy Hylton [Fri, 15 Sep 2000 20:06:57 +0000 (20:06 +0000)]
fix bug #110661 (PR#356) -- accept either & or ; as separator for CGI
    query string
also some doc string reformatting and use of string methods instead of
    older string.splitfields

24 years agoDon't remove instance objects from the GC container set until we are
Neil Schemenauer [Fri, 15 Sep 2000 18:57:21 +0000 (18:57 +0000)]
Don't remove instance objects from the GC container set until we are
they are dead.  Fixes bug #113812.

24 years agoSome systems need -lucb to compile the mmap module. Add a comment to
Fred Drake [Fri, 15 Sep 2000 18:55:58 +0000 (18:55 +0000)]
Some systems need -lucb to compile the mmap module.  Add a comment to
this effect.

This address one aspect of SourceForge bug #113797.

24 years agoPy_Main(), usage(), usage_mid: Add -h and -V flags to print the usage
Barry Warsaw [Fri, 15 Sep 2000 18:40:42 +0000 (18:40 +0000)]
Py_Main(), usage(), usage_mid: Add -h and -V flags to print the usage
message and Python version number and exit immediately.  Closes patch
#101496.

24 years agoDescribe the -h and -V flags. Closes patch #101496
Barry Warsaw [Fri, 15 Sep 2000 18:39:09 +0000 (18:39 +0000)]
Describe the -h and -V flags.  Closes patch #101496

24 years agoFixed some typos. Removed one obsolete comment.
Paul Prescod [Fri, 15 Sep 2000 18:38:47 +0000 (18:38 +0000)]
Fixed some typos. Removed one obsolete comment.

24 years agoadd cross reference to mimetools module
Skip Montanaro [Fri, 15 Sep 2000 18:20:20 +0000 (18:20 +0000)]
add cross reference to mimetools module

24 years agoRET_SAVE references should be Py_BLOCK_THREADS references
Skip Montanaro [Fri, 15 Sep 2000 18:19:27 +0000 (18:19 +0000)]
RET_SAVE references should be Py_BLOCK_THREADS references

24 years agoFixed bug that disallowed processing instructions before and after
Paul Prescod [Fri, 15 Sep 2000 17:09:19 +0000 (17:09 +0000)]
Fixed bug that disallowed processing instructions before and after
document element.

24 years agoFix for bug #113693: with the changes to the IMPORT_FROM opcodes, this
Guido van Rossum [Fri, 15 Sep 2000 16:37:42 +0000 (16:37 +0000)]
Fix for bug #113693: with the changes to the IMPORT_FROM opcodes, this
crashed on an assert.

24 years agoInclude the filename in the errror message for F5 without saving.
Guido van Rossum [Fri, 15 Sep 2000 15:45:57 +0000 (15:45 +0000)]
Include the filename in the errror message for F5 without saving.

This closes bug #110660.

24 years agoUpdate comments in the second paragraph, discussing versioning issues
Fred Drake [Fri, 15 Sep 2000 15:19:35 +0000 (15:19 +0000)]
Update comments in the second paragraph, discussing versioning issues
related to the BSD DB library.  Based on comments from Mark Summerfield
<summer@netcraft.com>.

24 years agoFix Bug #114293:
Jeremy Hylton [Fri, 15 Sep 2000 15:14:51 +0000 (15:14 +0000)]
Fix Bug #114293:
    Strings are unpickled by calling eval on the string's repr. This
    change makes pickle work like cPickle; it checks if the pickled
    string is safe to eval and raises ValueError if it is not.

test suite modifications:
    Verify that pickle catches a variety of insecure string pickles
    Make test_pickle and test_cpickle use exactly the same test suite
    Add test for pickling recursive object

24 years agoRead a QuickTime movie and return the frames.
Jack Jansen [Fri, 15 Sep 2000 13:43:46 +0000 (13:43 +0000)]
Read a QuickTime movie and return the frames.

24 years agoBefore comparing os.uname() to BeOS check that os.uname actually exists:-)
Jack Jansen [Fri, 15 Sep 2000 12:59:46 +0000 (12:59 +0000)]
Before comparing os.uname() to BeOS check that os.uname actually exists:-)

24 years agoFor current directory use os.curdir, not ".".
Jack Jansen [Fri, 15 Sep 2000 12:58:08 +0000 (12:58 +0000)]
For current directory use os.curdir, not ".".

24 years agoAllow am/pm as well as AM/PM (C9X behaviour).
Jack Jansen [Fri, 15 Sep 2000 12:57:35 +0000 (12:57 +0000)]
Allow am/pm as well as AM/PM (C9X behaviour).

24 years agoAdded B format char to Py_BuildValue (same as b,h,i, but makes
Jack Jansen [Fri, 15 Sep 2000 12:52:19 +0000 (12:52 +0000)]
Added B format char to Py_BuildValue (same as b,h,i, but makes
bgen-generated code work).

24 years agoCast UCHAR_MAX to int before doing the comparison for overflow of the
Jack Jansen [Fri, 15 Sep 2000 12:51:01 +0000 (12:51 +0000)]
Cast UCHAR_MAX to int before doing the comparison for overflow of the
B format char.

24 years agoUse symbolic constants for allowable short ranges.
Martin v. Löwis [Fri, 15 Sep 2000 08:10:33 +0000 (08:10 +0000)]
Use symbolic constants for allowable short ranges.

24 years agoCloses SF bug 113894: on Windows, things like os.listdir("k:") and
Tim Peters [Fri, 15 Sep 2000 07:44:49 +0000 (07:44 +0000)]
Closes SF bug 113894:  on Windows, things like os.listdir("k:") and
glob.glob("k:*py") (i.e., a raw drive letter + colon at the start) were
using the root of the drive rather than the expected Windows behavior
of using the drive's "current directory".

24 years agoAdded simple batch file to make running the test suite from the PCbuild
Tim Peters [Fri, 15 Sep 2000 07:36:28 +0000 (07:36 +0000)]
Added simple batch file to make running the test suite from the PCbuild
directory less tedious.

24 years agoCorrectly cast the return value of realloc.
Martin v. Löwis [Fri, 15 Sep 2000 07:32:39 +0000 (07:32 +0000)]
Correctly cast the return value of realloc.

24 years agoCheck range for bytes and shorts. Closes bug #110845.
Martin v. Löwis [Fri, 15 Sep 2000 07:31:57 +0000 (07:31 +0000)]
Check range for bytes and shorts. Closes bug #110845.

24 years agoCorrectly use realloc return value. Fixes bug #114424.
Martin v. Löwis [Fri, 15 Sep 2000 07:07:46 +0000 (07:07 +0000)]
Correctly use realloc return value. Fixes bug #114424.

24 years agoSupport \r in source files. Closes bug #101425.
Martin v. Löwis [Fri, 15 Sep 2000 06:57:26 +0000 (06:57 +0000)]
Support \r in source files. Closes bug #101425.

24 years agoRemoved some debugging prints: When running user configuration code
Fred Drake [Fri, 15 Sep 2000 04:41:22 +0000 (04:41 +0000)]
Removed some debugging prints:  When running user configuration code
from Tk.readprofile(), do not print anything extra to stdout, just run
the code.

24 years agomain(): Move hackery of sys.argv until after the Tk instance has been
Fred Drake [Fri, 15 Sep 2000 04:32:56 +0000 (04:32 +0000)]
main():  Move hackery of sys.argv until after the Tk instance has been
         created.  This allows the application-specific Tkinter
         initialization to be executed if present.  Also pass an explicit
         className parameter to the Tk() constructor.

This closes SourceForge bug #110618.

24 years agoAdd item to the list of limitations that points out the lack of support
Fred Drake [Fri, 15 Sep 2000 04:12:56 +0000 (04:12 +0000)]
Add item to the list of limitations that points out the lack of support
for authenticated proxies.  This is noted elsewhere, but this makes it
easier to find.

Fix typo where it was already mentioned.

This closes SourceForge bug #110619.

24 years agoTrent Mick points out that the BSD DB also provides an ndbm compatibility
Fred Drake [Fri, 15 Sep 2000 03:38:12 +0000 (03:38 +0000)]
Trent Mick points out that the BSD DB also provides an ndbm compatibility
layer.  If that is available, consider that as an option as well.

24 years agoAdded 'warn_dir' option so other code can sneak in and disable
Greg Ward [Fri, 15 Sep 2000 01:21:07 +0000 (01:21 +0000)]
Added 'warn_dir' option so other code can sneak in and disable
the sometimes inappropriate warning about where we're installing data files.

24 years agoAdjust to the new sysconfig regime: use 'get_config_vars()' instead
Greg Ward [Fri, 15 Sep 2000 01:20:10 +0000 (01:20 +0000)]
Adjust to the new sysconfig regime: use 'get_config_vars()' instead
  of globals from sysconfig.
Added 'prefix' and 'exec_prefix' to the list of variables that can be
  expanded in installation directories (preserving the stupid old names
  of 'sys_prefix' and 'sys_exec_prefix, though).

24 years agoAdjust to the new sysconfig regime: use 'get_config_var()' instead
Greg Ward [Fri, 15 Sep 2000 01:19:03 +0000 (01:19 +0000)]
Adjust to the new sysconfig regime: use 'get_config_var()' instead
of globals from sysconfig.

24 years agoRevamped 'get_platform()' to try and do something reasonably smart on
Greg Ward [Fri, 15 Sep 2000 01:16:14 +0000 (01:16 +0000)]
Revamped 'get_platform()' to try and do something reasonably smart on
POSIX platforms, ie. get a little more detail than 'sys.platform' gives.

24 years agoChanged from eager parsing of Makefile (at import time) to lazy: only do
Greg Ward [Fri, 15 Sep 2000 01:15:08 +0000 (01:15 +0000)]
Changed from eager parsing of Makefile (at import time) to lazy: only do
all that work when someone asks for a "configuration variable" from the
Makefile.  Details:
  - added 'get_config_vars()': responsible for calling one of the
    '_init_*()' functions to figure things out for this platform,
    and to provide an interface to the resulting dictionary
  - added 'get_config_var()' as a simple interface to the dictionary
    loaded by 'get_config_vars()'
  - changed the '_init_*()' functions so they load the global dictionary
    '_config_vars', rather than spewing their findings all over
    the module namespace
  - don't delete the '_init_*()' functions when done importing
  - adjusted 'customize_compiler()' to the new regime

24 years agoFixed so 'parse_makefile()' uses the TextFile class to ensure that
Greg Ward [Fri, 15 Sep 2000 00:03:13 +0000 (00:03 +0000)]
Fixed so 'parse_makefile()' uses the TextFile class to ensure that
comments are stripped and lines are joined according to the backslash
convention.

24 years agoBefore running LaTeX2HTML, remove all the HTML files from the output
Fred Drake [Thu, 14 Sep 2000 22:25:47 +0000 (22:25 +0000)]
Before running LaTeX2HTML, remove all the HTML files from the output
directory.  This avoids acretion of HTML from previous runs which may
have a new name; this would have avoided a lot of the packaging problems
related to changing labels from the old distutils documentation.

24 years agoWhen there is a Module Index, make sure the icon actually links to it.
Fred Drake [Thu, 14 Sep 2000 22:20:41 +0000 (22:20 +0000)]
When there is a Module Index, make sure the icon actually links to it.

24 years agoAdd a reference to the sha module, noting that SHA is considered more
Fred Drake [Thu, 14 Sep 2000 21:47:32 +0000 (21:47 +0000)]
Add a reference to the sha module, noting that SHA is considered more
secure.  Suggested by Erno Kuusela <erno@iki.fi>.

24 years agoConvert "See also" section to use \seetitle.
Fred Drake [Thu, 14 Sep 2000 21:46:22 +0000 (21:46 +0000)]
Convert "See also" section to use \seetitle.

24 years agoDid not include the sha module documentation dependency.
Fred Drake [Thu, 14 Sep 2000 21:42:38 +0000 (21:42 +0000)]
Did not include the sha module documentation dependency.

24 years agoAdded a note about gdbm.
Jack Jansen [Thu, 14 Sep 2000 21:02:22 +0000 (21:02 +0000)]
Added a note about gdbm.
Changed the stackless note.

24 years agoAdded a note about getting CarbonLib as a way to get a new Appearance/NavServices...
Jack Jansen [Thu, 14 Sep 2000 20:58:24 +0000 (20:58 +0000)]
Added a note about getting CarbonLib as a way to get a new Appearance/NavServices. Added Luc Lefebvre to the thanks-list.

24 years agoFixes that should make it possible to run Python on machines without NavServices...
Jack Jansen [Thu, 14 Sep 2000 20:47:00 +0000 (20:47 +0000)]
Fixes that should make it possible to run Python on machines without NavServices installed.

24 years agoFixes that should make it possible to run Python on machines without NavServices...
Jack Jansen [Thu, 14 Sep 2000 20:46:19 +0000 (20:46 +0000)]
Fixes that should make it possible to run Python on machines without NavServices installed. Also weak-linked OT libraries so Python can run with extensions disabled.

24 years agoDenis S. Otkidach <ods@users.sourceforge.net>:
Fred Drake [Thu, 14 Sep 2000 20:42:53 +0000 (20:42 +0000)]
Denis S. Otkidach <ods@users.sourceforge.net>:
Minor fix in documentation of code module.
(Clarifies output destination for default implementation of the write()
method.)

24 years agocope with weird Content-Length values returned from servers by
Jeremy Hylton [Thu, 14 Sep 2000 20:34:27 +0000 (20:34 +0000)]
cope with weird Content-Length values returned from servers by
ignoring them; e.g. Zope sometimes returns 13497L

24 years agoRemove reference to the stdwin-based windowed debugger, since stdwin
Fred Drake [Thu, 14 Sep 2000 20:32:17 +0000 (20:32 +0000)]
Remove reference to the stdwin-based windowed debugger, since stdwin
is gone.

Make a module reference into a hyperlink.