]> granicus.if.org Git - python/log
python
24 years agoIn order to make this test work on Windows, the test locale has to be
Guido van Rossum [Sun, 15 Apr 2001 13:15:56 +0000 (13:15 +0000)]
In order to make this test work on Windows, the test locale has to be
set to 'en' there -- Windows does not understand the 'en_US' locale.
The test succeeds there.

24 years agoFix typo (missing "req." prefix on error_302_dict) found by Neil
Guido van Rossum [Sun, 15 Apr 2001 13:08:01 +0000 (13:08 +0000)]
Fix typo (missing "req." prefix on error_302_dict) found by Neil
Norwitz's PyChecker.

24 years agoFix typo in exception name (UnimplementedError should be
Guido van Rossum [Sun, 15 Apr 2001 13:06:04 +0000 (13:06 +0000)]
Fix typo in exception name (UnimplementedError should be
NotImplementedError) found by Neil Norwitz's PyChecker.

24 years agoFix typo in exception name (SGMLParserError should be SGMLParseError)
Guido van Rossum [Sun, 15 Apr 2001 13:01:41 +0000 (13:01 +0000)]
Fix typo in exception name (SGMLParserError should be SGMLParseError)
found by Neil Norwitz's PyChecker.

24 years agoFix typo in attribute name (file should be filename) found by
Guido van Rossum [Sun, 15 Apr 2001 12:51:42 +0000 (12:51 +0000)]
Fix typo in attribute name (file should be filename) found by
Neil Norwitz's PyChecker.

24 years agoFix typo in attribute name (chunk_size should be chunksize) found by
Guido van Rossum [Sun, 15 Apr 2001 12:40:13 +0000 (12:40 +0000)]
Fix typo in attribute name (chunk_size should be chunksize) found by
Neil Norwitz's PyChecker.

24 years ago- Typo in message for TestCase.failIfEqual()
Steve Purcell [Sun, 15 Apr 2001 09:18:32 +0000 (09:18 +0000)]
- Typo in message for TestCase.failIfEqual()
- Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)

24 years agoSet the SO_REUSEADDR socket option in the server thread -- this seems
Guido van Rossum [Sun, 15 Apr 2001 00:42:13 +0000 (00:42 +0000)]
Set the SO_REUSEADDR socket option in the server thread -- this seems
needed on some platforms (e.g. Solaris 8) when the test is run twice
in quick succession.

24 years agoBump version number and set date.
Fred Drake [Sat, 14 Apr 2001 18:36:03 +0000 (18:36 +0000)]
Bump version number and set date.

24 years agoRemove shared libraries as part of "make clean" rather than in "make
Guido van Rossum [Sat, 14 Apr 2001 17:57:07 +0000 (17:57 +0000)]
Remove shared libraries as part of "make clean" rather than in "make
clobber".  This is done so that after a "make clean", setup.py will
also recompile all extensions.

24 years agoMake one more private symbol static.
Guido van Rossum [Sat, 14 Apr 2001 17:55:41 +0000 (17:55 +0000)]
Make one more private symbol static.

24 years agoMake some private symbols static.
Guido van Rossum [Sat, 14 Apr 2001 17:55:09 +0000 (17:55 +0000)]
Make some private symbols static.

24 years agoMark Favas points out that there's an 'self.fp.flush()' call in the
Guido van Rossum [Sat, 14 Apr 2001 16:45:14 +0000 (16:45 +0000)]
Mark Favas points out that there's an 'self.fp.flush()' call in the
ZipFile.close() method that should be part of the preceding 'if'
block.  On some platforms (Mark noticed this on FreeBSD 4.2) doing a
flush() on a file open for reading is not allowed.

24 years agoAnother ACK.
Guido van Rossum [Sat, 14 Apr 2001 16:17:31 +0000 (16:17 +0000)]
Another ACK.

