]> granicus.if.org Git - python/log
python
24 years agoRemove redundent information from a docstring.
Fred Drake [Mon, 2 Oct 2000 22:11:47 +0000 (22:11 +0000)]
Remove redundent information from a docstring.

24 years agoMinor change to attributes so that the stylesheets can have better control.
Fred Drake [Mon, 2 Oct 2000 21:26:28 +0000 (21:26 +0000)]
Minor change to attributes so that the stylesheets can have better control.

24 years agoRemove comment about -lucb for the mmap module -- the module has been
Fred Drake [Mon, 2 Oct 2000 21:20:22 +0000 (21:20 +0000)]
Remove comment about -lucb for the mmap module -- the module has been
changed so that this is no longer needed on the only platform this is
known to have been needed on.

Fixed on indentation-related consistency nit.

24 years agoDelay import of py_compile until needed, since is is only used by the
Fred Drake [Mon, 2 Oct 2000 21:14:52 +0000 (21:14 +0000)]
Delay import of py_compile until needed, since is is only used by the
PyZipFile class.

End sentences in docstrings with periods.

Reformat docstrings to be more similar to those of other modules.

24 years agoSubstantially revised documentation for the zipfile module, partially based
Fred Drake [Mon, 2 Oct 2000 20:56:30 +0000 (20:56 +0000)]
Substantially revised documentation for the zipfile module, partially based
on revised text from Jim Ahlstrom <jim@interet.com>.

This closes SourceForge bug #115681.

24 years agoMinor stylesheet nit.
Fred Drake [Mon, 2 Oct 2000 17:36:27 +0000 (17:36 +0000)]
Minor stylesheet nit.

24 years agoSupporting rl_library_version is more trouble than it's worth --
Guido van Rossum [Mon, 2 Oct 2000 15:53:08 +0000 (15:53 +0000)]
Supporting rl_library_version is more trouble than it's worth --
readline doesn't have it before readline 2.2 and there's no
compile-time way to find out which readline version is in use.

Sigh.  GNU readline sucks.

24 years agoAdded Daniel Dittmar, for helping get the configuration working for
Fred Drake [Mon, 2 Oct 2000 14:52:31 +0000 (14:52 +0000)]
Added Daniel Dittmar, for helping get the configuration working for
Reliant UNIX.

24 years agomake_icon_filename(): Convenience function to turn a partial filename
Fred Drake [Mon, 2 Oct 2000 14:43:38 +0000 (14:43 +0000)]
make_icon_filename():  Convenience function to turn a partial filename
                       into a usable filename using $ICONSERVER and
                       $IMAGE_TYPE as needed.

get_link_icon():  Function to examine a URL and return the string to use
                  to insert an icon if the link points off-site, if needed
                  and $OFF_SITE_LINK_ICON is set.

Adjusted appropriate places to use these new functions.

24 years agotypo
Jeremy Hylton [Mon, 2 Oct 2000 13:43:33 +0000 (13:43 +0000)]
typo

24 years agoFix a bug in stack overflow error handling. This fixes half of Bug
Guido van Rossum [Mon, 2 Oct 2000 10:21:59 +0000 (10:21 +0000)]
Fix a bug in stack overflow error handling.  This fixes half of Bug
#115555.

The error from s_push() on stack overflow was -1, which was passed
through unchanged by push(), but not tested for by push()'s caller --
which only expected positive error codes.  Fixed by changing s_push()
to return E_NOMEM on stack overflow.  (Not quite the proper error code
either, but I can't be bothered adding a new E_STACKOVERFLOW error
code in all the right places.)

24 years agoMinor usage fix.
Fred Drake [Mon, 2 Oct 2000 03:42:43 +0000 (03:42 +0000)]
Minor usage fix.
Add a note that some way of reliably detecting the use of KDE would be
really nice.

