summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* SOCKET.py and TERMIOS.py are no longer used in this release.Guido van Rossum2001-04-113-539/+0
|
* (py-pdbtrack-track-stack-file): On Ken's suggestion, add "pdbtrack:"Barry Warsaw2001-04-111-3/+3
| | | | prefix to the message lines.
* Fixed bug in example.Fred Drake2001-04-111-2/+2
| | | | | | This closes SF bug #415522. Also fix markup error in text following the example.
* Noted the improved RISCOS port and the new Unixware 7 port.Guido van Rossum2001-04-112-0/+5
|
* Unixware 7 support by Billy G. Allie (SF patch 413011)Guido van Rossum2001-04-1115-510/+2408
|
* Added news about the updated python-mode.elBarry Warsaw2001-04-111-0/+10
|
* Bumping to version 4.0 since we now support only XEmacs 21.1 and EmacsBarry Warsaw2001-04-110-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 20.7, although not all of the compatibility code for older Emacsen has been removed. Specifically, the old "make sure we have a current custom.el library" stuff is removed, as is the hack-around for an NTEmacs 19.34.6 make-temp-name bug. Updated much of the Commentary section in the initial comments. Much more importantly, I've integrated Ken Manheimer's pdbtrack stuff, which is way cool. When enabled (as by default), this turns on the overlay arrow when pdb is entered, either in the shell buffer or in the *Python* buffer. Specifically: (py-mode-map): Added C-c C-d to toggle pdb tracking. (py-pdbtrack-do-tracking-p): New user customizable variable to control whether overlay arrow tracking is enabled or not. This variable is buffer local and is turned on by default. (py-pdbtrack-minor-mode-string): The string that's added to the minor mode alist when actually doing pdb overlay arrow tracking. User customizable. (py-pdbtrack-toggle-stack-tracking, turn-on-pdbtrack, turn-off-pdbtrack): New commands to control pdb tracking. (py-pdbtrack-is-tracking-p): Helper variable used to control the display of py-pdbtrack-minor-mode-string. Set to true when the overlay arrow is enabled, and false when it's disabled. (py-pdbtrack-stack-entry-regexp, py-pdbtrack-input-prompt, py-pdbtrack-track-range): Inherited from pdbtrack.el and renamed. (py-pdbtrack-overlay-arrow, py-pdbtrack-track-stack-file): New functions which actually do the tracking. (py-shell): Add py-pdbtrack-track-stack-file to comint-output-filter-functions. Finally, add py-pdbtrack-track-stack-file to comint-output-filter-functions at the file level. This and the py-shell addition should ensure that pdb tracking is installed regardless of the order of operation. Also, add py-pdbtrack-minor-mode-string to minor-mode-alist.
* intermediateBarry Warsaw2001-04-111-51/+148
|
* Added some additional documentation describing how BabylMailboxBarry Warsaw2001-04-111-4/+12
| | | | | | actually works (it returns a message containing the visible headers, not the original headers). Doc change approved by Fred; closes SF bug #412230.
* Include a synopsis for the chapter overview.Fred Drake2001-04-111-0/+1
|
* typoJeremy Hylton2001-04-112-8/+16
|
* [finishing fix from earlier checkins]Jeremy Hylton2001-04-112-0/+2
| | | | | | | Call set_lineno() in visitDiscard(), which will generate linenos for discard statements, e.g. the statement "1/0" Fixes SF bug #409587
* Add support for extra (*) arguments to preorder.Jeremy Hylton2001-04-112-6/+6
| | | | Change default dispatch to use extended call syntax in place of apply.
* Generate docstrings.Jeremy Hylton2001-04-112-6/+52
| | | | | | | Fixes SF buf #217004 Add method fixDocstring() to CodeGenerator. It converts the Discard node containing the docstring into an assignment to __doc__.
* Add lineno attributes to Discard nodesJeremy Hylton2001-04-112-2/+6
|
* Make sure the docstring is always entered as the first element in theJeremy Hylton2001-04-112-22/+2
| | | | | | consts, even if it is None. Simplify _lookupName() by removing lots of redundant tests.
* Test cases for examples of ext call error handling.Jeremy Hylton2001-04-112-0/+40
| | | | Fix to SF bug #414743 based on Michael Hudson's patch #414750.
* Fix exception handling for non-PyFunction objects, SF bug 414743.Jeremy Hylton2001-04-111-16/+54
| | | | | | | | Fix based on patch #414750 by Michael Hudson. New functions get_func_name() and get_func_desc() return reasonable names and descriptions for all objects. XXX Even objects that aren't actually callable.
* Idiotic braino caused HTTP openers to ignore proxies.Moshe Zadka2001-04-111-1/+1
| | | | This fixes 413135
* Fixing bug 405999 -- clarifying differences between Python'sMoshe Zadka2001-04-111-0/+4
| | | | getopt and GNU getopt -- Python is like classical UNIX getopt.
* Based on a comment by Konrad Hinsen on python-list:Fred Drake2001-04-111-4/+4
| | | | | | | | Change "EOF" to "end-of-file", on the premise that it is easier for new programmers to understand (at least a little). This does not attempt to explain "file or device attached to standard input."
* Add a close_request method to the BaseServer so that the TCPServer classKa-Ping Yee2001-04-111-0/+14
| | | | can close the request connection when it's done handling it.
* Use INSTALL_SCRIPT to install script files. INSTALL_PROGRAM may try toNeil Schemenauer2001-04-101-10/+11
| | | | strip them. Closes patch #406287.
* Added definition of "test fixture".Fred Drake2001-04-101-2/+142
| | | | | | | | Added description of optional parameter to the TestSuite constructor. Added descriptions of the TestLoader and TextTestRunner classes. Added method descriptions for the TestCase class.