cpython Log


Commit Date  
[a06274] by Fred Drake Fred Drake

popen4(): Added for Unix.

Fixed a typo in a docstring.

2000-09-28 19:10:56 Tree
[2cdf7a] by Fred Drake Fred Drake

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.

2000-09-28 19:07:53 Tree
[af8d77] by Fred Drake Fred Drake

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.

2000-09-28 16:52:36 Tree
[6fb2af] by Fred Drake Fred Drake

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.

2000-09-28 16:25:20 Tree
[101872] by Fred Drake Fred Drake

Minor style nits.

2000-09-28 16:22:52 Tree
[8f59bd] by Fred Drake Fred Drake

Remove imports of string when string methods will do.

2000-09-28 15:04:39 Tree
[d01394] by Fred Drake Fred Drake

Minor ANSIfication: lib_python no longer needs to be initialized
dynamically to support K&R C since we are requiring an ANSI compiler.

2000-09-28 14:32:29 Tree
[a0a13f] by Fred Drake Fred Drake

Add regex and regsub to the list of undocumented obsolete modules.

2000-09-28 05:31:39 Tree
[45967f] by Fred Drake Fred Drake

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).

2000-09-28 04:25:33 Tree
[b15fce] by Fred Drake Fred Drake

Add truncate() method to StringIO objects.

This closes SourceForge bug #115527.

2000-09-28 04:21:06 Tree
[f4a1d3] by Fred Drake Fred Drake

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>.

2000-09-28 04:13:15 Tree
[ec756d] by Fred Drake Fred Drake

Fix includes; not including Python.h caused the module not to compile on
some platforms.

This *should* close SourceForge patch #115506.

2000-09-28 02:54:51 Tree
[291abe] by Fred Drake Fred Drake

Update the documentation for ConfigParser to match the recent changes.

2000-09-27 22:48:44 Tree
[f932c1] by Fred Drake Fred Drake

Regression test for ConfigParser module.

2000-09-27 22:45:25 Tree
[606a80] by Fred Drake Fred Drake

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.

2000-09-27 22:43:54 Tree
[4bea4f] by Jeremy Hylton Jeremy Hylton

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.

2000-09-27 20:51:17 Tree
[4111cf] by Marc-Andr? Lemburg Marc-Andr? Lemburg

Updated hash values to match the new encoding (UTF-8) used in the test.

2000-09-27 12:25:14 Tree
[ad98c1] by Marc-Andr? Lemburg Marc-Andr? Lemburg

Fixed encoding to use an endianness independent format.

2000-09-27 12:24:34 Tree
[420d3c] by Lars Gust?bel Lars Gust?bel

Fixed misleading qname in test_xmlgen_ns (reported by loewis).

2000-09-27 08:12:17 Tree
[de1892] by Andrew M. Kuchling Andrew M. Kuchling

Fix double negative spotted by matt@mondoinfo.com

2000-09-27 02:49:24 Tree
[834062] by Andrew M. Kuchling Andrew M. Kuchling

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.

2000-09-27 02:36:10 Tree
[1967be] by Greg Ward Greg Ward

Bump version to 1.0pre.

2000-09-27 02:26:57 Tree
[e4641d] by Greg Ward Greg Ward

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.

2000-09-27 02:24:21 Tree
[afd7ec] by Greg Ward Greg Ward

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

2000-09-27 02:08:14 Tree
[c7f555] by Andrew M. Kuchling Andrew M. Kuchling

Wrote text for features added between 2.0b1 and b2.
Minor rewrites, and added the CVS ID in a comment.

2000-09-27 01:33:41 Tree
Older >