24 years agoPete Shinners discovered that zipfile.ZipFile() is called with mode
Guido van Rossum [Sat, 14 Apr 2001 16:17:00 +0000 (16:17 +0000)]
Pete Shinners discovered that zipfile.ZipFile() is called with mode
argument "wb", while the only valid modes are "r", "w" or "a".  Fix
this by changing the mode to "w".

24 years agoShould resolve [ #416039 ] pstats browser crashes.
Eric S. Raymond [Sat, 14 Apr 2001 15:16:05 +0000 (15:16 +0000)]
Should resolve [ #416039 ] pstats browser crashes.

24 years agoAdd "import thread" at the top of the module; this prevents us from
Guido van Rossum [Sat, 14 Apr 2001 14:35:43 +0000 (14:35 +0000)]
Add "import thread" at the top of the module; this prevents us from
failing later when Python is compiled without threading but a failing
'threading' module can be imported due to an earlier (caught) attempt.

24 years agoAdd more general warning against the SGI optimizer.
Guido van Rossum [Sat, 14 Apr 2001 13:09:53 +0000 (13:09 +0000)]
Add more general warning against the SGI optimizer.

24 years agoIf the sunaudiodev module is available but we cannot find an audio
Fred Drake [Sat, 14 Apr 2001 03:10:12 +0000 (03:10 +0000)]
If the sunaudiodev module is available but we cannot find an audio
device to use, skip this test instead of allowing an error to occur
when we attempt to play sound on the absent device.

Verified by Mark Favas.

24 years agoImport readline when possible to make the commaninterpreter UI nicer.
Eric S. Raymond [Sat, 14 Apr 2001 01:48:41 +0000 (01:48 +0000)]
Import readline when possible to make the commaninterpreter UI nicer.

24 years agoThis commit was manufactured by cvs2svn to create tag 'r21c1'. v2.1c1
cvs2svn [Fri, 13 Apr 2001 19:41:28 +0000 (19:41 +0000)]
This commit was manufactured by cvs2svn to create tag 'r21c1'.

24 years agoTim convinced me to augment the PSF license with a final clause just
Guido van Rossum [Fri, 13 Apr 2001 19:41:28 +0000 (19:41 +0000)]
Tim convinced me to augment the PSF license with a final clause just
like the one in the BeOpen license (and similar to the one in the CNRI
license, but with the "click-to-accept" part elided).

24 years agoClean up the unsightly mess around the readline header files. We now
Guido van Rossum [Fri, 13 Apr 2001 18:14:27 +0000 (18:14 +0000)]
Clean up the unsightly mess around the readline header files.  We now
always:

- #undef HAVE_CONFIG_H (because otherwise chardefs.h tries to include
  strings.h)

- #include readline.h and history.h

and we never declare any readline function prototypes ourselves.

This makes it compile with readline 4.2, albeit with a few warnings.
Some of the remaining warnings are about completion_matches(), which
is renamed to rl_completion_matches().

I've tested it with various other versions, from 2.0 up, and they all
seem to work (some with warnings) -- but only on Red Hat Linux 6.2.

Fixing the warnings for readline 4.2 would break compatibility with
3.0 (and maybe even earlier versions), and readline doesn't seem to
have a way to test for its version at compile time, so I'd rather
leave the warnings in than break compilation with older versions.

24 years agoAdd convenience targets that build all archive types for single formatting
Fred Drake [Fri, 13 Apr 2001 18:00:23 +0000 (18:00 +0000)]
Add convenience targets that build all archive types for single formatting
versions.

24 years agoMichael Hudson:
Fred Drake [Fri, 13 Apr 2001 17:55:02 +0000 (17:55 +0000)]
Michael Hudson:
Update docs for PyDict_Next() based on the most recent changes to the
dictionary code.

This closes SF patch #409864.

24 years agoI am TENTATIVELY checking in Martin von Loewis's patch for the SSL
Guido van Rossum [Fri, 13 Apr 2001 17:54:04 +0000 (17:54 +0000)]
I am TENTATIVELY checking in Martin von Loewis's patch for the SSL
problem reported by Neil Schemenauer on python-dev on 4/12/01, wth
subject "Problem with SSL and socketmodule on Debian Potato?".

It's tentative because Moshe objected, but Martin rebutted, and Moshe
seems unavailable for comments.

(Note that with OpenSSL 0.9.6a, I get a lot of compilation warnings
for socketmodule.c -- I'm assuming I can safely ignore these until 2.1
is released.)

24 years agosplit long line
Jeremy Hylton [Fri, 13 Apr 2001 17:50:20 +0000 (17:50 +0000)]
split long line

24 years agoFixup some platform annotations.
Fred Drake [Fri, 13 Apr 2001 17:37:00 +0000 (17:37 +0000)]
Fixup some platform annotations.

24 years agoWork around the conversion of ">>" and "<<" to guillemets. Reported by Ping.
Fred Drake [Fri, 13 Apr 2001 17:32:49 +0000 (17:32 +0000)]
Work around the conversion of ">>" and "<<" to guillemets.  Reported by Ping.

24 years agoWork around the conversion of ">>" and "<<" to guillemets. Reported by Ping.
Fred Drake [Fri, 13 Apr 2001 17:25:38 +0000 (17:25 +0000)]
Work around the conversion of ">>" and "<<" to guillemets.  Reported by Ping.

24 years agoAdded regression test for SF bug #415660 (failure to invalidate all
Fred Drake [Fri, 13 Apr 2001 17:18:15 +0000 (17:18 +0000)]
Added regression test for SF bug #415660 (failure to invalidate all
references to an object before calling registered callbacks).