24 years agoDo not set Konquerer to be the default browser if $KDEDIR is set -- some
Fred Drake [Mon, 2 Oct 2000 03:40:51 +0000 (03:40 +0000)]
Do not set Konquerer to be the default browser if $KDEDIR is set -- some
Linux distributions which provide both KDE and Gnome set this environment
variable even if the user is not using KDE.  We do *not* want to start
Konquerer if KDE is not running unless the user actually tells us to!

24 years agoAdd documentation and warnings for the isCallable(), isMappingType(),
Fred Drake [Mon, 2 Oct 2000 03:36:18 +0000 (03:36 +0000)]
Add documentation and warnings for the isCallable(), isMappingType(),
isNumberType(), and isSequenceType() functions.

This closes SourceForge bug #115789.

24 years agoTypo fix.
Greg Ward [Mon, 2 Oct 2000 02:25:51 +0000 (02:25 +0000)]
Typo fix.

24 years agoAdded the ability to do byte-compilation at build time, currently off
Greg Ward [Mon, 2 Oct 2000 02:19:04 +0000 (02:19 +0000)]
Added the ability to do byte-compilation at build time, currently off
by default (since compiling at install time works just fine).  Details:
  - added 'compile' and 'optimize' options
  - added 'byte_compile()' method
  - changed 'get_outputs()' so it includes bytecode files
A lot of the code added is very similar to code in install_lib.py;
would be nice to factor it out further.

24 years agoAdded --compile, --optimize options so users have an easy way to
Greg Ward [Mon, 2 Oct 2000 02:16:04 +0000 (02:16 +0000)]
Added --compile, --optimize options so users have an easy way to
instruct the "install_lib" command from the command-line.

24 years agoFinished the overhaul of byte-compilation options: there's now a 6-way
Greg Ward [Mon, 2 Oct 2000 02:15:08 +0000 (02:15 +0000)]
Finished the overhaul of byte-compilation options: there's now a 6-way
choice between (compile, no-compile) * (optimize=0, optimize=1,
optimize=2).  Details:
  - added --no-compile option to complement --compile, which has
    been there for ages
  - changed --optimize (which never worked) to a value option, which
    expects 0, 1, or 2
  - renamed 'bytecompile()' method to 'byte_compile()', and beefed
    it up to handle both 'compile' and 'optimize' options
  - fix '_bytecode_filenames()' to respect the new options

24 years agoRemove the temporary byte-compilation script when we're done with it.
Greg Ward [Mon, 2 Oct 2000 02:09:55 +0000 (02:09 +0000)]
Remove the temporary byte-compilation script when we're done with it.

24 years agoFrom 'run()', only call 'bytecompile()' if we actually have
Greg Ward [Sun, 1 Oct 2000 23:50:13 +0000 (23:50 +0000)]
From 'run()', only call 'bytecompile()' if we actually have
pure Python modules to compile.

24 years agoTweaked 'byte_compile()' so it silently skips non-Python files, rather than
Greg Ward [Sun, 1 Oct 2000 23:49:30 +0000 (23:49 +0000)]
Tweaked 'byte_compile()' so it silently skips non-Python files, rather than
blowing up.

24 years agoDon't rename Tkinter to Tk; closes bug 115714
Martin v. Löwis [Sun, 1 Oct 2000 17:52:01 +0000 (17:52 +0000)]
Don't rename Tkinter to Tk; closes bug 115714
Subclass Error from Exception.

24 years agomy_getpagesize(): New function; returns the size of a page of memory.
Fred Drake [Sun, 1 Oct 2000 17:50:46 +0000 (17:50 +0000)]
my_getpagesize():  New function; returns the size of a page of memory.
                   Versions are defined for Windows and Unix; the Unix
                   flavor uses sysconf() to get the page size; this avoids
                   the use of getpagesize(), which is deprecated and
                   requires an additional library on some platforms
                   (specifically, Reliant UNIX).

This partially closes SourceForge bug #113797.

24 years agoAdded a zip() test where one of the arguments is an instance whose
Barry Warsaw [Sun, 1 Oct 2000 04:28:43 +0000 (04:28 +0000)]
Added a zip() test where one of the arguments is an instance whose
class has no __getitem__().  This raises an AttributeError.

