]> granicus.if.org Git - python/log
python
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.

24 years agoThe rest of the news for 2.0b2
Jeremy Hylton [Tue, 26 Sep 2000 16:31:30 +0000 (16:31 +0000)]
The rest of the news for 2.0b2

24 years agoElaborated the notes on the XML support.
Fred Drake [Tue, 26 Sep 2000 16:21:35 +0000 (16:21 +0000)]
Elaborated the notes on the XML support.

In the limits.h comment, noted that INT_MAX and LONG_MAX are guaranteed
to be defined.

Noted that Reliant UNIX now gets proper API support for extension modules.

24 years agoTest output data for the Unicode database test suite.
Marc-André Lemburg [Tue, 26 Sep 2000 16:19:27 +0000 (16:19 +0000)]
Test output data for the Unicode database test suite.

24 years agoAdded test suite for the complete Unicode database. The test previously
Marc-André Lemburg [Tue, 26 Sep 2000 16:18:58 +0000 (16:18 +0000)]
Added test suite for the complete Unicode database. The test previously
only tested a few cases.

24 years agoIt's beta 2 now. Updated some stale URLs at pythonlabs.com.
Guido van Rossum [Tue, 26 Sep 2000 12:14:11 +0000 (12:14 +0000)]
It's beta 2 now.  Updated some stale URLs at pythonlabs.com.

