summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [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.
* Some new names.Guido van Rossum2001-04-101-0/+3
|
* Updated version of RISCOS support. SF patch 411213 by Dietmar SchwertbergerGuido van Rossum2001-04-1011-165/+243
|
* Completely revamped BeOS notes, by Donn Cave (SF patch 411834).Guido van Rossum2001-04-101-109/+23
|
* This is for BeOS users who want to build all the modules. It'sGuido van Rossum2001-04-101-0/+606
| | | | | | modified from setup.py version "1.37" to support BeOS build. Contributed by Donn Cave (SF patch 411830).
* The lower() and tkraise() methods were calling the Canvas widgetGuido van Rossum2001-04-101-2/+2
| | | | | | wrongly. Fixed this. This closes SF bug #412682.
* Typo: "BuildApple" --> "BuildApplet"Fred Drake2001-04-101-2/+5
| | | | Added reference to the webbrowser module from the nsremote description.
* Bump version numbers for upcoming release candidate.Fred Drake2001-04-102-2/+2
|
* Update the XML conversion specification.Fred Drake2001-04-101-0/+2
|
* Remove the mapping() function from the documentation.Fred Drake2001-04-101-25/+15
| | | | Add a description of the ReferenceError exception.
* Add note that difflib was added in Python 2.1.Fred Drake2001-04-101-0/+3
|
* Include py_curses.h *after* defining _XOPEN_SOURCE_EXTENDED.Guido van Rossum2001-04-101-2/+3
| | | | | | Michael Hudson suggested this fox for the Tru64 problem (SF bug 232597). It looks reasonable, it works on Tru64, and it doesn't beak anything on Linux, so I say go for it.
* mapping(): Remove this function since it does not add anything to the API.Fred Drake2001-04-101-8/+1
|
* Use the WeakKeyDictionary and WeakValueDictionary classes directlyFred Drake2001-04-101-2/+2
| | | | instead of using the mapping() function.
* Since bdist_wininst.py contains the installer executable, it had to beThomas Heller2001-04-101-262/+262
| | | | rebuild.
* Normalize tabs to spaces.Fred Drake2001-04-101-4/+6
| | | | | | Update the attribution for the "Curses Programming with Python" How-To. Change the way the reference to the Demo/curses/ directory is marked up.
* Add reference to the DDJ article discussing a similar algorithm.Fred Drake2001-04-101-0/+9
|
* Add corresponding support for the alltt environment to the HTML generator.Fred Drake2001-04-103-2/+48
|
* Import the alltt package and wrap that environment in a similar way toFred Drake2001-04-101-0/+21
| | | | | the way we handle verbatim, so that it picks up the same indentation and minipage behavior.
* Fix two unqualified except: clauses.Guido van Rossum2001-04-101-4/+4
| | | | This came out of SF bug #411881.
* Fix an unqualified except:.Guido van Rossum2001-04-101-1/+1
| | | | This came out of SF bug #411881.
* Try an except: after an import into "except ImportError".Guido van Rossum2001-04-101-1/+1
| | | | | | This came out of SF bug #411881. Note that there's another unqualified except: still.
* Add documentation for getmoduleinfo() and getmodulename().Fred Drake2001-04-101-0/+23
|
* Some other tests, when failing, don't always remove their TESTFN file.Guido van Rossum2001-04-101-0/+6
| | | | Try to do it for them, so our mkdir() operation doesn't fail.
* When doing the quick test to see whether large files are supported,Guido van Rossum2001-04-101-1/+1
| | | | | | catch IOError as well as OverflowError. I found that on Tru64 Unix this was raised; probably because the OS (or libc) doesn't support large files but the architecture is 64 bits!
* When zlib can't be imported, zipfile raises RuntimeError, which causesGuido van Rossum2001-04-101-0/+1
| | | | | the test to be marked as failing rather than skipped. Add an explicit "import zlib" to prevent this.
* Fix typo in instantiation of ErrorDuringImport.Ka-Ping Yee2001-04-101-1/+1
|
* Fix synopsis() so it can handle binary module files.Ka-Ping Yee2001-04-101-85/+85
| | | | | | | | | Avoid ever using popen on Windows, since it's broken there. Factor out the business of getting the summary line into splitdoc(). Use the modulename() routine in inspect. Show all members of modules and classes rather than filtering on leading '_'. Small typo and formtating fixes. Don't show warnings when running "pydoc -k".
* Add getmodulename() and getmoduleinfo() routines to inspect filenames.Ka-Ping Yee2001-04-101-0/+15
|
* In the typeset versions, the legal notices had grown past the one-pageFred Drake2001-04-101-0/+5
| | | | size. This constrains them to fit in one page again.
* test_pickle works on sizeof(long)==8 boxes again.Tim Peters2001-04-102-12/+19
| | | | | | | | | | pickle.py The code implicitly assumed that all ints fit in 4 bytes, causing all sorts of mischief (from nonsense results to corrupted pickles). Repaired that. marshal.c The int marshaling code assumed that right shifts of signed longs sign-extend. Repaired that.
* Ack -- this module mixes tabs and spaces, and what appears to be a mixTim Peters2001-04-101-5/+5
| | | | | | | of 2-space and 4-space indents. Whatever, when I saw the checkin diff it was clear that what my editor thinks a tab means didn't match this module's belief. Removed all the tabs from the lines I added and changed, left everything else alone.
* On a sizeof(long)==8 machine, ints in range(2**31, 2**32) were gettingTim Peters2001-04-101-5/+21
| | | | | | | | | | | | | | | | pickled into the signed(!) 4-byte BININT format, so were getting unpickled again as negative ints. Repaired that. Added some minimal docs at the top about what I've learned about the pickle format codes (little of which was obvious from staring at the code, although that's partly because all the size-related bugs greatly obscured the true intent of the code). Happy side effect: because save_int() needed to grow a *proper* range check in order to fix this bug, it can now use the more-efficient BININT1, BININT2 and BININT formats when the long's value is small enough to fit in a signed 4-byte int (before this, on a sizeof(long)==8 box it always used the general INT format for negative ints). test_cpickle works again on sizeof(long)==8 machines. test_pickle is still busted big-time.
* Test full range of native ints. This exposes two more binary pickleTim Peters2001-04-101-0/+19
| | | | | | | | | bugs on sizeof(long)==8 machines. pickle.py has no idea what it's doing with very large ints, and variously gets things right by accident, computes nonsense, or generates corrupt pickles. cPickle fails on cases 2**31 <= i < 2**32: since it *thinks* those are 4-byte ints (the "high 4 bytes" are all zeroes), it stores them in the (signed!) BININT format, so they get unpickled as negative values.
* Correct the header over the string of licenses -- it's "PYTHON", notGuido van Rossum2001-04-101-2/+2
| | | | "Python 1.6.1".
* Append the revision number for each file to the output.Guido van Rossum2001-04-101-1/+1
| | | | | | (Yes, this is a new feature right before the 2.1 release. No, I can't imagine this would seriously break anybody's code. In fact, most users of this script are probably *happy* to see this addition.)
* Mechanical fiddling for easier reading: every "if" test was enclosed inTim Peters2001-04-101-35/+35
| | | | parens, but no "while" test. Removed the former.
* Critical fix: if cPickle on a sizeof(long)==8 box is used to read aTim Peters2001-04-101-1/+8
| | | | | | | | | | | binary pickle, and the latter contains a pickle of a negative Python int i written on a sizeof(long)==4 box (and whether by cPickle or pickle.py), it's read incorrectly as i + 2**32. The patch repairs that, and allows test_cpickle.py (to which I added a relevant test case earlier today) to work again on sizeof(long)==8 boxes. There's another (at least one) sizeof(long)==8 binary pickle bug, but in pickle.py instead. That bug is still there, and test_pickle.py doesn't catch it yet (try pickling and unpickling, e.g., 1 << 46).