24 years agoAdd missing "s" from format string.
Fred Drake [Sat, 30 Sep 2000 23:59:04 +0000 (23:59 +0000)]
Add missing "s" from format string.
This closes SourceForge patch #101714.

24 years agoAdded skeletal "Building Extensions: Tips and Tricks" section. This
Greg Ward [Sat, 30 Sep 2000 21:06:40 +0000 (21:06 +0000)]
Added skeletal "Building Extensions: Tips and Tricks" section.  This
is where all the FAQs about extension-building will be answered.

24 years agoReduced the 'bytecompile()' method to a one-line wrapper around
Greg Ward [Sat, 30 Sep 2000 20:39:09 +0000 (20:39 +0000)]
Reduced the 'bytecompile()' method to a one-line wrapper around
'util.byte_compile()'.  Currently just reproduces the existing functionality
-- doesn't use any of the fancy features in the new 'byte_compile()'.

24 years agoAdded 'byte_compile(): an all-singing, all-dancing wrapper around the
Greg Ward [Sat, 30 Sep 2000 20:37:56 +0000 (20:37 +0000)]
Added 'byte_compile(): an all-singing, all-dancing wrapper around the
standard 'py_compile.compile()' function.  Laundry list of features:
  - handles standard Distutils 'force', 'verbose', 'dry_run' flags
  - handles various levels of optimization: can compile directly in
    this interpreter process, or write a temporary script that is
    then executed by a new interpreter with the appropriate flags
  - can rewrite the source filename by stripping an optional prefix
    and preprending an optional base dir.