Change last uses of verify() to self.assert_().

24 years agocleanup_helper(): Make sure we invalidate all reference objects
Fred Drake [Fri, 13 Apr 2001 17:15:47 +0000 (17:15 +0000)]
cleanup_helper():  Make sure we invalidate all reference objects
                   before calling any callbacks.  This is important
                   since the callback objects only look at themselves
                   to determine that they are invalide.  This change
                   avoids a segfault when callbacks use a different
                   reference to an object in the process of being
                   deallocated.

This fixes SF bug #415660.

24 years agoSlight adaptation of Michael Hudson's patch to test PyDict_Next()
Guido van Rossum [Fri, 13 Apr 2001 17:08:15 +0000 (17:08 +0000)]
Slight adaptation of Michael Hudson's patch to test PyDict_Next()
(with modification of existing dict elements!).

This is part of SF patch #409864: lazy fix for Pings bizarre scoping
crash.

The adaptation I made to Michael's patch was to change the error
handling to avoid masking other errors (moving the specific error
message to inside test_dict_inner()), and to insert a test for
dict==NULL at the start.

24 years agoFix typo in comment (the module is now called _testcapi, not _test).
Guido van Rossum [Fri, 13 Apr 2001 17:03:04 +0000 (17:03 +0000)]
Fix typo in comment (the module is now called _testcapi, not _test).

24 years agoChange error message raised when free variable is not yet bound. It
Jeremy Hylton [Fri, 13 Apr 2001 16:51:46 +0000 (16:51 +0000)]
Change error message raised when free variable is not yet bound.  It
now raises NameError instead of UnboundLocalError, because the var in
question is definitely not local.  (This affects test_scope.py)

Also update the recent fix by Ping using get_func_name().  Replace
tests of get_func_name() return value with call to get_func_desc() to
match all the other uses.

24 years agoWork around the conversion of ">>" and "<<" to guillemets. Reported by Ping.
Fred Drake [Fri, 13 Apr 2001 15:55:25 +0000 (15:55 +0000)]
Work around the conversion of ">>" and "<<" to guillemets.  Reported by Ping.

24 years agoWork around the conversion of ">>" and "<<" to guillemets. Reported by Ping.
Fred Drake [Fri, 13 Apr 2001 15:54:41 +0000 (15:54 +0000)]
Work around the conversion of ">>" and "<<" to guillemets.  Reported by Ping.

