summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Patch #102278: add tparm() function to _curses moduleAndrew M. Kuchling2000-11-072-4/+62
|
* Document the proper exception to be raised by I/O operations on closedFred Drake2000-11-061-15/+19
| | | | | | files; error reported by Ng Pheng Siong <ngps@post1.com>. Make sure that various special object attributes are properly indexed.
* This fixes several bug reports concering memory bloating during largeBarry Warsaw2000-11-061-5/+1
| | | | | | | | | | | | | | | | | | | file uploads. In response to SF bugs 110674 and 119806, and discussions on python-dev, we are removing the self.lines attribute from the FieldStorage class. Specifically touched where methods __init__(), read_lines_to_eof(), and skip_lines(). No one can remember why self.lines was added. Technically, it's part of the public interface for the class, but it was never documented. It's possible clever or nosy code will break because of this, but it was decided to remove it and see who complains. This resolution also closes the second half of the cgi.py entry in PEP 42. The first half of that PEP concerns specifically binary file uploads, where there may be no end-of-line marker for a very long time. This patch does not address that issue.
* a few small optimizations that seem to give a 5-10% speedup; theJeremy Hylton2000-11-062-152/+160
| | | | further optimization of com_node makes the most difference.
* move pruneNext method to correct object (doh!)Jeremy Hylton2000-11-062-48/+48
|
* Change the graph structure to contain the code generator object forJeremy Hylton2000-11-066-42/+266
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | embedded code objects (e.g. functions) rather than the generated code object. This change means that the compiler generates code for everything at the end, rather then generating code for each function as it finds it. Implementation note: _convert_LOAD_CONST in pyassem.py must be change to call getCode(). Other changes follow. Several changes creates extra edges between basic blocks to reflect control flow for loops and exceptions. These missing edges had gone unnoticed because they do not affect the current compilation process. pyassem.py: Add _enable_debug() and _disable_debug() methods that print instructions and blocks to stdout as they are generated. Add edges between blocks for instructions like SETUP_LOOP, FOR_LOOP, etc. Add pruneNext to get rid of bogus edges remaining after unconditional transfer ops (e.g. JUMP_FORWARD) Change repr of Block to omit block length. pycodegen.py: Make sure a new block is started after FOR_LOOP, etc. Change assert implementation to use RAISE_VARARGS 1 when there is no user-specified failure output. misc.py: Implement __contains__ and copy for Set.
* If a function contains a doc string, remove the doc string node fromJeremy Hylton2000-11-062-2/+10
| | | | | | | the function's body. If assert is used without an error message, make the AST node None rather than Name('None').
* Application of [ Patch #102226 ] freeze/modulefinder.py should use _winreg, ↵Mark Hammond2000-11-061-15/+6
| | | | not win32api
* Added 38,642 missing characters to the Unicode database (first-lastFredrik Lundh2000-11-034-196/+241
| | | | | | | ranges) -- but thanks to the 2.0 compression scheme, this doesn't add a single byte to the resulting binaries (!) Closes bug #117524
* Fix Makefile so at least it uses Python 2.0, and compiles out of theGuido van Rossum2000-11-031-2/+2
| | | | box on Linux.
* Move our own getopt() implementation to _PyOS_GetOpt(), and use itThomas Wouters2000-11-037-130/+73
| | | | | | | | | regardless of whether the system getopt() does what we want. This avoids the hassle with prototypes and externs, and the check to see if the system getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to avoid name clashes. Add new include file to define the right symbols. Fix Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on Python to provide it.
* Make sure we clean up the index data each time it is written by LaTeX.Fred Drake2000-11-031-1/+4
|
* Fix cut & paste error that describes three paramters when there are onlyFred Drake2000-11-021-4/+3
| | | | | | | two [bug #119729]. Update use of distutils.sysconfig that "broke" when Greg W. changed the API [bug #119645].
* New configure script from latest configure.in with autoconf 2.13Guido van Rossum2000-11-021-1/+4
|
* Make sure the Modules/ directory is created before writing Modules/Setup.Fred Drake2000-11-021-0/+3
|
* Patch from Randall Hopper to fix PR #116172, "curses module fails toAndrew M. Kuchling2000-11-011-4/+38
| | | | | | | build on SGI": * Check for 'sgi' preprocessor symbol, not '__sgi__' * Surround individual character macros with #ifdef's, instead of making them all rely on STRICT_SYSV_CURSES
* Typo: writeable --> writableFred Drake2000-11-011-2/+2
| | | | Reported by Erno Kuusela <erno@iki.fi>.
* Hack ndiff to display lines w/ leading tabs more intuitively. This synchsTim Peters2000-11-011-9/+24
| | | | ndiff w/ a custom version I made for Guido during the pre-2.0 freeze.
* track recent change to test_extcall.pyJeremy Hylton2000-10-301-0/+4
|
* Hack to force -lpthread instead instead of -lcma on HPUX, by PhilippGuido van Rossum2000-10-302-433/+461
| | | | | Jocham. Philipp asks: "Are there any success stories with HP-UX 11.00 and -lcma? Maybe libcma is broken."
* Fix for SF bug #117241Jeremy Hylton2000-10-302-1/+33
| | | | | | | | | When a method is called with no regular arguments and * args, defer the first arg is subclass check until after the * args have been expanded. N.B. The CALL_FUNCTION implementation is getting really hairy; should review it to see if it can be simplified.
* define_module(): Change the "index sub-item" for definitions at moduleFred Drake2000-10-301-1/+1
| | | | | | | scope to be " (in module <name>)" instead of " (in <name>)" to be consistent with \withsubitem usage throughout the documentation. This achieves consistency in indexing throughout the documentation.
* Fix \withsubitem so that it actually works if the only indexing macro inFred Drake2000-10-301-10/+5
| | | | | | | | | the content body is the \ttindex macro, which seems to match actual usage. Adjust \funcline to restore the "index sub-item" for functions to be " (in module <name>)" instead of " (in <name>)". This is need to match uses of \withsubitem throughout the documentation. (Not ideal, but gets achieves consistency.)
* Revise the message to be a little nicer.Fred Drake2000-10-291-3/+6
| | | | Have the mail sent to the python-dev and Doc-SIG lists.
* Avoid using \withsubitem and \ttindex internally; they have not provenFred Drake2000-10-291-20/+26
| | | | | | to be very robust. Using \index directly fixes a lot of entries in the index that had to be specifically read to determine that they had the wrong parenthesized description.
* Many small markup revisions to be more consistent with markup elsewhere,Fred Drake2000-10-291-47/+61
| | | | | | | | and to provide more consistent indexing. Added an index entry. Added documentation for the error and XMLParserType objects.
* ParserCreate(): Added test that the namespace_separator value, if given,Fred Drake2000-10-291-0/+9
| | | | | | | has the required length. initpyexpat(): Provide the type object for the ParserCreate() return value as XMLParserType.
* Do not echo the echo command with the message telling the user that SetupFred Drake2000-10-291-1/+1
| | | | may be out of date.
* Do not release unallocated Tcl objects. Closes #117278 and #117167.Martin v. Löwis2000-10-291-3/+8
|
* -- properly reset groups in findall (bug #117612)Fredrik Lundh2000-10-283-17/+33
| | | | | | | | -- fixed negative lookbehind to work correctly at the beginning of the target string (bug #117242) -- improved syntax check; you can no longer refer to a group inside itself (bug #110866)
* Update author information.Fred Drake2000-10-281-2/+2
|
* (py-goto-beginning-of-tqs): When searching backwards for the matchingBarry Warsaw2000-10-271-4/+8
| | | | | | delimiter, watch out for backslash escaped delimiters. Also use = instead of eq for character comparison (because a character is = to it's integer value, but not eq to it).
* Added the -D/--docstrings option for extraction of unmarked module,Barry Warsaw2000-10-271-40/+82
| | | | class, method, and function docstrings.
* Explained that os.path.basename() may return something different from theFred Drake2000-10-261-1/+5
| | | | | | basename program, as suggested by Gregor Hoffleit <gregor@hoffleit.de>. This closes bug #119485.
* Do not require packages that are not needed.Fred Drake2000-10-262-4/+0
|
* Normalize the HTML generated for table headers.Fred Drake2000-10-261-7/+10
|
* Minor simplification.Fred Drake2000-10-261-2/+1
|
* Update the dependency information to allow the other Makefiles to handleFred Drake2000-10-261-34/+25
| | | | | as much of this as possible. Avoids propogating information about how various outputs relate (or don't!).
* Noted that building the info version requires the HTML::Element package,Fred Drake2000-10-261-1/+8
| | | | and provided instructions for getting it installed.
* All acknowledgements have been moved to the Doc/ACKS file.Fred Drake2000-10-261-25/+21
| | | | | | | Adjusted to reflect the rename of Setup.in to Setup.dist. Added pointer to the "Distributing Python Modules" manual in the appropriate place.
* Update build instructions to reflect the rename from Setup.in to Setup.dist.Fred Drake2000-10-261-10/+11
| | | | | | | Clarify when this file is created automatically and do not advocate creating it unless needed. Explain that Setup never gets overwritten.
* Test for and create Modules/Setup in the configure script if it does notFred Drake2000-10-262-405/+448
| | | | already exist.
* Rename Setup.in to Setup.dist, and assume that configure will createFred Drake2000-10-266-17/+12
| | | | Setup (instead of creating it from the Makefile).
* Lots of small markup adjustments for consistency with the rest of theFred Drake2000-10-262-70/+72
| | | | documentation.
* Update a comment to be correct.Fred Drake2000-10-261-3/+3
|
* Remove bogus stdout redirection and use of sys.__stdout__; useFred Drake2000-10-261-46/+42
| | | | augmented print statement instead.
* Remove bogus stdout redirection and use of sys.__stdout__; useFred Drake2000-10-261-32/+28
| | | | augmented print statement instead.
* Typo: shorted --> shorterFred Drake2000-10-251-1/+1
| | | | This closes bug #117706.
* Patch 102114, Bug 11725. On OpenBSD (but apparently not on the otherGuido van Rossum2000-10-251-2/+7
| | | | BSDs) you need a leading underscore in the dlsym() lookup name.
* Fix two typos in __imul__. Closes Bug #117745.Guido van Rossum2000-10-251-2/+2
|