summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Add test for SF bug #405427Jeremy Hylton2001-04-132-0/+36
|
* SF patch #405845 by Martin von LöwisJeremy Hylton2001-04-131-1/+7
| | | | | | Fixes SF bug #405427. If an http response has a bogus return code, e.g. 400.100, raise BadStatusLine.
* Update to reflect new tokenize_test.pyJeremy Hylton2001-04-131-8/+8
|
* There's no need for the tokenize tests to include a SyntaxError.Jeremy Hylton2001-04-131-1/+1
|
* Clean up isroutine().Ka-Ping Yee2001-04-131-2/+1
|
* Use inspect.stack()[1][3] to tell if Helper.__repr__ is called interactively.Ka-Ping Yee2001-04-131-2/+2
|
* Add inode checks to detect circular symbolic links (so that theKa-Ping Yee2001-04-131-3/+7
| | | | Tools/idle/idlelib link doesn't cause an infinite loop -- aack!)
* Small style change to accommodate Netscape.Ka-Ping Yee2001-04-131-1/+1
|
* 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
|
* Added a test main to the pstats library that can help you browse profile dumps.Eric S. Raymond2001-04-131-0/+126
|
* _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-121-4/+4
| | | | | | 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-121-4/+17
| | | | | | | | | 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.
* 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.
* Add support for visitAssAttr to findOp().Jeremy Hylton2001-04-121-1/+1
|
* pyassem.py:Jeremy Hylton2001-04-122-14/+111
| | | | | | | | | | | | | | | | 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
|
* Bug 415514 reported that e.g.Tim Peters2001-04-121-4/+4
| | | | | | | | | | | | "%#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-122-8/+8
| | | | those used by compile.c. (test_grammar now depends on the names)
* 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
|
* 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-121-2/+4
| | | | Fixes last bug found with test_scope.py.
* Fix unpackSequence() to use _nameOp() rather than LOAD_FASTJeremy Hylton2001-04-121-1/+2
|
* Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAMEJeremy Hylton2001-04-121-0/+3
|
* Preliminary support for nested scopesJeremy Hylton2001-04-123-89/+396
| | | | | XXX Still doesn't work right for classes XXX Still doesn't do sufficient error checking
* Define constants for types of scopesJeremy Hylton2001-04-121-0/+5
|
* Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort.Tim Peters2001-04-121-0/+16
| | | | | | | | | | | | | 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
|
* Unixware 7 support by Billy G. Allie (SF patch 413011)Guido van Rossum2001-04-119-3/+1800
|
* typoJeremy Hylton2001-04-111-4/+8
|
* [finishing fix from earlier checkins]Jeremy Hylton2001-04-111-0/+1
| | | | | | | 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-111-3/+3
| | | | Change default dispatch to use extended call syntax in place of apply.
* Generate docstrings.Jeremy Hylton2001-04-111-3/+26
| | | | | | | 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-111-1/+3
|
* Make sure the docstring is always entered as the first element in theJeremy Hylton2001-04-111-11/+1
| | | | | | 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.
* Idiotic braino caused HTTP openers to ignore proxies.Moshe Zadka2001-04-111-1/+1
| | | | This fixes 413135
* 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.