Wrap some long lines and fix some markup nits.

24 years agoPatch by Ping (SF bug 415879, Exception.__init__() causes segfault):
Guido van Rossum [Fri, 13 Apr 2001 15:42:40 +0000 (15:42 +0000)]
Patch by Ping (SF bug 415879, Exception.__init__() causes segfault):

   Calling an unbound method on a C extension class without providing
   an instance can yield a segfault.  Try "Exception.__init__()" or
   "ValueError.__init__()".

   This is a simple fix. The error-reporting bits in call_method
   mistakenly treat the misleadingly-named variable "func" as a
   function, when in fact it is a method.

   If we let get_func_name take care of the work, all is fine.

24 years agoOne-character style change to appease Netscape stylesheets.
Ka-Ping Yee [Fri, 13 Apr 2001 15:04:32 +0000 (15:04 +0000)]
One-character style change to appease Netscape stylesheets.

24 years agoOops. Need an extra blank line after the PSF license.
Guido van Rossum [Fri, 13 Apr 2001 15:04:31 +0000 (15:04 +0000)]
Oops.  Need an extra blank line after the PSF license.

24 years ago- Inserted the (tentative) PSF license.
Guido van Rossum [Fri, 13 Apr 2001 15:04:00 +0000 (15:04 +0000)]
- Inserted the (tentative) PSF license.

- Removed the subsection numbering in section B (each time a new
  license is inserted in the front, the others have to be renumbered).

- Changed the words in the intro to avoid implying that 1.6.1 is
  GPL-compatible.

24 years agoUse nturl2path to generate a file: URL to source files in Windows.
Ka-Ping Yee [Fri, 13 Apr 2001 15:00:27 +0000 (15:00 +0000)]
Use nturl2path to generate a file: URL to source files in Windows.

24 years agoAdd test for SF bug #405427
Jeremy Hylton [Fri, 13 Apr 2001 14:57:44 +0000 (14:57 +0000)]
Add test for SF bug #405427

24 years agoSF patch #405845 by Martin von Löwis
Jeremy Hylton [Fri, 13 Apr 2001 14:57:08 +0000 (14:57 +0000)]
SF patch #405845 by Martin von Löwis
Fixes SF bug #405427.
If an http response has a bogus return code, e.g. 400.100, raise
BadStatusLine.

24 years agoUpdate to reflect new tokenize_test.py
Jeremy Hylton [Fri, 13 Apr 2001 14:55:18 +0000 (14:55 +0000)]
Update to reflect new tokenize_test.py

24 years agoWork around the conversion of ">>" and "<<" to guillemets. Reported by Ping.
Fred Drake [Fri, 13 Apr 2001 14:52:39 +0000 (14:52 +0000)]
Work around the conversion of ">>" and "<<" to guillemets.  Reported by Ping.

24 years agoThere's no need for the tokenize tests to include a SyntaxError.
Jeremy Hylton [Fri, 13 Apr 2001 14:36:51 +0000 (14:36 +0000)]
There's no need for the tokenize tests to include a SyntaxError.

24 years agoMinor markup adjustments.
Fred Drake [Fri, 13 Apr 2001 14:34:58 +0000 (14:34 +0000)]
Minor markup adjustments.
Turn reference to the cmd module into a hyperlink.

24 years agoClean up isroutine().
Ka-Ping Yee [Fri, 13 Apr 2001 14:04:02 +0000 (14:04 +0000)]
Clean up isroutine().

24 years agoUse inspect.stack()[1][3] to tell if Helper.__repr__ is called interactively.
Ka-Ping Yee [Fri, 13 Apr 2001 13:57:31 +0000 (13:57 +0000)]
Use inspect.stack()[1][3] to tell if Helper.__repr__ is called interactively.

