]> granicus.if.org Git - python/log
python
24 years agoUpdated note about collection of cyclic garbage, based on comments from
Fred Drake [Mon, 22 Jan 2001 17:46:18 +0000 (17:46 +0000)]
Updated note about collection of cyclic garbage, based on comments from
Chris Ryland.

24 years agoMinor markup adjustment.
Fred Drake [Mon, 22 Jan 2001 17:42:32 +0000 (17:42 +0000)]
Minor markup adjustment.

24 years agoFix \seepep handling -- correct URL to the online PEP repository on SF is
Fred Drake [Mon, 22 Jan 2001 17:33:24 +0000 (17:33 +0000)]
Fix \seepep handling -- correct URL to the online PEP repository on SF is
now generated.  (SF bug #129692.)

Patch from Anthon van der Neut <anthon@mnt.org>:
Work around the removal of content-less paired tags used for name
anchors in some places.  (SF bug #116008.)

Move some class attributes from an artificial SPAN element to otherwise
"useful" elements that are being generated anyway.  Added the class
"versionnote", used for \deprecated, \versionadded, \versionchanged.

24 years agoRemove include-file-dependant half-prototype of clnt_create().
Thomas Wouters [Mon, 22 Jan 2001 16:50:11 +0000 (16:50 +0000)]
Remove include-file-dependant half-prototype of clnt_create().

24 years agoRegenerated (shoulnd't make a difference).
Jack Jansen [Mon, 22 Jan 2001 16:27:54 +0000 (16:27 +0000)]
Regenerated (shoulnd't make a difference).

24 years agoUnicodedatabase.c has gone.
Jack Jansen [Mon, 22 Jan 2001 16:26:46 +0000 (16:26 +0000)]
Unicodedatabase.c has gone.

24 years agoFill out various transcripts and XXX bits, thanks to the WMATA.
Andrew M. Kuchling [Mon, 22 Jan 2001 16:15:44 +0000 (16:15 +0000)]
Fill out various transcripts and XXX bits, thanks to the WMATA.
    The only missing section is the Nested Scopes section, which has to wait
    to see if a patch is actually committed.  (Plus any other notable changes
    that get made or backed out between now and 2.1final, of course...)

24 years agoNumeric-smelling objects now once again compare smaller than
Guido van Rossum [Mon, 22 Jan 2001 16:01:24 +0000 (16:01 +0000)]
Numeric-smelling objects now once again compare smaller than
non-numeric ones, so 4 < None again in the 'map' test.

24 years agoOnce again, numeric-smelling objects compare smaller than non-numeric
Guido van Rossum [Mon, 22 Jan 2001 15:59:32 +0000 (15:59 +0000)]
Once again, numeric-smelling objects compare smaller than non-numeric
ones.

24 years agoBetter test for skipping project creation: the project file should also exist and...
Jack Jansen [Mon, 22 Jan 2001 15:38:40 +0000 (15:38 +0000)]
Better test for skipping project creation: the project file should also exist and be newer than the xml file, and the .exp should exist.

24 years agoSF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
Guido van Rossum [Mon, 22 Jan 2001 15:29:14 +0000 (15:29 +0000)]
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin

24 years agoFinn Bock (SF patch #103349):
Guido van Rossum [Mon, 22 Jan 2001 14:53:29 +0000 (14:53 +0000)]
Finn Bock (SF patch #103349):
Allow pickle.py to be using with Jython unicode strings

24 years agoFinn Bock (SF patch #103345): Avoid outdated exec form in
Guido van Rossum [Mon, 22 Jan 2001 14:51:41 +0000 (14:51 +0000)]
Finn Bock (SF patch #103345): Avoid outdated exec form in
test_class.py.

24 years agoNo need to make the S_ constants 32 bit (and its actually harmful because of multiple...
Jack Jansen [Mon, 22 Jan 2001 14:51:03 +0000 (14:51 +0000)]
No need to make the S_ constants 32 bit (and its actually harmful because of multiple defines).

24 years agoWaste needs the ICProgKit API.
Jack Jansen [Mon, 22 Jan 2001 14:50:05 +0000 (14:50 +0000)]
Waste needs the ICProgKit API.

24 years agoIt's SetControlData_Handle, not SetControl_DataHandle.
Jack Jansen [Mon, 22 Jan 2001 14:49:28 +0000 (14:49 +0000)]
It's SetControlData_Handle, not SetControl_DataHandle.

24 years agounicodedatabase.c is no longer needed thanks to Fredrik's patches.
Marc-André Lemburg [Mon, 22 Jan 2001 10:38:27 +0000 (10:38 +0000)]
unicodedatabase.c is no longer needed thanks to Fredrik's patches.

24 years agoFix off-by-one error in array size.
Martin v. Löwis [Mon, 22 Jan 2001 08:19:10 +0000 (08:19 +0000)]
Fix off-by-one error in array size.

24 years agounicodedatabase.[ch] are no longer used.
Fredrik Lundh [Mon, 22 Jan 2001 07:28:10 +0000 (07:28 +0000)]
unicodedatabase.[ch] are no longer used.

24 years agoremoved unicodedatabase.[ch] references from Makefile.pre.in.
Fredrik Lundh [Mon, 22 Jan 2001 07:25:44 +0000 (07:25 +0000)]
removed unicodedatabase.[ch] references from Makefile.pre.in.
also added unicodename_db.h dependency to ucnhash.

24 years agocom_init(): My entry into the smallest patch possible category.
Barry Warsaw [Mon, 22 Jan 2001 04:35:57 +0000 (04:35 +0000)]
com_init(): My entry into the smallest patch possible category.
(cosmetic whitespace change).

24 years agoBeginning of a "What's New in Python 2.1" article
Andrew M. Kuchling [Mon, 22 Jan 2001 04:02:09 +0000 (04:02 +0000)]
Beginning of a "What's New in Python 2.1" article

24 years agoFixed teensy memory leak, but doesn't help test_sax on Windows.
Tim Peters [Mon, 22 Jan 2001 03:20:55 +0000 (03:20 +0000)]
Fixed teensy memory leak, but doesn't help test_sax on Windows.

24 years agoRemove unicodedatabase.c from the unicodedata subproject.
Tim Peters [Sun, 21 Jan 2001 23:49:56 +0000 (23:49 +0000)]
Remove unicodedatabase.c from the unicodedata subproject.

24 years agoMove declaration of 'clnt_create()' NIS function to pyport.h, as it's
Thomas Wouters [Sun, 21 Jan 2001 23:34:12 +0000 (23:34 +0000)]
Move declaration of 'clnt_create()' NIS function to pyport.h, as it's
supposed to be declared in system include files (with a proper prototype.)
Should be moved to a platform-specific block if anyone finds out which
broken platforms need it :-)

24 years agoUnicode nits: Don't include unicodedatabase.h no more. And make sure
Fredrik Lundh [Sun, 21 Jan 2001 23:31:52 +0000 (23:31 +0000)]
Unicode nits: Don't include unicodedatabase.h no more.  And make sure
to build *all* tables in makeunicodedata.py.

24 years agocompress unicode decomposition tables (this saves another 55k)
Fredrik Lundh [Sun, 21 Jan 2001 22:41:08 +0000 (22:41 +0000)]
compress unicode decomposition tables (this saves another 55k)

24 years agoRe-generated with relative paths.
Jack Jansen [Sun, 21 Jan 2001 22:27:11 +0000 (22:27 +0000)]
Re-generated with relative paths.

24 years agoAdded CarbonAccessors.o to the non-carbon targets, and probably a few minor things...
Jack Jansen [Sun, 21 Jan 2001 22:26:26 +0000 (22:26 +0000)]
Added CarbonAccessors.o to the non-carbon targets, and probably a few minor things having to do with Python 2.1a1.

24 years agoAdded support for forced project building.
Jack Jansen [Sun, 21 Jan 2001 22:25:11 +0000 (22:25 +0000)]
Added support for forced project building.
Added carbon targets (mainly placeholders at the moment).

24 years agoAdded a force option (to force project generation, the default is now to only generat...
Jack Jansen [Sun, 21 Jan 2001 22:24:27 +0000 (22:24 +0000)]
Added a force option (to force project generation, the default is now to only generate if different).
Try to convert all search paths to relative.

24 years agoDon't generate project if the XML file already exists and is identical to what we...
Jack Jansen [Sun, 21 Jan 2001 22:23:13 +0000 (22:23 +0000)]
Don't generate project if the XML file already exists and is identical to what we've generated. Overridable with a "force" argument to mkproject().

24 years agoPatch #103342: Make shutil.copytree more useful under Jython.
Tim Peters [Sun, 21 Jan 2001 20:00:00 +0000 (20:00 +0000)]
Patch #103342:  Make shutil.copytree more useful under Jython.

24 years agoPatch #103343: Allow the important test_pkg to succeed under Jython.
Tim Peters [Sun, 21 Jan 2001 19:51:53 +0000 (19:51 +0000)]
Patch #103343:  Allow the important test_pkg to succeed under Jython.

24 years agoIn format(), consider sign only after grouping.
Martin v. Löwis [Sun, 21 Jan 2001 18:52:33 +0000 (18:52 +0000)]
In format(), consider sign only after grouping.
Suggested by Kevin Jacobs in bug report #129417.

24 years agoPatch #103344: Sort dicts from extcall for easier comparison with Jython.
Tim Peters [Sun, 21 Jan 2001 18:52:02 +0000 (18:52 +0000)]
Patch #103344:  Sort dicts from extcall for easier comparison with Jython.

24 years agoforgot to check in the new makeunicodedata.py script
Fredrik Lundh [Sun, 21 Jan 2001 17:01:31 +0000 (17:01 +0000)]
forgot to check in the new makeunicodedata.py script

24 years agoRemove a smelly export.
Neil Schemenauer [Sun, 21 Jan 2001 16:25:18 +0000 (16:25 +0000)]
Remove a smelly export.

24 years agoCheck for None to decide when pyexpat should not be built.
Martin v. Löwis [Sun, 21 Jan 2001 10:54:52 +0000 (10:54 +0000)]
Check for None to decide when pyexpat should not be built.

24 years agoFix typo: MICRO instead of MINOR.
Martin v. Löwis [Sun, 21 Jan 2001 10:22:12 +0000 (10:22 +0000)]
Fix typo: MICRO instead of MINOR.

24 years agoMerge with 1.25 of PyXML:
Martin v. Löwis [Sun, 21 Jan 2001 10:18:10 +0000 (10:18 +0000)]
Merge with 1.25 of PyXML:
Participate in garbage collection if available.
Potentially decref handlers in clear_handlers.
Partially reindent.
Put synthetic frame object on the stack to support better error output.
Expose Python codecs to pyexpat.
Add new Expat 1.2 handlers and API.
Fix memory leak: release self->handlers.
Do not expect PyModule_AddObject and PyModule_AddStringConstant in 2.0b1.
Raise exception in ParseFile.

24 years agoWhitespace normalization.
Tim Peters [Sun, 21 Jan 2001 07:07:30 +0000 (07:07 +0000)]
Whitespace normalization.

24 years agoWhitespace normalization.
Tim Peters [Sun, 21 Jan 2001 04:49:16 +0000 (04:49 +0000)]
Whitespace normalization.

24 years agoBug #128475: mimetools.encode (sometimes) fails when called from a thread.
Tim Peters [Sun, 21 Jan 2001 03:40:37 +0000 (03:40 +0000)]
Bug #128475: mimetools.encode (sometimes) fails when called from a thread.
pythonrun.c:  In Py_Finalize, don't reset the initialized flag until after
the exit funcs have run.
atexit.py:  in _run_exitfuncs, mutate the list of pending calls in a
threadsafe way.  This wasn't a contributor to bug 128475, it just burned
my eyeballs when looking at that bug.

24 years agomore __all__ updates
Skip Montanaro [Sat, 20 Jan 2001 23:34:12 +0000 (23:34 +0000)]
more __all__ updates

24 years agoadded some tests for urlencode
Skip Montanaro [Sat, 20 Jan 2001 20:22:30 +0000 (20:22 +0000)]
added some tests for urlencode

24 years agoadded __all__ lists to a number of Python modules
Skip Montanaro [Sat, 20 Jan 2001 19:54:20 +0000 (19:54 +0000)]
added __all__ lists to a number of Python modules
added test script and expected output file as well
this closes patch 103297.
__all__ attributes will be added to other modules without first submitting
a patch, just adding the necessary line to the test script to verify
more-or-less correct implementation.

24 years agodocstring typo
Skip Montanaro [Sat, 20 Jan 2001 19:12:54 +0000 (19:12 +0000)]
docstring typo

24 years agoI've been using gdb a lot lately -- I'm missing 'bt' as a command in
Guido van Rossum [Sat, 20 Jan 2001 17:57:37 +0000 (17:57 +0000)]
I've been using gdb a lot lately -- I'm missing 'bt' as a command in
pdb (pdb calls it 'where').  Added 'bt' as an alias for 'where'.

24 years agorewrite of robotparser.py by Bastian Kleineidam. Closes patch 102229.
Skip Montanaro [Sat, 20 Jan 2001 15:59:25 +0000 (15:59 +0000)]
rewrite of robotparser.py by Bastian Kleineidam.  Closes patch 102229.

24 years agomodify urlencode so sequences in the dict are treated as multivalued
Skip Montanaro [Sat, 20 Jan 2001 15:56:39 +0000 (15:56 +0000)]
modify urlencode so sequences in the dict are treated as multivalued
parameters.  This closes the code part of patch 103314.

24 years agoFix comment.
Neil Schemenauer [Sat, 20 Jan 2001 15:50:42 +0000 (15:50 +0000)]
Fix comment.

24 years agoBetter error message if ucnhash cannot be found (obscure attribute
Fredrik Lundh [Sat, 20 Jan 2001 11:15:25 +0000 (11:15 +0000)]
Better error message if ucnhash cannot be found (obscure attribute
errors aren't that helpful), or doesn't contain what's expected from
it.  Also tweaked the test script so it compiles even if ucnhash is
missing.

24 years agoUpdating NEWS to match the current state of affairs.
Marc-André Lemburg [Sat, 20 Jan 2001 10:34:52 +0000 (10:34 +0000)]
Updating NEWS to match the current state of affairs.

24 years agoTim chastens:
Barry Warsaw [Sat, 20 Jan 2001 06:24:55 +0000 (06:24 +0000)]
Tim chastens:

    Barry, that comment belongs in the code, not in the checkin msg.
    The code *used* to do this correctly (as you well know, since you
    & I went thru considerable pain to fix this the first time).
    However, because the *reason* for the convolution wasn't recorded
    in the code as a comment, somebody threw it all away the first
    time it got reworked.

    c-code-isn't-often-self-explanatory-ly y'rs  - tim

default_3way_compare(): Stick the checkin message from 2.110 in a
comment.

24 years agodefault_3way_compare(): When comparing the pointers, they must be cast
Barry Warsaw [Sat, 20 Jan 2001 06:08:10 +0000 (06:08 +0000)]
default_3way_compare(): When comparing the pointers, they must be cast
to integer types (i.e. Py_uintptr_t, our spelling of C9X's uintptr_t).
ANSI specifies that pointer compares other than == and != to
non-related structures are undefined.  This quiets an Insure
portability warning.

24 years agoSF patch #103336: Missing cast.
Tim Peters [Sat, 20 Jan 2001 05:15:26 +0000 (05:15 +0000)]
SF patch #103336:  Missing cast.

24 years agoWhen running the tests twice, stuck a "Press any key to continue ..." pause
Tim Peters [Sat, 20 Jan 2001 01:53:43 +0000 (01:53 +0000)]
When running the tests twice, stuck a "Press any key to continue ..." pause
between passes:  Win9x DOS boxes are limited to 50 lines max, and the result
of the first pass scrolls off irretrievably otherwise.  Also simplified
the goto-laden logic a bit.

24 years agoVarious tweaks for Python 2.1a1.
Jack Jansen [Fri, 19 Jan 2001 23:47:21 +0000 (23:47 +0000)]
Various tweaks for Python 2.1a1.

24 years agoTreat an empty kwdict argument the same as a missing one.
Jack Jansen [Fri, 19 Jan 2001 23:46:28 +0000 (23:46 +0000)]
Treat an empty kwdict argument the same as a missing one.

24 years agoUndefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of...
Jack Jansen [Fri, 19 Jan 2001 23:45:57 +0000 (23:45 +0000)]
Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of a funny define makes portable code impossible:-(

24 years agoUse #if TARGET_API_MAC_CARBON to determine carbon/classic macos, not #ifdef.
Jack Jansen [Fri, 19 Jan 2001 23:34:06 +0000 (23:34 +0000)]
Use #if TARGET_API_MAC_CARBON to determine carbon/classic macos, not #ifdef.

24 years agoMake the 'time' argument to the timemodule functions strftime, asctime,
Thomas Wouters [Fri, 19 Jan 2001 23:16:56 +0000 (23:16 +0000)]
Make the 'time' argument to the timemodule functions strftime, asctime,
ctime, gmtime and localtime optional, defaulting to 'the current time' in
all cases. Adjust docs, add news item. Also convert all argument-handling to
METH_VARARGS. Closes SF patch #103265.

24 years agoFixed a bunch of typos caught by Gilles Civario.
Fred Drake [Fri, 19 Jan 2001 22:48:33 +0000 (22:48 +0000)]
Fixed a bunch of typos caught by Gilles Civario.

24 years agoClarify comments about returning None using a return without an expression;
Fred Drake [Fri, 19 Jan 2001 22:34:59 +0000 (22:34 +0000)]
Clarify comments about returning None using a return without an expression;
this is not hard to explain!

Closes SF bug #129345.

24 years agoNow that Marc-Andre has retracted unistr(), remove the tests.
Guido van Rossum [Fri, 19 Jan 2001 21:57:52 +0000 (21:57 +0000)]
Now that Marc-Andre has retracted unistr(), remove the tests.

24 years agoA hack to augment sys.path with the build/lib.<platform> directory
Guido van Rossum [Fri, 19 Jan 2001 21:54:59 +0000 (21:54 +0000)]
A hack to augment sys.path with the build/lib.<platform> directory
created by Andrew's setup.py script, *if* we're actually running from
the build directory.  (The test for that: whether the sys.path[-1]
ends in "/Modules".)

This has one disadvantage: it imports a fair amount of code from the
distutils package, just in order to be able to calculate the correct
pathname.  See if I care. :-)

24 years agoRun tests twice by default, first time deleting .pyc/.pyo files.
Tim Peters [Fri, 19 Jan 2001 21:43:49 +0000 (21:43 +0000)]
Run tests twice by default, first time deleting .pyc/.pyo files.
New option "-q" to leave .pyc/.pyo alone.

24 years agoBacked out the unistr() builtin.
Marc-André Lemburg [Fri, 19 Jan 2001 21:36:19 +0000 (21:36 +0000)]
Backed out the unistr() builtin.

24 years agoUse a saner test filename, to work on Windows.
Guido van Rossum [Fri, 19 Jan 2001 21:06:50 +0000 (21:06 +0000)]
Use a saner test filename, to work on Windows.

24 years agoDelete the bytecode from the library and tests before running the
Guido van Rossum [Fri, 19 Jan 2001 21:00:04 +0000 (21:00 +0000)]
Delete the bytecode from the library and tests before running the
tests for the first time -- like the Unix Makefile does.  This
avoids not catching problems in the bytecode generator and/or bytecode
marshalling.

24 years ago"make test" was still broken when building in a subdirectory: Andrew's
Guido van Rossum [Fri, 19 Jan 2001 20:21:59 +0000 (20:21 +0000)]
"make test" was still broken when building in a subdirectory: Andrew's
fix set PYTHONPATH to something starting with $(srcdir)/build/lib....
The use of $(srcdir) was wrong here, it should be ./build/lib...

24 years agoOK, checking in patch 103329.
Moshe Zadka [Fri, 19 Jan 2001 19:56:27 +0000 (19:56 +0000)]
OK, checking in patch 103329.
Please check it against your nearest pop server --
mine doesn't support APOP (I checked I'm getting the same error
message, though)

24 years agoAdd some regression tests of coredump bugs in funcobject.c 2.31. Also
Barry Warsaw [Fri, 19 Jan 2001 19:55:12 +0000 (19:55 +0000)]
Add some regression tests of coredump bugs in funcobject.c 2.31.  Also
added a test of a coredump that would occur when del'ing
func_defaults (put here for convenience).

24 years agoApplication and elaboration of patch #103305 to fix core dumps when
Barry Warsaw [Fri, 19 Jan 2001 19:53:29 +0000 (19:53 +0000)]
Application and elaboration of patch #103305 to fix core dumps when
del'ing func.func_dict.  I took the opportunity to also clean up some
other nits with the code, namely core dumps when del'ing func_defaults
and KeyError instead of AttributeError when del'ing a non-existant
function attribute.

Specifically,

func_memberlist: Move func_dict and __dict__ into here instead of
special casing them in the setattro and getattro methods.  I don't
remember why I took them out of here before I first uploaded the PEP
232 patch. :/

func_getattro(): No need to special case __dict__/func_dict since
their now in the func_memberlist and PyMember_Get() should Do The
Right Thing (i.e. transforms NULL values into Py_None).

func_setattro(): Document the intended behavior of del'ing or setting
to None one of the special func_* attributes.  I.e.:

    func_code - can only be set to a code object.  It can't be del'd
    or set to None.

    func_defaults - can be del'd.  Can only be set to None or a tuple.

    func_dict - can be del'd.  Can only be set to None or a
    dictionary.

Fix core dumps and incorrect exceptions as described above.  Also, if
we're del'ing an arbitrary function attribute but func_dict is NULL,
don't create func_dict before discovering that we'll get an
AttributeError anyway.

24 years agogethash/cmpname both looked beyond the end of the character name.
Fredrik Lundh [Fri, 19 Jan 2001 19:45:02 +0000 (19:45 +0000)]
gethash/cmpname both looked beyond the end of the character name.
This patch makes u"\N{x}" a bit less dependent on pure luck...

24 years agoRepair "selective cut-&-paste" screwup.
Tim Peters [Fri, 19 Jan 2001 19:17:46 +0000 (19:17 +0000)]
Repair "selective cut-&-paste" screwup.

24 years agoChange verify() function to raise TestFailed, not AssertionError.
Guido van Rossum [Fri, 19 Jan 2001 19:01:56 +0000 (19:01 +0000)]
Change verify() function to raise TestFailed, not AssertionError.

(I realize that I didn't really test this, because all the tests
succeed, so verify() never raised an AssertionError -- but the test
suite still succeeds, so I'm not too worried.)

24 years agoGvR pointed out the correct way to check for statically built modules;
Andrew M. Kuchling [Fri, 19 Jan 2001 16:58:21 +0000 (16:58 +0000)]
GvR pointed out the correct way to check for statically built modules;
    sys.builtin_module_names
Add SSL directories in /usr/contrib/ for FreeBSD

24 years agoBump __version__; add authorship note for the BaseServer patch.
Guido van Rossum [Fri, 19 Jan 2001 16:45:46 +0000 (16:45 +0000)]
Bump __version__; add authorship note for the BaseServer patch.

24 years agoAdd Jason Tishler to the ACKS file
Andrew M. Kuchling [Fri, 19 Jan 2001 16:29:28 +0000 (16:29 +0000)]
Add Jason Tishler to the ACKS file

24 years agoPatch #103220 from Jason Tishler:
Andrew M. Kuchling [Fri, 19 Jan 2001 16:26:12 +0000 (16:26 +0000)]
Patch #103220 from Jason Tishler:
  This patch adds support for Cygwin to util.get_platform(). A Cygwin
  specific case is needed due to the format of Cygwin's uname command,
  which contains '/' characters.

24 years agoMinor patch from Thomas Gellekum:
Andrew M. Kuchling [Fri, 19 Jan 2001 15:35:26 +0000 (15:35 +0000)]
Minor patch from Thomas Gellekum:
   * Deletes the Panel_NoArgReturnStringFunction() macro, which isn't used
     anymore
   * Adjusts two comments.

24 years agonew unicode name database (~160k)
Fredrik Lundh [Fri, 19 Jan 2001 11:52:33 +0000 (11:52 +0000)]
new unicode name database (~160k)

24 years agoimproved the ucnhash test a bit
Fredrik Lundh [Fri, 19 Jan 2001 11:13:46 +0000 (11:13 +0000)]
improved the ucnhash test a bit

24 years agoadded "getcode" and "getname" methods to the ucnhash module (they're
Fredrik Lundh [Fri, 19 Jan 2001 11:00:42 +0000 (11:00 +0000)]
added "getcode" and "getname" methods to the ucnhash module (they're
probably more useful for the test code than for any applications, but
one never knows...)

24 years agoColor all word instances of "as" after "import", & on the same line, as if
Tim Peters [Fri, 19 Jan 2001 10:41:49 +0000 (10:41 +0000)]
Color all word instances of "as" after "import", & on the same line, as if
keywords.  Cheap approximation to the truth.

24 years agorefactored the unicodeobject/ucnhash interface, to hide the
Fredrik Lundh [Fri, 19 Jan 2001 09:45:02 +0000 (09:45 +0000)]
refactored the unicodeobject/ucnhash interface, to hide the
implementation details inside the ucnhash module.

also cleaned up the unicode copyright blurb a little; Secret Labs'
internal revision history isn't that interesting...

24 years agoUpdate the example DLL instructions for 2.1. Add example.def to the
Tim Peters [Fri, 19 Jan 2001 08:45:48 +0000 (08:45 +0000)]
Update the example DLL instructions for 2.1.  Add example.def to the
MSVC project file (as the instructions always recommended doing).

24 years agourllib.py very recently changed to produce uppercase escapes, but no
Tim Peters [Fri, 19 Jan 2001 07:00:08 +0000 (07:00 +0000)]
urllib.py very recently changed to produce uppercase escapes, but no
corresponding changes were made to its std test.

24 years agoWhitespace normalization.
Tim Peters [Fri, 19 Jan 2001 06:12:17 +0000 (06:12 +0000)]
Whitespace normalization.

24 years agotest_urllib is failing on Windows. I don't know why, but I can at least
Tim Peters [Fri, 19 Jan 2001 06:06:37 +0000 (06:06 +0000)]
test_urllib is failing on Windows.  I don't know why, but I can at least
change the test to give a clue about *where* it's failing.

24 years agoUse constructor form of "raise"; normalize <wink> docstrings.
Tim Peters [Fri, 19 Jan 2001 05:59:21 +0000 (05:59 +0000)]
Use constructor form of "raise"; normalize <wink> docstrings.

24 years agoJeremy's patch #103323: trivial tests of all untested modules.
Tim Peters [Fri, 19 Jan 2001 05:41:36 +0000 (05:41 +0000)]
Jeremy's patch #103323:  trivial tests of all untested modules.

24 years agoThis still mentioned IdlePrefs.py as the place to edit color
Guido van Rossum [Fri, 19 Jan 2001 03:30:58 +0000 (03:30 +0000)]
This still mentioned IdlePrefs.py as the place to edit color
preferences.  It is now in config.txt or ~/.idle.

24 years agomake the output of _test() suitable for use in the regression test
Jeremy Hylton [Fri, 19 Jan 2001 03:30:22 +0000 (03:30 +0000)]
make the output of _test() suitable for use in the regression test

24 years agoAnonymous SF bug 129288: "The python 2.0 urllib has %%%x as a format
Guido van Rossum [Fri, 19 Jan 2001 03:28:15 +0000 (03:28 +0000)]
Anonymous SF bug 129288: "The python 2.0 urllib has %%%x as a format
when quoting forbidden characters. There are scripts out there that
break with lower case, therefore I guess %%%X should be used."

I agree, so am fixing this.

24 years agomake error msg more informative when test of exec fails
Jeremy Hylton [Fri, 19 Jan 2001 03:26:33 +0000 (03:26 +0000)]
make error msg more informative when test of exec fails

24 years agoadd test for SyntaxError on
Jeremy Hylton [Fri, 19 Jan 2001 03:25:56 +0000 (03:25 +0000)]
add test for SyntaxError on
    def f(a):
        global a

24 years agoclearer error messages for apply() and "no locals"
Jeremy Hylton [Fri, 19 Jan 2001 03:25:05 +0000 (03:25 +0000)]
clearer error messages for apply() and "no locals"