24 years agoVarious docstring tweaks.
Greg Ward [Sat, 30 Sep 2000 18:49:14 +0000 (18:49 +0000)]
Various docstring tweaks.
Fixed 'subst_vars()' so it actually blows up like the docstring claims
  (and fixed the docstring not to claim it handles ${var}, which it
  doesn't).

24 years agoReformat docstrings.
Greg Ward [Sat, 30 Sep 2000 18:40:42 +0000 (18:40 +0000)]
Reformat docstrings.

24 years agoStandardized whitespace around function calls.
Greg Ward [Sat, 30 Sep 2000 18:27:54 +0000 (18:27 +0000)]
Standardized whitespace around function calls.

24 years agoAndrew Kuchling: changed so the '_path_created' dictionary is keyed on
Greg Ward [Sat, 30 Sep 2000 17:47:17 +0000 (17:47 +0000)]
Andrew Kuchling: changed so the '_path_created' dictionary is keyed on
absolute pathnames; this lets it keep working in the face of chdir'ing
around.

24 years agoFixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
Greg Ward [Sat, 30 Sep 2000 17:35:26 +0000 (17:35 +0000)]
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.

24 years agoExpect a tuple (dest_name, copied) from 'copy_file()'.
Greg Ward [Sat, 30 Sep 2000 17:34:50 +0000 (17:34 +0000)]
Expect a tuple (dest_name, copied) from 'copy_file()'.

24 years agoFix header file usage so that NULL is defined. NULL is needed by
Marc-André Lemburg [Sat, 30 Sep 2000 17:34:31 +0000 (17:34 +0000)]
Fix header file usage so that NULL is defined. NULL is needed by
unicodedata_db.h.

24 years agoChanged 'build_module()' so it returns the result of 'copy_file()'
Greg Ward [Sat, 30 Sep 2000 17:33:05 +0000 (17:33 +0000)]
Changed 'build_module()' so it returns the result of 'copy_file()'
on the module file -- could be useful for subclasses overriding it.

24 years agoChanged 'copy_file()' so it returns a tuple (dest_name, copied) -- hopefully,
Greg Ward [Sat, 30 Sep 2000 17:29:35 +0000 (17:29 +0000)]
Changed 'copy_file()' so it returns a tuple (dest_name, copied) -- hopefully,
this will please everyone (as if that's possible).

24 years agoIn 'get_platform()', handle so-called POSIX systems that don't have
Greg Ward [Sat, 30 Sep 2000 17:09:39 +0000 (17:09 +0000)]
In 'get_platform()', handle so-called POSIX systems that don't have
'uname()' -- specifically NeXTSTEP.

24 years agoChanged to use the 'sub-commands' machinery:
Greg Ward [Sat, 30 Sep 2000 17:08:12 +0000 (17:08 +0000)]
Changed to use the 'sub-commands' machinery:
  - added 'sub_commands' class attr
  - added 'has_*()' predicates referenced by the sub-command list
  - rewrote 'run()' so it's a trivial loop over relevant sub-commands

24 years agoMoved some things around for better organization.
Greg Ward [Sat, 30 Sep 2000 17:05:37 +0000 (17:05 +0000)]
Moved some things around for better organization.

24 years agoFixed spelling of module; closes bug 115712.
Martin v. Löwis [Sat, 30 Sep 2000 17:04:40 +0000 (17:04 +0000)]
Fixed spelling of module; closes bug 115712.

24 years agoAdd mimetools testcase.
Martin v. Löwis [Sat, 30 Sep 2000 17:03:19 +0000 (17:03 +0000)]
Add mimetools testcase.

24 years agoReturn after writing 7bit or 8bit encodings. Closes bug 115712
Martin v. Löwis [Sat, 30 Sep 2000 16:52:45 +0000 (16:52 +0000)]
Return after writing 7bit or 8bit encodings. Closes bug 115712

24 years agoMention in the module's doc string that other functions of the socket API
Martin v. Löwis [Sat, 30 Sep 2000 11:34:30 +0000 (11:34 +0000)]
Mention in the module's doc string that other functions of the socket API
appear as methods on socket objects.

24 years agoReplace to XXX notes to add references with real references.
Fred Drake [Sat, 30 Sep 2000 00:11:45 +0000 (00:11 +0000)]
Replace to XXX notes to add references with real references.

24 years agoAlways use the same name for the exception defined in this module!
Fred Drake [Fri, 29 Sep 2000 20:44:48 +0000 (20:44 +0000)]
Always use the same name for the exception defined in this module!
Error reported via email by Pete Shinners <pete@visionart.com>.

Fixed some indentation inconsistencies.

24 years agoPyModule_AddStringConstant(): Make this static since it isn't used
Fred Drake [Fri, 29 Sep 2000 19:23:29 +0000 (19:23 +0000)]
PyModule_AddStringConstant():  Make this static since it isn't used
                               elsewhere in 1.5.2.

24 years agoRemove unused VERSION #define.
Martin v. Löwis [Fri, 29 Sep 2000 19:05:48 +0000 (19:05 +0000)]
Remove unused VERSION #define.
Add PyModule_AddStringConstant and PyModule_AddObject if version <2.0,
to allow to share this file with PyXML.

24 years agoUse string functions instead of methods to allow sharing this module with PyXML
Martin v. Löwis [Fri, 29 Sep 2000 19:00:40 +0000 (19:00 +0000)]
Use string functions instead of methods to allow sharing this module with PyXML

24 years agoRemove dependency from saxutils when loading xmlreader
Martin v. Löwis [Fri, 29 Sep 2000 18:59:50 +0000 (18:59 +0000)]
Remove dependency from saxutils when loading xmlreader

24 years agoCapitalized an "if" that should have been -- noted by Grant Griffin
Fred Drake [Fri, 29 Sep 2000 17:54:40 +0000 (17:54 +0000)]
Capitalized an "if" that should have been -- noted by Grant Griffin
<grant.griffin@honeywell.com>.

24 years agoAdd a paragraph about an optimization bug in SGI compilers which affects
Fred Drake [Fri, 29 Sep 2000 17:45:05 +0000 (17:45 +0000)]
Add a paragraph about an optimization bug in SGI compilers which affects
complex objects, and explain how to build so that Objects/complexobject.c
is compiled without optimization.

Closing SourceForge bug #110695 as "Won't Fix".

24 years agoReversely --> Conversely
Fred Drake [Fri, 29 Sep 2000 17:31:54 +0000 (17:31 +0000)]
Reversely --> Conversely

This closes SourceForge bug #115673.

24 years agoAdded a missing "is" -- noted by Grant Griffin
Fred Drake [Fri, 29 Sep 2000 17:09:11 +0000 (17:09 +0000)]
Added a missing "is" -- noted by Grant Griffin
<grant.griffin@honeywell.com>.

24 years agoSpelling: internalization --> internationalization
Fred Drake [Fri, 29 Sep 2000 15:17:36 +0000 (15:17 +0000)]
Spelling:  internalization --> internationalization
Fixed displays of the interactive prompt in running text.
These close SourceForge bug #115658.

Also:

Updated discussion of tuple unpacking to reflect the general ability
to unpack any sequence type.  Explained that it is possible to create
tuples which contain mutable values, and noted in the dictionary
section that such tuples cannot be used as keys.

Noted that .pyc and .pyo files can be run directly when provided as
the script parameter to the interpreter, and slightly clarified
comments about using modules with only the byte compiled code.

Removed some XXX comments that are no longer relevant.
Removed commented-out paragraph about __private names being experimental.

Adjusted markup for consistency in some places.

24 years agoRemoved the extra_dirs and path_file metadata options.
Thomas Heller [Fri, 29 Sep 2000 11:36:55 +0000 (11:36 +0000)]
Removed the extra_dirs and path_file metadata options.
They are unneeded: All this stuff is already done by the
install command which is run by bdist_wininst.

One bug has been fixed:
The root of the fake install tree is install.install_purelib,
not install.install_lib!
They are different if the extra_path option is used in
the setup function.

Rebuild after the changes to wininst.exe.

24 years agoos.startfile() documentation, based on text from Tim Peters.
Fred Drake [Fri, 29 Sep 2000 04:15:19 +0000 (04:15 +0000)]
os.startfile() documentation, based on text from Tim Peters.

24 years agoThe 2.0b2 change to write .pyc files in exclusive mode (if possible)
Tim Peters [Fri, 29 Sep 2000 04:03:10 +0000 (04:03 +0000)]
The 2.0b2 change to write .pyc files in exclusive mode (if possible)
unintentionally caused them to get written in text mode under Windows.
As a result, when .pyc files were later read-- in binary mode --the
magic number was always wrong (note that .pyc magic numbers deliberately
include \r and \n characters, so this was "good" breakage, 100% across
all .pyc files, not random corruption in a subset).  Fixed that.

24 years agoUpdate list of extension modules that may be interesting to enable on
Fred Drake [Fri, 29 Sep 2000 00:30:05 +0000 (00:30 +0000)]
Update list of extension modules that may be interesting to enable on
most modern Unix flavors.

The age of this portion of the README was noted in SourceForge bug #115625.

24 years agoClarify that the Tk interface is not enabled by default when building
Fred Drake [Thu, 28 Sep 2000 23:28:30 +0000 (23:28 +0000)]
Clarify that the Tk interface is not enabled by default when building
from sources, not in general.

This closes SourceForge bug #115608.

24 years agoAdd #ifdef's for platforms that don't have the constants POLLRDNORM and
Andrew M. Kuchling [Thu, 28 Sep 2000 21:33:44 +0000 (21:33 +0000)]
Add #ifdef's for platforms that don't have the constants POLLRDNORM and
    friends.  (Modified version of patch #101682 from Neil Schemenauer)

24 years agoFix typo: config.stat --> config.status
Fred Drake [Thu, 28 Sep 2000 20:53:39 +0000 (20:53 +0000)]
Fix typo:  config.stat --> config.status

24 years agoConsistency nits, untabify.
Fred Drake [Thu, 28 Sep 2000 20:41:16 +0000 (20:41 +0000)]
Consistency nits, untabify.

24 years agoUpdated documentation relating to the various flavors of popen[234]()
Fred Drake [Thu, 28 Sep 2000 20:27:51 +0000 (20:27 +0000)]
Updated documentation relating to the various flavors of popen[234]()
for Windows & Unix.

24 years agoRemoved the implib_dir instance variable because it is unused.
Thomas Heller [Thu, 28 Sep 2000 19:28:35 +0000 (19:28 +0000)]
Removed the implib_dir instance variable because it is unused.

Removed get_ext_libname() because it is unused.

Fixed get_libraries() to append an '_d' to the python debug
import library. If MSVC is used, do not add 'pythonxx.lib' to
the list of libraries, because this is handled better
by a pragma in config.h.

This should fix bug #115595, but it needs some more testing.

24 years agopopen4(): Added for Unix.
Fred Drake [Thu, 28 Sep 2000 19:10:56 +0000 (19:10 +0000)]
popen4():  Added for Unix.

Fixed a typo in a docstring.

24 years agopopen4(), class Popen4: popen4() support for Unix.
Fred Drake [Thu, 28 Sep 2000 19:07:53 +0000 (19:07 +0000)]
popen4(), class Popen4:  popen4() support for Unix.

popen2(), popen3():  Reversed order of bufsize and mode parameters to
                     comply with what was here before (Python 1.5.2).

class Popen3:  Factored the __init__() into a more basic initializer and
               a helper method, to allow some re-use by the Popen4 class.
               Use os.dup2() instead of os.dup() to create the proper
               file descriptors in the child process.

This closes SourceForge bug #115330 and partially closes #115353.

24 years agoConvert all entries on sys.path to absolute paths, and also update the
Fred Drake [Thu, 28 Sep 2000 16:52:36 +0000 (16:52 +0000)]
Convert all entries on sys.path to absolute paths, and also update the
__file__ attributes of already-imported modules to be absolute.  This helps
robustify the interpreter against os.chdir() calls from the application.

Only remove setdefaultencoding() from sys if it exists; if this module is
run as a script (since there is a _test() function that gets run), it broke
because the script attempts to remove it again after the import of site
has already done so.  This allows the module to be run as a script again.

makepath():  New function, standardizes all pathname normalization in one
             place.

24 years agoAvoid import of string module; it is only needed for expandvars().
Fred Drake [Thu, 28 Sep 2000 16:25:20 +0000 (16:25 +0000)]
Avoid import of string module; it is only needed for expandvars().

Never assume that os.sep is for the module-specific platform; use the
right separator character directly.
Fix some minor style consistency nits.

24 years agoMinor style nits.
Fred Drake [Thu, 28 Sep 2000 16:22:52 +0000 (16:22 +0000)]
Minor style nits.

24 years agoRemove imports of string when string methods will do.
Fred Drake [Thu, 28 Sep 2000 15:04:39 +0000 (15:04 +0000)]
Remove imports of string when string methods will do.

24 years agoMinor ANSIfication: lib_python no longer needs to be initialized
Fred Drake [Thu, 28 Sep 2000 14:32:29 +0000 (14:32 +0000)]
Minor ANSIfication: lib_python no longer needs to be initialized
dynamically to support K&R C since we are requiring an ANSI compiler.

24 years agoAdd regex and regsub to the list of undocumented obsolete modules.
Fred Drake [Thu, 28 Sep 2000 05:31:39 +0000 (05:31 +0000)]
Add regex and regsub to the list of undocumented obsolete modules.

24 years agoAdded some tests for the truncate() method; one is commented out because
Fred Drake [Thu, 28 Sep 2000 04:25:33 +0000 (04:25 +0000)]
Added some tests for the truncate() method; one is commented out because
cStringIO does not get it right (reported as SF bug #115531).

Added test for ValueError when write() is called on a closed StringIO
object.  Commented out because cStringIO does not get it right
(reported as SF bug #115530).

24 years agoAdd truncate() method to StringIO objects.
Fred Drake [Thu, 28 Sep 2000 04:21:06 +0000 (04:21 +0000)]
Add truncate() method to StringIO objects.

This closes SourceForge bug #115527.

24 years agoRemove change that had not been saved when the output was generated;
Fred Drake [Thu, 28 Sep 2000 04:13:15 +0000 (04:13 +0000)]
Remove change that had not been saved when the output was generated;
not terribly useful.
Reported by Mark Favas <Mark.Favas@per.dem.csiro.au>.

24 years agoFix includes; not including Python.h caused the module not to compile on
Fred Drake [Thu, 28 Sep 2000 02:54:51 +0000 (02:54 +0000)]
Fix includes; not including Python.h caused the module not to compile on
some platforms.

This *should* close SourceForge patch #115506.

24 years agoUpdate the documentation for ConfigParser to match the recent changes.
Fred Drake [Wed, 27 Sep 2000 22:48:44 +0000 (22:48 +0000)]
Update the documentation for ConfigParser to match the recent changes.

24 years agoRegression test for ConfigParser module.
Fred Drake [Wed, 27 Sep 2000 22:45:25 +0000 (22:45 +0000)]
Regression test for ConfigParser module.

24 years agoAllow spaces in section names.
Fred Drake [Wed, 27 Sep 2000 22:43:54 +0000 (22:43 +0000)]
Allow spaces in section names.
Do not expose the __name__ when reporting the list of options available
for a section since that is for internal use.

This closes SourceForge bug #115357.

Additionally, define InterpolationDepthError and MAX_INTERPOLATION_DEPTH.
The exception is raised by get*() when value interpolation cannot be
completed within the defined recursion limit.  The constant is only
informative; changing it will not affect the allowed depth.

Fix the exit from get() so that None is not returned if the depth is met
or exceeded; either return the value of raise InterpolationDepthError.

24 years agoFix buffer overflow vulnerabilities in calculate_path(). Code used
Jeremy Hylton [Wed, 27 Sep 2000 20:51:17 +0000 (20:51 +0000)]
Fix buffer overflow vulnerabilities in calculate_path().  Code used
copied strings from environment variables and argv[0] into
fixed-length buffers without checking their length.

Reported by Stan Bubrouski; advice on fix from John Viega.

24 years agoUpdated hash values to match the new encoding (UTF-8) used in the test.
Marc-André Lemburg [Wed, 27 Sep 2000 12:25:14 +0000 (12:25 +0000)]
Updated hash values to match the new encoding (UTF-8) used in the test.

24 years agoFixed encoding to use an endianness independent format.
Marc-André Lemburg [Wed, 27 Sep 2000 12:24:34 +0000 (12:24 +0000)]
Fixed encoding to use an endianness independent format.

24 years agoFixed misleading qname in test_xmlgen_ns (reported by loewis).
Lars Gustäbel [Wed, 27 Sep 2000 08:12:17 +0000 (08:12 +0000)]
Fixed misleading qname in test_xmlgen_ns (reported by loewis).

24 years agoFix double negative spotted by matt@mondoinfo.com
Andrew M. Kuchling [Wed, 27 Sep 2000 02:49:24 +0000 (02:49 +0000)]
Fix double negative spotted by matt@mondoinfo.com

24 years agoAdded a section describing the new development process. Part of it
Andrew M. Kuchling [Wed, 27 Sep 2000 02:36:10 +0000 (02:36 +0000)]
Added a section describing the  new development process.  Part of it
   comes from two comp.lang.tcl postings of mine, with much rewriting
   and expansion of the material.
Note that 2.0 will be released in the autumn, not the summer.

24 years agoBump version to 1.0pre.
Greg Ward [Wed, 27 Sep 2000 02:26:57 +0000 (02:26 +0000)]
Bump version to 1.0pre.

24 years agoRemove deprecation warnings on old 'link_*()' methods, ie. they're not
Greg Ward [Wed, 27 Sep 2000 02:24:21 +0000 (02:24 +0000)]
Remove deprecation warnings on old 'link_*()' methods, ie. they're not
deprecated after all.  But now they're only implemented once, instead
of N times.

24 years agoBig patch from Rene Liebscher to simplify the CCompiler API and
Greg Ward [Wed, 27 Sep 2000 02:08:14 +0000 (02:08 +0000)]
Big patch from Rene Liebscher to simplify the CCompiler API and
implementations.  Details:
  * replace 'link_shared_object()', 'link_shared_lib()', and
    'link_executable()' with 'link()', which is (roughly)
    the union of the three methods it replaces
  * in all implementation classes (UnixCCompiler, MSVCCompiler, etc.),
    ditch the old 'link_*()' methods and replace them with 'link()'
  * in the abstract base class (CCompiler), add the old 'link_*()'
    methods as wrappers around the new 'link()' (they also print
    a warning of the deprecated interface)

Also increases consistency between MSVCCompiler and BCPPCompiler,
hopefully to make it easier to factor out the mythical WindowsCCompiler
class.  Details:
  * use 'self.linker' instead of 'self.link'
  * add ability to compile resource files to BCPPCompiler
  * added (redundant?) 'object_filename()' method to BCPPCompiler
  * only generate a .def file if 'export_symbols' defined

24 years agoWrote text for features added between 2.0b1 and b2.
Andrew M. Kuchling [Wed, 27 Sep 2000 01:33:41 +0000 (01:33 +0000)]
Wrote text for features added between 2.0b1 and b2.
Minor rewrites, and added the CVS ID in a comment.

24 years agoFixed error in explanation of codec decode_func pointed out by Gregg Hauser,
Andrew M. Kuchling [Wed, 27 Sep 2000 01:01:18 +0000 (01:01 +0000)]
Fixed error in explanation of codec decode_func pointed out by Gregg Hauser,
   and rewrote paragraph a bit.

24 years agoBump version to 0.9.4.
Greg Ward [Wed, 27 Sep 2000 00:17:08 +0000 (00:17 +0000)]
Bump version to 0.9.4.

24 years agoFix '_set_command_options()' so it only calls 'strtobool()' on strings
Greg Ward [Wed, 27 Sep 2000 00:15:37 +0000 (00:15 +0000)]
Fix '_set_command_options()' so it only calls 'strtobool()' on strings
(was crashing on any boolean command-line option!).

24 years agoThis commit was manufactured by cvs2svn to create tag 'r20b2'. v2.0b2
cvs2svn [Tue, 26 Sep 2000 18:00:20 +0000 (18:00 +0000)]
This commit was manufactured by cvs2svn to create tag 'r20b2'.

24 years agoAdded an "import xml.parsers.expat" to turn errors due to not having
Barry Warsaw [Tue, 26 Sep 2000 18:00:20 +0000 (18:00 +0000)]
Added an "import xml.parsers.expat" to turn errors due to not having
the parser built into ImportErrors.

24 years agoFix GC news
Jeremy Hylton [Tue, 26 Sep 2000 17:42:51 +0000 (17:42 +0000)]
Fix GC news

24 years agoThe Usual
Jeremy Hylton [Tue, 26 Sep 2000 17:32:27 +0000 (17:32 +0000)]
The Usual

24 years agoFix handling of file inputs on Windows; passing them to urllib.urlopen()
Fred Drake [Tue, 26 Sep 2000 17:23:09 +0000 (17:23 +0000)]
Fix handling of file inputs on Windows; passing them to urllib.urlopen()
caused the drive letter to cause urlopen() to think it was an unrecognized
URL scheme.  This only passes system ids to urlopen() if the file does not
exist.  It works on Windows & Unix.

It should work everywhere else as well.

24 years agothe usual
Jeremy Hylton [Tue, 26 Sep 2000 16:57:37 +0000 (16:57 +0000)]
the usual

24 years agoFixed typo, description of changes to dbm module.
Fred Drake [Tue, 26 Sep 2000 16:40:27 +0000 (16:40 +0000)]
Fixed typo, description of changes to dbm module.