24 years agoFixed some typos, added some punctuation (e.g. consistently terminate
Guido van Rossum [Tue, 26 Sep 2000 11:16:10 +0000 (11:16 +0000)]
Fixed some typos, added some punctuation (e.g. consistently terminate
sentences with a period and put () after function/method names), and
filled in the blanks on mailbox and posixfile.  Noted <limits.h> change.

24 years agoNew info and fixed some typos.
Tim Peters [Tue, 26 Sep 2000 06:33:09 +0000 (06:33 +0000)]
New info and fixed some typos.

24 years agoMore limits.h stuff in node.c.
Tim Peters [Tue, 26 Sep 2000 06:11:54 +0000 (06:11 +0000)]
More limits.h stuff in node.c.
Fred, check this!

24 years agoNote that including Python.h includes limits.h when available.
Fred Drake [Tue, 26 Sep 2000 05:51:50 +0000 (05:51 +0000)]
Note that including Python.h includes limits.h when available.

24 years agoRationalize use of limits.h, moving the inclusion to Python.h.
Fred Drake [Tue, 26 Sep 2000 05:46:01 +0000 (05:46 +0000)]
Rationalize use of limits.h, moving the inclusion to Python.h.
Add definitions of INT_MAX and LONG_MAX to pyport.h.
Remove includes of limits.h and conditional definitions of INT_MAX
and LONG_MAX elsewhere.

This closes SourceForge patch #101659 and bug #115323.

24 years agopartial list of changes between 2.0b1 and 2.0b2
Jeremy Hylton [Tue, 26 Sep 2000 05:32:36 +0000 (05:32 +0000)]
partial list of changes between 2.0b1 and 2.0b2

24 years agoRemove a ?? in the description of Mac OS support.
Greg Ward [Tue, 26 Sep 2000 02:54:43 +0000 (02:54 +0000)]
Remove a ?? in the description of Mac OS support.

24 years agoBump version to 0.9.3.
Greg Ward [Tue, 26 Sep 2000 02:51:09 +0000 (02:51 +0000)]
Bump version to 0.9.3.

24 years agoYet another new unique extension in the test directory.
Tim Peters [Tue, 26 Sep 2000 02:37:53 +0000 (02:37 +0000)]
Yet another new unique extension in the test directory.

24 years agoReformat docstrings.
Greg Ward [Tue, 26 Sep 2000 02:13:49 +0000 (02:13 +0000)]
Reformat docstrings.
Standardize whitespace in function calls.

24 years agoStandardize whitespace in function calls.
Greg Ward [Tue, 26 Sep 2000 02:12:31 +0000 (02:12 +0000)]
Standardize whitespace in function calls.

24 years agoWhitespace fix.
Greg Ward [Tue, 26 Sep 2000 02:03:34 +0000 (02:03 +0000)]
Whitespace fix.

24 years agoReformat docstrings.
Greg Ward [Tue, 26 Sep 2000 02:00:51 +0000 (02:00 +0000)]
Reformat docstrings.
Standardize whitespace in function calls.

24 years agoStandardize whitespace in function calls.
Greg Ward [Tue, 26 Sep 2000 01:56:15 +0000 (01:56 +0000)]
Standardize whitespace in function calls.

24 years agoStandardize whitespace in function calls and docstrings.
Greg Ward [Tue, 26 Sep 2000 01:52:25 +0000 (01:52 +0000)]
Standardize whitespace in function calls and docstrings.

24 years agoIt's.....
Guido van Rossum [Tue, 26 Sep 2000 00:36:03 +0000 (00:36 +0000)]
It's.....

Python 2.0b2!

(Note: Jeremy will finish the release on Sept. 26; I have to go on an
unexpected business trip.)

24 years agoHP-UX is another one of those platforms using an alternative lock
Guido van Rossum [Tue, 26 Sep 2000 00:31:18 +0000 (00:31 +0000)]
HP-UX is another one of those platforms using an alternative lock
structure (same as AIX).

24 years ago- don't set the titlecase flag for uppercase letters (sorry, tim)
Fredrik Lundh [Mon, 25 Sep 2000 23:03:34 +0000 (23:03 +0000)]
- don't set the titlecase flag for uppercase letters (sorry, tim)

24 years agoBump Windows "build number" to 6.
Tim Peters [Mon, 25 Sep 2000 21:55:28 +0000 (21:55 +0000)]
Bump Windows "build number" to 6.
Note that somebody still needs to change the interpreter to say "2.0b2";
I'm assuming that's a normal part of somebody's Unix release checklist.

24 years agounicode database compression, step 3:
Fredrik Lundh [Mon, 25 Sep 2000 21:48:13 +0000 (21:48 +0000)]
unicode database compression, step 3:

- use unidb compression for the unicodectype module.  smaller, faster,
  and slightly more portable...

24 years agounicode database compression, step 3:
Fredrik Lundh [Mon, 25 Sep 2000 21:12:34 +0000 (21:12 +0000)]
unicode database compression, step 3:

- use unidb compression for the unicodectype module.  smaller, faster,
  and slightly more portable...

(note: this commit doesn't include the unicodectype.c file itself; I'm
still waiting for the reviewers...)

24 years agounicode database compression, step 3:
Fredrik Lundh [Mon, 25 Sep 2000 21:01:56 +0000 (21:01 +0000)]
unicode database compression, step 3:

- added decimal digit and digit properties to the unidb tables

24 years agoReplace SIGFPE paranoia around strtod and atof. I don't believe these
Tim Peters [Mon, 25 Sep 2000 21:01:28 +0000 (21:01 +0000)]
Replace SIGFPE paranoia around strtod and atof.  I don't believe these
fncs are allowed to raise SIGFPE (see the C std), but OK by me if
people using --with-fpectl want to pay for checking anyway.

24 years agoregex and regsub are obsolete and Evil, so don't include them in the club.
Fred Drake [Mon, 25 Sep 2000 18:26:21 +0000 (18:26 +0000)]
regex and regsub are obsolete and Evil, so don't include them in the club.

24 years agounicode database compression, step 3:
Fredrik Lundh [Mon, 25 Sep 2000 17:59:57 +0000 (17:59 +0000)]
unicode database compression, step 3:

- use unidb compression for the unicodectype module.  smaller,
  faster, and slightly more portable...

- also mention the unicode directory in Tools/README

24 years agoUpdates from Fredrik Lundh <effbot@telia.com> about Unicode-related
Fred Drake [Mon, 25 Sep 2000 17:52:40 +0000 (17:52 +0000)]
Updates from Fredrik Lundh <effbot@telia.com> about Unicode-related
behavior.

24 years agoInclude the version-detecting code to allow PyXML to override the "standard"
Fred Drake [Mon, 25 Sep 2000 17:30:17 +0000 (17:30 +0000)]
Include the version-detecting code to allow PyXML to override the "standard"
xml package.  Require at least PyXML 0.6.1.

24 years agoAdd obsolescence note to the module descriptions that get added to the
Fred Drake [Mon, 25 Sep 2000 17:23:04 +0000 (17:23 +0000)]
Add obsolescence note to the module descriptions that get added to the
list of module synopses at the front of the chapter; based on a comment
from Aahz <aahz@panix.com>.

24 years agofix bug #114290: when interpreter's argv[0] has a relative path make
Jeremy Hylton [Mon, 25 Sep 2000 17:00:24 +0000 (17:00 +0000)]
fix bug #114290: when interpreter's argv[0] has a relative path make
    it absolute by joining it with getcwd result.  avoid including
    unnecessary ./ in path but do not test for ../ (more complicated)

24 years agoAdd a test for SF bug #110621; stripping square brackets off of
Barry Warsaw [Mon, 25 Sep 2000 15:09:28 +0000 (15:09 +0000)]
Add a test for SF bug #110621; stripping square brackets off of
addresses with domain literals.

24 years agoProperly set LINKFORSHARED on Reliant UNIX. Problem and required linker
Fred Drake [Mon, 25 Sep 2000 15:08:46 +0000 (15:08 +0000)]
Properly set LINKFORSHARED on Reliant UNIX.  Problem and required linker
flags reported by Daniel Dittmar <daniel.dittmar@sap.com>.

24 years agoAddrlistClass.getdomainliteral(): rfc822 requires that the domain
Barry Warsaw [Mon, 25 Sep 2000 15:08:27 +0000 (15:08 +0000)]
AddrlistClass.getdomainliteral(): rfc822 requires that the domain
literal be wrapped in square brackets.  This fix replaces the square
brackets that were previously being stripped off.  Closes SF bug
#110621.

24 years agoCredit where credit is due. Also fixed an unalphabetic sequence.
Guido van Rossum [Mon, 25 Sep 2000 14:46:26 +0000 (14:46 +0000)]
Credit where credit is due.  Also fixed an unalphabetic sequence.

24 years agoWhen reading the file, option names were not passed through
Guido van Rossum [Mon, 25 Sep 2000 14:42:33 +0000 (14:42 +0000)]
When reading the file, option names were not passed through
self.optionxform(), which (in the default case) caused options spelled
with opper case letters in their name to be inaccessible.  Reported by
"Todd R. Palmer" <t2palmer@bellsouth.net> on
activepython@listserv1.ActiveState.com.

24 years agoUpdate URL for Python 2.0
Andrew M. Kuchling [Mon, 25 Sep 2000 14:40:15 +0000 (14:40 +0000)]
Update URL for Python 2.0

24 years agoMinor cleanups, wrap long lines.
Fred Drake [Mon, 25 Sep 2000 14:14:30 +0000 (14:14 +0000)]
Minor cleanups, wrap long lines.

24 years agoAdd missing prototypes for the benefit of SunOS 4.1.4 */
Guido van Rossum [Mon, 25 Sep 2000 13:22:00 +0000 (13:22 +0000)]
Add missing prototypes for the benefit of SunOS 4.1.4 */

24 years agoFor the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's
Guido van Rossum [Mon, 25 Sep 2000 13:16:15 +0000 (13:16 +0000)]
For the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's
undefined.  ccording to MvL, this is safe: the MS_SYNC flag means that
msync() returns when all I/O operations are scheduled; without it, it
waits until they are complete, which is acceptable behavior.

24 years agounicode database compression, step 2:
Fredrik Lundh [Mon, 25 Sep 2000 08:07:06 +0000 (08:07 +0000)]
unicode database compression, step 2:

- fixed attributions
- moved decomposition data to a separate table, in preparation
  for step 3 (which won't happen before 2.0 final, promise!)
- use relative paths in the generator script

I have a lot more stuff in the works for 2.1, but let's leave
that for another day...

24 years agoFiddled w/ /F's cool new splitbins function: documented it, generalized it
Tim Peters [Mon, 25 Sep 2000 07:13:41 +0000 (07:13 +0000)]
Fiddled w/ /F's cool new splitbins function:  documented it, generalized it
a bit, sped it a lot primarily by removing the unused assumption that None was
a legit bin entry (the function doesn't really need to assume that there's
anything special about 0), added an optional "trace" argument, and in __debug__
mode added exhaustive verification that the decomposition is both correct and
doesn't overstep any array bounds (which wasn't obvious to me from staring at the
generated C code -- now I feel safe!).  Did not commit a new unicodedata_db.h, as
the one produced by this version is identical to the one already checked in.

24 years agoAdded 'translate_longopt()' function.
Greg Ward [Mon, 25 Sep 2000 01:58:31 +0000 (01:58 +0000)]
Added 'translate_longopt()' function.

24 years agoChange to use the new 'translate_longopt()' function from fancy_getopt, rather
Greg Ward [Mon, 25 Sep 2000 01:58:07 +0000 (01:58 +0000)]
Change to use the new 'translate_longopt()' function from fancy_getopt, rather
than rolling our own with fancy_getopt's 'longopt_xlate' global.

24 years agoAdded a bunch of missing "=" signs in the option table.
Greg Ward [Mon, 25 Sep 2000 01:53:01 +0000 (01:53 +0000)]
Added a bunch of missing "=" signs in the option table.
Removed script options -- don't think they ever worked, weren't
  very well thought through, etc.

24 years agoRenamed '--keep-tree' option to '--keep-temp', for consistency
Greg Ward [Mon, 25 Sep 2000 01:51:01 +0000 (01:51 +0000)]
Renamed '--keep-tree' option to '--keep-temp', for consistency
with the bdist_* commands.

24 years agoAdded 'boolean_options' list to support config file parsing.
Greg Ward [Mon, 25 Sep 2000 01:41:15 +0000 (01:41 +0000)]
Added 'boolean_options' list to support config file parsing.

24 years agoAdded 'strtobool()' function: convert strings like "yes", "1",
Greg Ward [Mon, 25 Sep 2000 01:25:06 +0000 (01:25 +0000)]
Added 'strtobool()' function: convert strings like "yes", "1",
"no", "0", etc. to true/false.

24 years agoFixed some bugs and mis-features in handling config files:
Greg Ward [Mon, 25 Sep 2000 01:23:52 +0000 (01:23 +0000)]
Fixed some bugs and mis-features in handling config files:
  * options can now be spelled "foo-bar" or "foo_bar" (handled in
    'parse_config_files()', just after we parse a file)
  * added a "[global]" section so there's a place to set global
    options like verbose/quiet and dry-run
  * respect the "negative alias" dictionary so (eg.) "quiet=1" is
    the same as "verbose=0" (this had to be done twice: once in
    'parse_config_file()' for global options, and once in
    '_set_command_options()' for per-command options)
  * the other half of handling boolean options correctly: allow
    commands to list their boolean options in a 'boolean_options'
    class attribute, and use it to translate strings (like "yes", "1",
    "no", "0", etc) to true or false

24 years agoFix inconsistent use of space/tabs.
Thomas Wouters [Mon, 25 Sep 2000 00:11:37 +0000 (00:11 +0000)]
Fix inconsistent use of space/tabs.

24 years agounicode database compression, step 1:
Fredrik Lundh [Sun, 24 Sep 2000 23:18:31 +0000 (23:18 +0000)]
unicode database compression, step 1:

- use unidb compression for the unicodedata module.  on Windows,
  the new unidatabase module is 120k, down from nearly 600k.

24 years agoRepaired damaged string.
Tim Peters [Sun, 24 Sep 2000 22:12:45 +0000 (22:12 +0000)]
Repaired damaged string.

24 years agoxmlparse_ExternalEntityParserCreate(): Add required cast to return to
Fred Drake [Sun, 24 Sep 2000 22:07:59 +0000 (22:07 +0000)]
xmlparse_ExternalEntityParserCreate():  Add required cast to return to
        avoid compiler warnings.

24 years agoReadme and relnotes for intermediate 2.0b1+ release.
Jack Jansen [Sun, 24 Sep 2000 22:01:53 +0000 (22:01 +0000)]
Readme and relnotes for intermediate 2.0b1+ release.

24 years agoHandle the ****/**** appleevent wildcard when called as a main program, so that it...
Jack Jansen [Sun, 24 Sep 2000 22:00:11 +0000 (22:00 +0000)]
Handle the ****/**** appleevent wildcard when called as a main program, so that it becomes a handy debugging tool (BuildApplet, copy aete resource, apply applescript to it).

24 years agoAdded a workaround for shortcomings in the OSA support: there can be class/property...
Jack Jansen [Sun, 24 Sep 2000 21:56:43 +0000 (21:56 +0000)]
Added a workaround for shortcomings in the OSA support: there can be class/property conflicts and passing classes as arguments doesn't work. The package now seems to work.

24 years agoUse SAX2 namespace support.
Martin v. Löwis [Sun, 24 Sep 2000 21:54:14 +0000 (21:54 +0000)]
Use SAX2 namespace support.

24 years agounicode database compression, step 1:
Fredrik Lundh [Sun, 24 Sep 2000 21:45:34 +0000 (21:45 +0000)]
unicode database compression, step 1:

- use unidb compression for the unicodedata module.  on Windows,
  the new unidatabase module is 120k, down from nearly 600k.

24 years ago[Patch 101634]
Martin v. Löwis [Sun, 24 Sep 2000 21:31:06 +0000 (21:31 +0000)]
[Patch 101634]
xml.sax: Fix parse and parseString not to rely on ExpatParser
         Greatly simplify import logic by using __import__
saxutils: Support Unicode strings and files as parameters to
          prepare_input_source

24 years agounicode database compression, step 1:
Fredrik Lundh [Sun, 24 Sep 2000 21:28:28 +0000 (21:28 +0000)]
unicode database compression, step 1:

- use unidb compression for the unicodedata module.  on Windows,
  the new unidatabase module is 120k, down from nearly 600k.

24 years agoFind feature names in handler.
Martin v. Löwis [Sun, 24 Sep 2000 21:17:39 +0000 (21:17 +0000)]
Find feature names in handler.