summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Robustify getfile() against classes that lie about their __module__sKa-Ping Yee2001-04-131-1/+1
| | | | (such as the exceptions in _weakref and _locale!)
* Word-wrap the list of cross-references.Ka-Ping Yee2001-04-131-1/+5
|
* Another pass through the topic table to fill in cross references.Ka-Ping Yee2001-04-131-20/+27
| | | | Restore Helper.__repr__ for now.
* Make force-loading optional; don't force-load in interactive mode.Ka-Ping Yee2001-04-131-133/+147
| | | | | | | | 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).
* Remove duplicate type objects from isroutine() and isbuiltin().Ka-Ping Yee2001-04-131-4/+4
| | | | Make getmodule() on a module return the module itself.
* Patch #415777: new grouping strategy.Martin v. Löwis2001-04-133-10/+68
| | | | | | | | | 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.
* Whitespace normalization.Tim Peters2001-04-132-2/+1
|
* Update the helper scripts that push development docs to SourceForge;Fred Drake2001-04-132-5/+5
| | | | | this version avoids having to build a separate authenticated connection to push the update-docs.sh script to SF.
* Add entry for ColorPicker documentation as well.Fred Drake2001-04-131-0/+1
|
* Documentation for Just's ColorPicker module, so the Mac OS guys getFred Drake2001-04-132-0/+23
| | | | something out of this documentation release as well. ;-)
* Note additions to pydoc and pstats.Guido van Rossum2001-04-131-0/+5
|
* Added a test main to the pstats library that can help you browse profile dumps.Eric S. Raymond2001-04-132-0/+131
|
* _synthesize(): Helper function: when the users passes a specificFred Drake2001-04-121-7/+50
| | | | | | | | | | | | | | | | 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.
* Pop loop off the loop stack before handling the loop's else clause.Jeremy Hylton2001-04-122-8/+8
| | | | | | Otherwise, continue/break will attempt to affect the wrong loop. A few more fiddles to get the SET_LINENOs consistent across compilers.
* Use new _implicitNameOp() to generate name op code for list comprehensions.Jeremy Hylton2001-04-122-8/+34
| | | | | | | | | 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.
* Because this code was derived from Python 1.6.1 (amongst others), theGuido van Rossum2001-04-122-2/+2
| | | | CNRI copyright should be updated to include 2001.
* Fix linking to classes (in class tree, and add links on unbound methods).Ka-Ping Yee2001-04-121-24/+23
|
* Fix call to ModuleScanner from GUI search interface.Ka-Ping Yee2001-04-121-8/+10
| | | | Fix handling of unbound top-level methods.
* Added warning that FancyURLopener prompts the user on the terminal whenFred Drake2001-04-121-0/+21
| | | | | | | | basic authentication is needed. Added documentation for FancyURLopener.prompt_user_passwd(), explaining that subclasses should provide more appropriate behavior for the hosting environment.
* Add support for visitAssAttr to findOp().Jeremy Hylton2001-04-122-2/+2
|
* pyassem.py:Jeremy Hylton2001-04-124-28/+222
| | | | | | | | | | | | | | | | 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.)
* Added a big new Helper class to provide interactive help!Ka-Ping Yee2001-04-121-12/+276
|
* Added module synopsis for the chapter summary.Fred Drake2001-04-121-67/+186
| | | | | | | | | | | | | | | | | 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.
* Bug 415514 reported that e.g.Tim Peters2001-04-123-42/+47
| | | | | | | | | | | | "%#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.
* Revise handling of tuple arguments so that the variables names matchJeremy Hylton2001-04-124-16/+16
| | | | those used by compile.c. (test_grammar now depends on the names)
* Convert several \seetext references to \seerfc and \seetitle versions.Fred Drake2001-04-123-19/+22
| | | | | These format somewhat better and include more semantic information in the source.
* Give up trying to keep dynamically loaded extensions up to date:Ka-Ping Yee2001-04-121-1/+7
| | | | the import.c machinery has soundly defeated my every attempt.
* Robustify getcomments() so it doesn't crash on empty files.Ka-Ping Yee2001-04-121-2/+2
|
* Remove forking. Doesn't work in Windows.Ka-Ping Yee2001-04-121-2/+2
|
* Work around the conversion of ">>" and "<<" to guillemets. Reported byFred Drake2001-04-121-1/+1
| | | | Ping on the Doc-SIG mailing list.
* Update copyright to PSF.Guido van Rossum2001-04-121-1/+1
|
* Typo fixes and small touches.Ka-Ping Yee2001-04-121-13/+16
|
* Properly qualify methods inherited from classes in other modules.Ka-Ping Yee2001-04-121-152/+130
| | | | | | | | | | 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).
* - New fail*() methods, and comprehensive set of assert*() synonymsSteve Purcell2001-04-121-28/+63
| | | | | | - TestCase.failureException defines the exception that indicates a test failure - Docstrings for TestLoader class - Added exc_info() hack back in
* Only treat an AugAssign as def if its the target is a Name.Jeremy Hylton2001-04-122-4/+8
| | | | Fixes last bug found with test_scope.py.
* Fix unpackSequence() to use _nameOp() rather than LOAD_FASTJeremy Hylton2001-04-122-2/+4
|
* Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAMEJeremy Hylton2001-04-122-0/+6
|
* Preliminary support for nested scopesJeremy Hylton2001-04-126-178/+792
| | | | | XXX Still doesn't work right for classes XXX Still doesn't do sufficient error checking
* Define constants for types of scopesJeremy Hylton2001-04-122-0/+10
|
* Added a lot of text from Steve Purcell's HTML documentation.Fred Drake2001-04-121-29/+251
| | | | | | Updated reference material substantially based on discussions on the pyunit-interest mailing list (not all changes are in the code in CVS yet).
* Use "2.1c1" since that is what Guido used for the Python version number.Fred Drake2001-04-122-2/+2
|
* Update to reflect the new string repr -- \n instead of \012. This is theFred Drake2001-04-121-5/+5
| | | | only documentation file that appears to be affected by the change!
* Prepare for release candidate 1... aka 2.1c1.Guido van Rossum2001-04-121-3/+3
|
* Markup nit: use \envvar to mark environment variables.Fred Drake2001-04-121-1/+1
|
* When forming the <A> tag for a \seepep or \seerfc, make sure we stripFred Drake2001-04-121-1/+10
| | | | | | 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.
* Update Windows build # and installer for 2.1c1.Tim Peters2001-04-123-8/+6
|
* Explain popitem()Andrew M. Kuchling2001-04-121-13/+16
| | | | | | Add Unixware 7 port Ready for RC1 Minor rewrites
* Note that __debug__ assignments are legal again.Guido van Rossum2001-04-121-0/+3
|
* Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort.Tim Peters2001-04-123-25/+53
| | | | | | | | | | | | | http://sourceforge.net/tracker/index.php?func=detail&aid=415514&group_id=5470&atid=105470 For short ints, Python defers to the platform C library to figure out what %#x should do. The code asserted that the platform C returned a string beginning with "0x". However, that's not true when-- and only when --the *value* being formatted is 0. Changed the code to live with C's inconsistency here. In the meantime, the problem does not arise if you format a long 0 (0L) instead. However, that's because the code *we* wrote to do %#x conversions on longs produces a leading "0x" regardless of value. That's probably wrong too: we should drop leading "0x", for consistency with C, when (& only when) formatting 0L. So I changed the long formatting code to do that too.
* Reverting the "unixware7" patch: atan2(0, 1) should be 0, regardless ofTim Peters2001-04-121-5/+1
| | | | | platform. If it returns pi on the unixware7 platform, they have a bug in their libm atan2.