]> granicus.if.org Git - python/log
python
24 years agoAdded options that use square brackets in their names; this ensures that
Fred Drake [Mon, 12 Feb 2001 17:23:20 +0000 (17:23 +0000)]
Added options that use square brackets in their names; this ensures that
GNOME-style internationalized options can be parsed using ConfigParser
(SF bug #131635).

Converted the tests to use test_support.verify() instead of output
comparison to work.

24 years agoAllow square brackets in the option names; this makes it possible to use
Fred Drake [Mon, 12 Feb 2001 17:18:11 +0000 (17:18 +0000)]
Allow square brackets in the option names; this makes it possible to use
ConfigParser with GNOME-ish config files that use the internationalization
conventions found in GNOME.

This closes SF bug #131635.

24 years agoRichard Fish <rfish@users.sourceforge.net>:
Fred Drake [Mon, 12 Feb 2001 16:48:13 +0000 (16:48 +0000)]
Richard Fish <rfish@users.sourceforge.net>:
Fix the .binary() method of mpz objects for 64-bit systems.

[Also removed a lot of trailing whitespace elsewhere in the file. --FLD]

This closes SF patch #103547.

24 years agoGot rid of full pathnames in "generated from" comments, so that these files are the...
Jack Jansen [Mon, 12 Feb 2001 16:09:44 +0000 (16:09 +0000)]
Got rid of full pathnames in "generated from" comments, so that these files are the same no mater which machine they've been generated on.

24 years agoAdd a "description" meta tag that includes a version number.
Fred Drake [Mon, 12 Feb 2001 16:04:24 +0000 (16:04 +0000)]
Add a "description" meta tag that includes a version number.

24 years agoIn symtable_update_free_vars() do not modify the dictionary while
Jeremy Hylton [Mon, 12 Feb 2001 16:01:03 +0000 (16:01 +0000)]
In symtable_update_free_vars() do not modify the dictionary while
iterating over it using PyDict_Next().

This bug fix brought to you by the letters b, c, d, g, h, ... and the
reporter Ping.

24 years agoJon Nelson <jnelson@users.sourceforge.net>:
Fred Drake [Mon, 12 Feb 2001 15:30:22 +0000 (15:30 +0000)]
Jon Nelson <jnelson@users.sourceforge.net>:
Make the documentation tools compatibile with Python 2.0.

24 years agoBrought in line with current config.h.in.
Jack Jansen [Mon, 12 Feb 2001 14:59:13 +0000 (14:59 +0000)]
Brought in line with current config.h.in.

24 years agoNot sure what changed, probably an artefact of the new modules and/or new gusi.
Jack Jansen [Mon, 12 Feb 2001 14:57:59 +0000 (14:57 +0000)]
Not sure what changed, probably an artefact of the new modules and/or new gusi.

24 years agoThe interpreters built are now called PythonInterpreterClassic and PythonInterpreterC...
Jack Jansen [Mon, 12 Feb 2001 14:52:47 +0000 (14:52 +0000)]
The interpreters built are now called PythonInterpreterClassic and PythonInterpreterCarbon. The fullbuild script takes care of copying either of these to PythonInterpreter.

24 years agoAdded modules _testcapi, _weakref, _symtable.
Jack Jansen [Mon, 12 Feb 2001 14:50:52 +0000 (14:50 +0000)]
Added modules _testcapi, _weakref, _symtable.

24 years agoAdded buttons for building interpreter, carbon standalone.
Jack Jansen [Mon, 12 Feb 2001 14:46:53 +0000 (14:46 +0000)]
Added buttons for building interpreter, carbon standalone.
Added modules _testcapi, _weakref, _symtable.

24 years agoThis change makes imputil more closely emulate the standard import
Thomas Heller [Mon, 12 Feb 2001 09:17:06 +0000 (09:17 +0000)]
This change makes imputil more closely emulate the standard import
mechanism to support self-modifying modules.

24 years agotest_pty started failing on Windows, but if and only if test___all__ was
Tim Peters [Mon, 12 Feb 2001 03:27:31 +0000 (03:27 +0000)]
test_pty started failing on Windows, but if and only if test___all__ was
run first.  Indirectly due to Skip adding check_all("pty") to test___all__:
that caused the expected ImportError due to pty.py trying to import the
non-existent FCNTL to get handled by test___all__, leaving a partial
module object for pty in sys.modules, which caused the later import of
pty via test_pty to succeed.  Then test_tpy died with an AttributeError,
due to trying to access attributes of pty that didn't exist.  regrtest
viewed that as a failure rather than the appropriate "test skipped".
Fixed by deleting partial module objects in test___all__ when test___all__
handles an ImportError.

24 years ago__all__ for several more modules
Skip Montanaro [Mon, 12 Feb 2001 02:00:42 +0000 (02:00 +0000)]
__all__ for several more modules

24 years agoCreate separate section for changes to the standard library
Andrew M. Kuchling [Sun, 11 Feb 2001 16:55:39 +0000 (16:55 +0000)]
Create separate section for changes to the standard library
Make note about difflib and doctest
Bump version number

24 years agoUgly fix for SF bug 131239 (-x flag busted).
Tim Peters [Sun, 11 Feb 2001 04:35:39 +0000 (04:35 +0000)]
Ugly fix for SF bug 131239 (-x flag busted).
Bug was introduced by tricks played to make .pyc files executable
via cmdline arg.  Then again, -x worked via a trick to begin with.
If anyone can think of a portable way to test -x, be my guest!

24 years agoBit the bullet and added a private GUSISIOUX for Python. This makes the delayconsole...
Jack Jansen [Sun, 11 Feb 2001 01:26:28 +0000 (01:26 +0000)]
Bit the bullet and added a private GUSISIOUX for Python. This makes the delayconsole and keepopen code neater. Also tells Sioux to behave better with events, and handles cmd-. during print better. The pythonpreferences have also changed due to this.

24 years agoOops, repr didn't allocate the memory it used...
Jack Jansen [Sun, 11 Feb 2001 01:12:53 +0000 (01:12 +0000)]
Oops, repr didn't allocate the memory it used...

24 years agoBit the bullet and added a private GUSISIOUX for Python. This makes the delayconsole...
Jack Jansen [Sun, 11 Feb 2001 01:08:04 +0000 (01:08 +0000)]
Bit the bullet and added a private GUSISIOUX for Python. This makes the delayconsole and keepopen code neater. Also tells Sioux to behave better with events, and handles cmd-. during print better. The pythonpreferences have also changed due to this.

24 years agoChange Windows test to do a complete job of removing .pyc/.pyo files
Tim Peters [Sun, 11 Feb 2001 00:46:39 +0000 (00:46 +0000)]
Change Windows test to do a complete job of removing .pyc/.pyo files
reachable from Lib/.

24 years agoUpdate for install-sh (SF #103717).
Neil Schemenauer [Sat, 10 Feb 2001 20:10:52 +0000 (20:10 +0000)]
Update for install-sh (SF #103717).

24 years agoSpecify directory permissions properly. Closes SF patch #103717.
Neil Schemenauer [Sat, 10 Feb 2001 20:07:38 +0000 (20:07 +0000)]
Specify directory permissions properly.  Closes SF patch #103717.

24 years agoUpdate install-sh using version from automake 1.4. Closes patch #103657
Neil Schemenauer [Sat, 10 Feb 2001 20:04:53 +0000 (20:04 +0000)]
Update install-sh using version from automake 1.4.  Closes patch #103657
and #103717.

24 years agoPatch by Finn Bock to make test_unicode.py work for Jython.
Marc-André Lemburg [Sat, 10 Feb 2001 14:09:31 +0000 (14:09 +0000)]
Patch by Finn Bock to make test_unicode.py work for Jython.

24 years agoMoved SequenceMatcher from ndiff into new std library module difflib.py.
Tim Peters [Sat, 10 Feb 2001 08:00:53 +0000 (08:00 +0000)]
Moved SequenceMatcher from ndiff into new std library module difflib.py.
Guido told me to do this <wink>.
Greatly expanded docstrings, and fleshed out with examples.
New std test.
Added new get_close_matches() function for ESR.
Needs docs, but LaTeXification of the module docstring is all it needs.
\CVS: ----------------------------------------------------------------------

24 years agoAdd std test for doctest.
Tim Peters [Sat, 10 Feb 2001 01:36:47 +0000 (01:36 +0000)]
Add std test for doctest.

24 years agoBump __version__ tuple.
Tim Peters [Sat, 10 Feb 2001 01:24:50 +0000 (01:24 +0000)]
Bump __version__ tuple.

24 years agoString method cleanup.
Eric S. Raymond [Sat, 10 Feb 2001 00:22:33 +0000 (00:22 +0000)]
String method cleanup.

24 years agoString method cleanup.
Eric S. Raymond [Sat, 10 Feb 2001 00:06:00 +0000 (00:06 +0000)]
String method cleanup.

24 years agoIn O_writelines: Replace use of string.joinfields with "".join.
Jeremy Hylton [Fri, 9 Feb 2001 23:44:22 +0000 (23:44 +0000)]
In O_writelines: Replace use of string.joinfields with "".join.

24 years agoSF bug #131560: pdb imports 'repr', causing name collision
Tim Peters [Fri, 9 Feb 2001 23:28:07 +0000 (23:28 +0000)]
SF bug #131560:  pdb imports 'repr', causing name collision

24 years agoWhen calling a PyCFunction that has METH_KEYWORDS defined, don't
Jeremy Hylton [Fri, 9 Feb 2001 23:23:20 +0000 (23:23 +0000)]
When calling a PyCFunction that has METH_KEYWORDS defined, don't
create an empty dictionary if it is called without keyword args.  Just
pass NULL.

XXX I had believed that this caused weird errors, but the test suite
runs cleanly.

24 years agoTeach Windows build about new symtable.c.
Tim Peters [Fri, 9 Feb 2001 23:05:56 +0000 (23:05 +0000)]
Teach Windows build about new symtable.c.

24 years agoupdate to use new symtable interface
Jeremy Hylton [Fri, 9 Feb 2001 22:57:10 +0000 (22:57 +0000)]
update to use new symtable interface

24 years agoupdate test cases for recent compiler changes: exec/import * in nested
Jeremy Hylton [Fri, 9 Feb 2001 22:56:46 +0000 (22:56 +0000)]
update test cases for recent compiler changes: exec/import * in nested
functinos and cell vars with */** parameters

24 years agoSF patch 103589: Fix handling of cell vars that are either * or ** parameters.
Jeremy Hylton [Fri, 9 Feb 2001 22:55:26 +0000 (22:55 +0000)]
SF patch 103589: Fix handling of cell vars that are either * or ** parameters.
(Nick Mathewson)

Remove to XXX comments

24 years agoRelax the rules for using 'from ... import *' and exec in the presence
Jeremy Hylton [Fri, 9 Feb 2001 22:22:18 +0000 (22:22 +0000)]
Relax the rules for using 'from ... import *' and exec in the presence
of nested functions.  Either is allowed in a function if it contains
no defs or lambdas or the defs and lambdas it contains have no free
variables.  If a function is itself nested and has free variables,
either is illegal.

Revise the symtable to use a PySymtableEntryObject, which holds all
the revelent information for a scope, rather than using a bunch of
st_cur_XXX pointers in the symtable struct.  The changes simplify the
internal management of the current symtable scope and of the stack.

Added new C source file: Python/symtable.c.  (Does the Windows build
process need to be updated?)

As part of these changes, the initial _symtable module interface
introduced in 2.1a2 is replaced.  A dictionary of
PySymtableEntryObjects are returned.

24 years agoWhitespace normalization.
Tim Peters [Fri, 9 Feb 2001 21:23:21 +0000 (21:23 +0000)]
Whitespace normalization.

24 years agoNuke accurate but confusing and unhelpful comments about split vs splitfields.
Tim Peters [Fri, 9 Feb 2001 20:18:41 +0000 (20:18 +0000)]
Nuke accurate but confusing and unhelpful comments about split vs splitfields.

24 years agoWhitespace normalization.
Tim Peters [Fri, 9 Feb 2001 20:17:14 +0000 (20:17 +0000)]
Whitespace normalization.

24 years agoWhitespace normalization.
Tim Peters [Fri, 9 Feb 2001 20:06:00 +0000 (20:06 +0000)]
Whitespace normalization.

24 years agoThis modified version of a patch by Thomas Heller allows __import__
Marc-André Lemburg [Fri, 9 Feb 2001 19:40:15 +0000 (19:40 +0000)]
This modified version of a patch by Thomas Heller allows __import__
hooks to take over the Python import machinery at a very early stage
in the Python startup phase.

If there are still places in the Python interpreter which need to
bypass the __import__ hook, these places must now use
PyImport_ImportModuleEx() instead. So far no other places than in
the import mechanism itself have been identified.

24 years agojoinfields -> join.
Eric S. Raymond [Fri, 9 Feb 2001 17:05:53 +0000 (17:05 +0000)]
joinfields -> join.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 16:56:44 +0000 (16:56 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 16:45:10 +0000 (16:45 +0000)]
String method conversion.

24 years agoFixed syntax error.
Sjoerd Mullender [Fri, 9 Feb 2001 16:34:24 +0000 (16:34 +0000)]
Fixed syntax error.

24 years agosplitfields -> split
Eric S. Raymond [Fri, 9 Feb 2001 16:25:20 +0000 (16:25 +0000)]
splitfields -> split

24 years agoAdded prototype for DlgObj_WhichDialog()
Jack Jansen [Fri, 9 Feb 2001 15:59:18 +0000 (15:59 +0000)]
Added prototype for DlgObj_WhichDialog()

24 years agoReplaced touched(), which no longer seems to work under os9, with something using...
Jack Jansen [Fri, 9 Feb 2001 15:58:34 +0000 (15:58 +0000)]
Replaced touched(), which no longer seems to work under os9, with something using an appleevent to the finder. More expensive, but at least it works:-)

24 years agoAdded a few constants.
Jack Jansen [Fri, 9 Feb 2001 15:57:53 +0000 (15:57 +0000)]
Added a few constants.

24 years agoDialogs and there windows were still confused in some spots. Fixed.
Jack Jansen [Fri, 9 Feb 2001 15:57:01 +0000 (15:57 +0000)]
Dialogs and there windows were still confused in some spots. Fixed.

24 years agoGet rid of from ... import *
Jack Jansen [Fri, 9 Feb 2001 15:56:19 +0000 (15:56 +0000)]
Get rid of from ... import *

24 years agoReindent a function that was somehow indented by 7 spaces. Also did a
Guido van Rossum [Fri, 9 Feb 2001 15:06:42 +0000 (15:06 +0000)]
Reindent a function that was somehow indented by 7 spaces.  Also did a
spaces->tab conversion for fields added to struct compiling.

24 years agoRemove silly EMPTYSTRING global. Saves a global lookup.
Marc-André Lemburg [Fri, 9 Feb 2001 13:37:37 +0000 (13:37 +0000)]
Remove silly EMPTYSTRING global. Saves a global lookup.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 12:20:51 +0000 (12:20 +0000)]
String method conversion.

24 years agoEliminate use of string.whitespace and a string import with it.
Eric S. Raymond [Fri, 9 Feb 2001 12:10:26 +0000 (12:10 +0000)]
Eliminate use of string.whitespace and a string import with it.
Some of the characters (form feed, vertical tab) are not
legal continuation characters anyway, so this was wrong as
well as annoying.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 12:03:45 +0000 (12:03 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 12:00:47 +0000 (12:00 +0000)]
String method conversion.
(This one was trivial -- no actual string. references in it!)

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 11:51:27 +0000 (11:51 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 11:46:37 +0000 (11:46 +0000)]
String method conversion.
(This one was trivial -- no actual string. references in it!)

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 11:14:08 +0000 (11:14 +0000)]
String method conversion.
(This one was trivial -- no actual string. references in it!)

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 11:10:16 +0000 (11:10 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 10:48:30 +0000 (10:48 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 10:30:23 +0000 (10:30 +0000)]
String method conversion.

24 years agoTest with an actual mbox caught a trivial error.
Eric S. Raymond [Fri, 9 Feb 2001 10:28:34 +0000 (10:28 +0000)]
Test with an actual mbox caught a trivial error.

24 years agoCorrection after translation test.
Eric S. Raymond [Fri, 9 Feb 2001 10:26:06 +0000 (10:26 +0000)]
Correction after translation test.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 10:23:55 +0000 (10:23 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 10:18:37 +0000 (10:18 +0000)]
String method conversion.

24 years agoAha. We can remove he string import after all by using ValueError.
Eric S. Raymond [Fri, 9 Feb 2001 10:14:53 +0000 (10:14 +0000)]
Aha.  We can remove he string import after all by using ValueError.

24 years agoUse ValueError instead of string.atoi.error, since we've switched to
Eric S. Raymond [Fri, 9 Feb 2001 10:12:19 +0000 (10:12 +0000)]
Use ValueError instead of string.atoi.error, since we've switched to
int().

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 10:10:02 +0000 (10:10 +0000)]
String method conversion.
(This one was trivial -- no actual string. references in it!)

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 10:06:47 +0000 (10:06 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 09:59:10 +0000 (09:59 +0000)]
String method conversion.

24 years agoPatches for AIX. Checked by Benjamin Collar.
Marc-André Lemburg [Fri, 9 Feb 2001 09:59:06 +0000 (09:59 +0000)]
Patches for AIX. Checked by Benjamin Collar.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 09:48:45 +0000 (09:48 +0000)]
String method conversion.

24 years agoString method conversion. Added a trivial main to test it with.
Eric S. Raymond [Fri, 9 Feb 2001 09:44:47 +0000 (09:44 +0000)]
String method conversion.  Added a trivial main to test it with.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 09:39:08 +0000 (09:39 +0000)]
String method conversion.

24 years agoOops...that will teach me to hit ^C^C too fast. Test passed.
Eric S. Raymond [Fri, 9 Feb 2001 09:21:01 +0000 (09:21 +0000)]
Oops...that will teach me to hit ^C^C too fast.  Test passed.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 09:19:27 +0000 (09:19 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 09:10:35 +0000 (09:10 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 08:56:30 +0000 (08:56 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 08:40:40 +0000 (08:40 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 08:33:43 +0000 (08:33 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 08:25:29 +0000 (08:25 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 07:58:53 +0000 (07:58 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 07:49:30 +0000 (07:49 +0000)]
String method conversion.

24 years agoFixed a bug in the test jig.
Eric S. Raymond [Fri, 9 Feb 2001 07:40:17 +0000 (07:40 +0000)]
Fixed a bug in the test jig.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 07:10:12 +0000 (07:10 +0000)]
String method conversion.

24 years agoSF bug #131225: sys.winver is still '2.0' in python 2.1a2.
Tim Peters [Fri, 9 Feb 2001 07:02:22 +0000 (07:02 +0000)]
SF bug #131225: sys.winver is still '2.0' in python 2.1a2.
SF patch #103683: Alternative dll version resources.
Changes similar to the patch.  MarkH should review.
File version and Product version text strings now 2.1a2.
64-bit file and product version numbers are now
    PY_MAJOR_VERSION, PY_MINOR_VERSION, messy, PYTHON_API_VERSION
where
    messy = PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL
Updated company name to "Digital Creations 2".
Copyright now lists Guido; "C in a circle" symbol used instead of (C).
Comments added so this is less likely to get flubbed again, and
#if/#error guys added to trigger if the version number manipulations
above overflow.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 07:02:17 +0000 (07:02 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 06:56:56 +0000 (06:56 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 06:50:21 +0000 (06:50 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 05:40:38 +0000 (05:40 +0000)]
String method conversion.

24 years agoCorrection to test main.
Eric S. Raymond [Fri, 9 Feb 2001 05:38:46 +0000 (05:38 +0000)]
Correction to test main.

24 years agoCorrection after second code path test.
Eric S. Raymond [Fri, 9 Feb 2001 05:37:25 +0000 (05:37 +0000)]
Correction after second code path test.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 05:19:09 +0000 (05:19 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 05:07:04 +0000 (05:07 +0000)]
String method conversion.

24 years agoString method conversion.
Eric S. Raymond [Fri, 9 Feb 2001 04:52:11 +0000 (04:52 +0000)]
String method conversion.

24 years agoUpdate documentation for pyexpat (xml.parsers.expat), to reflect the new
Fred Drake [Thu, 8 Feb 2001 15:40:33 +0000 (15:40 +0000)]
Update documentation for pyexpat (xml.parsers.expat), to reflect the new
support for Expat 1.95.*.