24 years agoAdd inode checks to detect circular symbolic links (so that the
Ka-Ping Yee [Fri, 13 Apr 2001 13:53:07 +0000 (13:53 +0000)]
Add inode checks to detect circular symbolic links (so that the
    Tools/idle/idlelib link doesn't cause an infinite loop -- aack!)

24 years agoSmall style change to accommodate Netscape.
Ka-Ping Yee [Fri, 13 Apr 2001 12:11:19 +0000 (12:11 +0000)]
Small style change to accommodate Netscape.

24 years agoRobustify getfile() against classes that lie about their __module__s
Ka-Ping Yee [Fri, 13 Apr 2001 12:10:40 +0000 (12:10 +0000)]
Robustify getfile() against classes that lie about their __module__s
    (such as the exceptions in _weakref and _locale!)

24 years agoWord-wrap the list of cross-references.
Ka-Ping Yee [Fri, 13 Apr 2001 11:02:51 +0000 (11:02 +0000)]
Word-wrap the list of cross-references.

24 years agoAnother pass through the topic table to fill in cross references.
Ka-Ping Yee [Fri, 13 Apr 2001 10:53:25 +0000 (10:53 +0000)]
Another pass through the topic table to fill in cross references.
Restore Helper.__repr__ for now.

24 years agoMake force-loading optional; don't force-load in interactive mode.
Ka-Ping Yee [Fri, 13 Apr 2001 09:55:49 +0000 (09:55 +0000)]
Make force-loading optional; don't force-load in interactive mode.
Make synopsis() load modules as '__temp__' so they don't clobber anything.
Change "constants" section to "data" section.
Don't show __builtins__ or __doc__ in "data" section.
For Bob Weiner: don't boldface text in Emacs shells or dumb terminals.
Remove Helper.__repr__ (it really belongs in site.py, and should be                 guarded by a check for len(inspect.stack) <= 2).

24 years agoRemove duplicate type objects from isroutine() and isbuiltin().
Ka-Ping Yee [Fri, 13 Apr 2001 09:15:08 +0000 (09:15 +0000)]
Remove duplicate type objects from isroutine() and isbuiltin().
Make getmodule() on a module return the module itself.

24 years agoPatch #415777: new grouping strategy.
Martin v. Löwis [Fri, 13 Apr 2001 08:09:50 +0000 (08:09 +0000)]
Patch #415777: new grouping strategy.
fixes bug #414940, and redoes the fix for #129417 in a different way.
It also fixes a number of other problems with locale-specific formatting:
If there is leading or trailing spaces, then no grouping should be applied
in the spaces, and the total length of the string should not be changed
due to grouping.
Also added test case which works only if the en_US locale is available.

24 years agoWhitespace normalization.
Tim Peters [Fri, 13 Apr 2001 05:37:27 +0000 (05:37 +0000)]
Whitespace normalization.

24 years agoUpdate the helper scripts that push development docs to SourceForge;
Fred Drake [Fri, 13 Apr 2001 05:13:55 +0000 (05:13 +0000)]
Update the helper scripts that push development docs to SourceForge;
this version avoids having to build a separate authenticated connection
to push the update-docs.sh script to SF.

24 years agoAdd entry for ColorPicker documentation as well.
Fred Drake [Fri, 13 Apr 2001 04:50:01 +0000 (04:50 +0000)]
Add entry for ColorPicker documentation as well.

24 years agoDocumentation for Just's ColorPicker module, so the Mac OS guys get
Fred Drake [Fri, 13 Apr 2001 04:49:30 +0000 (04:49 +0000)]
Documentation for Just's ColorPicker module, so the Mac OS guys get
something out of this documentation release as well.  ;-)

24 years agoNote additions to pydoc and pstats.
Guido van Rossum [Fri, 13 Apr 2001 00:46:14 +0000 (00:46 +0000)]
Note additions to pydoc and pstats.

24 years agoAdded a test main to the pstats library that can help you browse profile dumps.
Eric S. Raymond [Fri, 13 Apr 2001 00:23:01 +0000 (00:23 +0000)]
Added a test main to the pstats library that can help you browse profile dumps.

24 years ago_synthesize(): Helper function: when the users passes a specific
Fred Drake [Thu, 12 Apr 2001 22:07:27 +0000 (22:07 +0000)]
_synthesize():  Helper function:  when the users passes a specific
                value for the 'using' parameter of the get() function
                or the BROWSER environment variable, if the thing
                passed in is a path (as seems to be the case with KDE)
                instead of a short name, examine the available
                controllers to see if we can synthesize one based on a
                pre-registered controller that shares the same base
                name.

get():  If the user specifies a browser we don't know about, use
        _synthesize() to attempt to create a usable controller.

Some small adjustments were needed in some of the browser classes to
support this.

24 years agoPop loop off the loop stack before handling the loop's else clause.
Jeremy Hylton [Thu, 12 Apr 2001 21:54:41 +0000 (21:54 +0000)]
Pop loop off the loop stack before handling the loop's else clause.
Otherwise, continue/break will attempt to affect the wrong loop.

A few more fiddles to get the SET_LINENOs consistent across compilers.

24 years agoUse new _implicitNameOp() to generate name op code for list comprehensions.
Jeremy Hylton [Thu, 12 Apr 2001 21:04:43 +0000 (21:04 +0000)]
Use new _implicitNameOp() to generate name op code for list comprehensions.

Always emit a SET_LINENO 0 at the beginning of the module.  The
builtin compiler does this, and it's much easier to compare bytecode
generated by the two compilers if they both do.

Move the SET_LINENO inside the FOR_LOOP block for list
comprehensions.  Also for compat. with builtin compiler.

24 years agoBecause this code was derived from Python 1.6.1 (amongst others), the
Guido van Rossum [Thu, 12 Apr 2001 20:53:31 +0000 (20:53 +0000)]
Because this code was derived from Python 1.6.1 (amongst others), the
CNRI copyright should be updated to include 2001.

24 years agoFix linking to classes (in class tree, and add links on unbound methods).
Ka-Ping Yee [Thu, 12 Apr 2001 20:39:14 +0000 (20:39 +0000)]
Fix linking to classes (in class tree, and add links on unbound methods).

24 years agoFix call to ModuleScanner from GUI search interface.
Ka-Ping Yee [Thu, 12 Apr 2001 20:27:31 +0000 (20:27 +0000)]
Fix call to ModuleScanner from GUI search interface.
Fix handling of unbound top-level methods.

24 years agoAdded warning that FancyURLopener prompts the user on the terminal when
Fred Drake [Thu, 12 Apr 2001 20:26:49 +0000 (20:26 +0000)]
Added warning that FancyURLopener prompts the user on the terminal when
basic authentication is needed.

Added documentation for FancyURLopener.prompt_user_passwd(), explaining
that subclasses should provide more appropriate behavior for the hosting
environment.

24 years agoAdd support for visitAssAttr to findOp().
Jeremy Hylton [Thu, 12 Apr 2001 20:24:26 +0000 (20:24 +0000)]
Add support for visitAssAttr to findOp().

24 years agopyassem.py:
Jeremy Hylton [Thu, 12 Apr 2001 20:21:39 +0000 (20:21 +0000)]
pyassem.py:

    Fix annoying bugs in flow graph layout code.  In some cases the
    implicit control transfers weren't honored.  In other cases,
    JUMP_FORWARD instructions jumped backwards.

    Remove unused arg from nextBlock().

pycodegen.py

    Add optional force kwarg to set_lineno() that will emit a
    SET_LINENO even if it is the same as the previous lineno.

    Use explicit LOAD_FAST and STORE_FAST to access list comp implicit
    variables.  (The symbol table doesn't know about them.)

24 years agoAdded a big new Helper class to provide interactive help!
Ka-Ping Yee [Thu, 12 Apr 2001 19:53:52 +0000 (19:53 +0000)]
Added a big new Helper class to provide interactive help!

24 years agoAdded module synopsis for the chapter summary.
Fred Drake [Thu, 12 Apr 2001 19:34:38 +0000 (19:34 +0000)]
Added module synopsis for the chapter summary.

Added documentation for TestCase.assertRaises().

Added text for "Mapping concepts to classes", and merged it into the
front matter instead of separating it into a new section.

Removed use of "assert" in examples.

Update the descriptions to reflect further changes from discussions on
the pyunit-interest list.

Added documentation for the defaultTestLoader object and the
TestLoader methods.

Added the assert*() names for the TestCase helper methods.

24 years agoBug 415514 reported that e.g.
Tim Peters [Thu, 12 Apr 2001 18:38:48 +0000 (18:38 +0000)]
Bug 415514 reported that e.g.
    "%#x" % 0
blew up, at heart because C sprintf supplies a base marker if and only if
the value is not 0.  I then fixed that, by tolerating C's inconsistency
when it does %#x, and taking away that *Python* produced 0x0 when
formatting 0L (the "long" flavor of 0) under %#x itself.  But after talking
with Guido, we agreed it would be better to supply 0x for the short int
case too, despite that it's inconsistent with C, because C is inconsistent
with itself and with Python's hex(0) (plus, while "%#x" % 0 didn't work
before, "%#x" % 0L *did*, and returned "0x0").  Similarly for %#X conversion.

24 years agoRevise handling of tuple arguments so that the variables names match
Jeremy Hylton [Thu, 12 Apr 2001 17:33:34 +0000 (17:33 +0000)]
Revise handling of tuple arguments so that the variables names match
those used by compile.c.  (test_grammar now depends on the names)

24 years agoConvert several \seetext references to \seerfc and \seetitle versions.
Fred Drake [Thu, 12 Apr 2001 16:47:17 +0000 (16:47 +0000)]
Convert several \seetext references to \seerfc and \seetitle versions.
These format somewhat better and include more semantic information in the
source.

24 years agoGive up trying to keep dynamically loaded extensions up to date:
Ka-Ping Yee [Thu, 12 Apr 2001 13:37:39 +0000 (13:37 +0000)]
Give up trying to keep dynamically loaded extensions up to date:
    the import.c machinery has soundly defeated my every attempt.

24 years agoRobustify getcomments() so it doesn't crash on empty files.
Ka-Ping Yee [Thu, 12 Apr 2001 13:17:17 +0000 (13:17 +0000)]
Robustify getcomments() so it doesn't crash on empty files.

24 years agoRemove forking. Doesn't work in Windows.
Ka-Ping Yee [Thu, 12 Apr 2001 12:54:36 +0000 (12:54 +0000)]
Remove forking.  Doesn't work in Windows.

24 years agoWork around the conversion of ">>" and "<<" to guillemets. Reported by
Fred Drake [Thu, 12 Apr 2001 12:37:03 +0000 (12:37 +0000)]
Work around the conversion of ">>" and "<<" to guillemets.  Reported by
Ping on the Doc-SIG mailing list.

24 years agoUpdate copyright to PSF.
Guido van Rossum [Thu, 12 Apr 2001 12:27:34 +0000 (12:27 +0000)]
Update copyright to PSF.

24 years agoTypo fixes and small touches.
Ka-Ping Yee [Thu, 12 Apr 2001 11:59:50 +0000 (11:59 +0000)]
Typo fixes and small touches.

24 years agoProperly qualify methods inherited from classes in other modules.
Ka-Ping Yee [Thu, 12 Apr 2001 10:50:23 +0000 (10:50 +0000)]
Properly qualify methods inherited from classes in other modules.
Fix so that docother() doesn't blow up.
Eliminate man() function since doc() and man() did nearly the same thing.
Various other code cleanup and refactoring to reduce duplication.
Simplify and rewrite freshimport() so modules are always up to date,
    even within packages (where reload() doesn't work).
Add finalization callback to the server (so that if the server fails to
    start for some reason, the main thread isn't left hanging).

24 years ago- New fail*() methods, and comprehensive set of assert*() synonyms
Steve Purcell [Thu, 12 Apr 2001 09:05:01 +0000 (09:05 +0000)]
- New fail*() methods, and comprehensive set of assert*() synonyms
- TestCase.failureException defines the exception that indicates a test failure
- Docstrings for TestLoader class
- Added exc_info() hack back in

24 years agoOnly treat an AugAssign as def if its the target is a Name.
Jeremy Hylton [Thu, 12 Apr 2001 07:06:25 +0000 (07:06 +0000)]
Only treat an AugAssign as def if its the target is a Name.
Fixes last bug found with test_scope.py.

24 years agoFix unpackSequence() to use _nameOp() rather than LOAD_FAST
Jeremy Hylton [Thu, 12 Apr 2001 06:52:27 +0000 (06:52 +0000)]
Fix unpackSequence() to use _nameOp() rather than LOAD_FAST

24 years agoInside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAME
Jeremy Hylton [Thu, 12 Apr 2001 06:49:00 +0000 (06:49 +0000)]
Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAME

24 years agoPreliminary support for nested scopes
Jeremy Hylton [Thu, 12 Apr 2001 06:40:42 +0000 (06:40 +0000)]
Preliminary support for nested scopes

XXX Still doesn't work right for classes
XXX Still doesn't do sufficient error checking

24 years agoDefine constants for types of scopes
Jeremy Hylton [Thu, 12 Apr 2001 06:39:24 +0000 (06:39 +0000)]
Define constants for types of scopes

24 years agoAdded a lot of text from Steve Purcell's HTML documentation.
Fred Drake [Thu, 12 Apr 2001 04:50:06 +0000 (04:50 +0000)]
Added a lot of text from Steve Purcell's HTML documentation.

Updated reference material substantially based on discussions on the
pyunit-interest mailing list (not all changes are in the code in CVS
yet).

24 years agoUse "2.1c1" since that is what Guido used for the Python version number.
Fred Drake [Thu, 12 Apr 2001 04:34:26 +0000 (04:34 +0000)]
Use "2.1c1" since that is what Guido used for the Python version number.

24 years agoUpdate to reflect the new string repr -- \n instead of \012. This is the
Fred Drake [Thu, 12 Apr 2001 04:26:24 +0000 (04:26 +0000)]
Update to reflect the new string repr -- \n instead of \012.  This is the
only documentation file that appears to be affected by the change!

24 years agoPrepare for release candidate 1... aka 2.1c1.
Guido van Rossum [Thu, 12 Apr 2001 04:11:51 +0000 (04:11 +0000)]
Prepare for release candidate 1...  aka 2.1c1.

24 years agoMarkup nit: use \envvar to mark environment variables.
Fred Drake [Thu, 12 Apr 2001 04:11:21 +0000 (04:11 +0000)]
Markup nit:  use \envvar to mark environment variables.

24 years agoWhen forming the <A> tag for a \seepep or \seerfc, make sure we strip
Fred Drake [Thu, 12 Apr 2001 04:03:22 +0000 (04:03 +0000)]
When forming the <A> tag for a \seepep or \seerfc, make sure we strip
HTML markup from the string used as the title in the TITLE attribute.

This fixes formatting in the "What's New in Python 2.1" document.

24 years agoUpdate Windows build # and installer for 2.1c1.
Tim Peters [Thu, 12 Apr 2001 04:01:39 +0000 (04:01 +0000)]
Update Windows build # and installer for 2.1c1.

24 years agoExplain popitem()
Andrew M. Kuchling [Thu, 12 Apr 2001 03:37:19 +0000 (03:37 +0000)]
Explain popitem()
Add Unixware 7 port
Ready for RC1
Minor rewrites

24 years agoNote that __debug__ assignments are legal again.
Guido van Rossum [Thu, 12 Apr 2001 02:31:27 +0000 (02:31 +0000)]
Note that __debug__ assignments are legal again.