summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Removed note on test_time failing.Jack Jansen2002-04-221-3/+0
| | | | Bugfix candidate.
* Regenerated to include Internet Config error strings.Jack Jansen2002-04-223-18/+144
| | | | Bugfix candidate.
* Added an optional file with MacErrors.h extensions: IC errors aren't in there.Jack Jansen2002-04-222-0/+19
| | | | Bugfix candidate.
* Py_GETENV is used by obmalloc and needs Py_IgnoreEnvironmentFlag. Provide it.Neil Schemenauer2002-04-221-0/+1
|
* pgen now needs pymallocNeil Schemenauer2002-04-221-0/+1
|
* Moving pymalloc along.Tim Peters2002-04-223-32/+12
| | | | | | | | | | | | | | | | | | + Redirect PyMem_{Del, DEL} to the object allocator's free() when pymalloc is enabled. Needed so old extensions can continue to mix PyObject_New with PyMem_DEL. + This implies that pgen needs to be able to see the PyObject_XYZ declarations too. pgenheaders.h now includes Python.h. An implication is that I expect obmalloc.o needs to get linked into pgen on non-Windows boxes. + When PYMALLOC_DEBUG is defined, *all* Py memory API functions now funnel through the debug allocator wrapper around pymalloc. This is the default in a debug build. + That caused compile.c to fail: it indirectly mixed PyMem_Malloc with raw platform free() in one place. This is verbotten.
* tracking python idle changes:Steven M. Gava2002-04-221-1/+1
| | | | Provisional fix for writefile() [SF bug # 541730]
* Update the Windows makefile for 2.3.Tim Peters2002-04-221-3/+3
|
* tracking python idle changes:Steven M. Gava2002-04-221-4/+12
| | | | Patch #540583: Open MS Help Docs if available.
* #546156, Remove load_false()/load_true(), they are not usedNeal Norwitz2002-04-211-14/+0
|
* Py_UniversalNewlineFread(): small speed boost on non-Windows boxes.Tim Peters2002-04-211-3/+3
|
* PyUnicode_EncodeUTF8(): tightened the memory asserts a bit, and at leastTim Peters2002-04-211-12/+20
| | | | tried to catch some possible arithmetic overflows in the debug build.
* #544265, Remove warnings for passing const to free()Neal Norwitz2002-04-211-1/+1
|
* Back out 2.140.Martin v. Löwis2002-04-211-43/+55
|
* Enable universal newlines on Windows. Note that NEWS needs more words!Tim Peters2002-04-213-1/+6
|
* Py_UniversalNewlineFread(): Many changes.Tim Peters2002-04-212-42/+52
| | | | | | | | | | | | | | | | | | | | + Continued looping until n bytes in the buffer have been filled, not just when n bytes have been read from the file. This repairs the bug that f.readlines() only sucked up the first 8192 bytes of the file on Windows when universal newlines was enabled and f was opened in U mode (see Python-Dev -- this was the ultimate cause of the test_inspect.py failure). + Changed prototye to take a char* buffer (void* doesn't make much sense). + Squashed size_t vs int mismatches (in particular, besides the unsigned vs signed distinction, size_t may be larger than int). + Gets out under all error conditions now (it's possible for fread() to suffer an error even if it returns a number larger than 0 -- any "short read" is an error or EOF condition). + Rearranged and simplified declarations.
* Assorted code cleanups for readability. Greatly boosted the size of theTim Peters2002-04-211-26/+33
| | | | | | test data: this test fails on WIndows now if universal newlines are enabled (which they aren't yet, by default). I don't know whether the test will also fail on Linux now.
* Hack around the "2.1.6 Blank lines" bug in a way that the TOC stillTim Peters2002-04-211-8/+10
| | | | | displays a recognizable section title (there are extra blanks at the end of it now, due to the nested anchor, but that's fine).
* PyUnicode_EncodeUTF8: squash compiler wng. The difference of twoTim Peters2002-04-211-4/+5
| | | | | | pointers is a signed type. Changing "allocated" to a signed int makes undetected overflow more likely, but there was no overflow detection before either.
* Give the Help viewer a font-size button. This isn't documented by MS,Tim Peters2002-04-211-1/+30
| | | | | but is documented by others on the web, and the defn of the magic flag needed appears in MS's htmlhelp.h header file.
* Move "everything left one": the TOC now shows each doc directory as aTim Peters2002-04-201-9/+10
| | | | | | | distinct top-level node. Before they were all nested under an artificial top-level node, uselessly chewing up horizontal space, and ensuring that the only thing the user saw in the TOC upon opening the file was a single collapsed top-level folder.
* Stopped all warnings from the HTML Help Compiler, by generating properTim Peters2002-04-201-21/+34
| | | | | | | | | | | | | | | HTML (or, at least, proper in its view). The TOC file is now identical to what the HTML compiler itself generates, except for whitespace and a glitch identified below. The pretty-printing done by prechm.py is pretty much destroyed for now; if you need it pretty-printed, just make the Help Compiler save the files (it's got its own idea of pretty- printing anyway). Glitch: The title of Ref Man "2.1.6 Blank lines" shows up as a blank for now. This is because the relevant entry in ref/index.html contains nested anchors, and pychm really has no idea what to do with that. I hacked it for now to avoid any error messages or worse insanity, and filed a bug report against the docs.
* #546163, fix link problem on Solaris 8 for makedev when using mknodNeal Norwitz2002-04-204-2/+9
|
* Patch #495401: Count number of required bytes for encoding UTF-8 beforeMartin v. Löwis2002-04-201-54/+43
| | | | allocating the target buffer.
* Widespread: Used classes in a more natural way. Added convenienceTim Peters2002-04-201-63/+76
| | | | | | | methods to squash code duplication. Simplified several overly complex chunks of logic. Built output strings more with string interpolation instead of infix '+'. Added comments. Exploited recent Python features (chiefly bool and augmented assignment).
* Forward port of patch # 500311: Work around for buggy https servers.Martin v. Löwis2002-04-203-25/+75
| | | | Fixes #494762.
* Add test for eval() w/ free variables.Jeremy Hylton2002-04-202-0/+11
| | | | Related to SF bug #505315
* Fix SF bug #505315: Make free and cell vars show up consistently in locals().Jeremy Hylton2002-04-201-6/+7
| | | | | | | | | | PyFrame_FastToLocals() and PyFrame_LocalsToFast() had a return if f_nlocals was 0. I think this was a holdover from the pre 2.1 days when regular locals were the only kind of local variables. The change makes it possible to use a free variable in eval or exec if it the variable is also used elsewhere in the same block, which is what the documentation says.
* Replaced the fiddly 5-tuples with a new Book convenience class, allowingTim Peters2002-04-201-65/+86
| | | | | | to reference fields via names instead of meaningless little integers. This turned up one case where the wrong little integer was being used, in informative progress output. Fixed that too.
* Fixed a comment.Tim Peters2002-04-201-1/+1
|
* All over: get rid of blanks before colons that open code blocks.Tim Peters2002-04-201-45/+45
|
* do_project(): Modernized the code.Tim Peters2002-04-201-9/+10
|
* Added "What's New" to the 2.2 doc set.Tim Peters2002-04-201-0/+1
|
* Fix com_arglist() and update grammar fragment.Jeremy Hylton2002-04-191-6/+3
| | | | | | | | | | | | | | | | | SF bug #522264 reported by Evelyn Mitchell. The code included a comment about "STAR STAR" which was translated into the code as the bogus attribute token.STARSTAR. This name never caused an attribute error because it was never retrieved. The code was based on an old version of the grammar that specified kwargs as two tokens ('*' '*'). I checked as far back as 2.1 and didn't find this production. The fix is simple, because token.DOUBLESTAR is the only token allowed. Also update the grammar fragment in com_arglist(). XXX I'll bet lots of other grammar fragments in comments are out of date, probably in this module and in compile.c.
* Patch #546194: Check constants individually. Fixes 534143 on OpenBSD.Martin v. Löwis2002-04-191-2/+19
| | | | Will backport to 2.2.
* Added a stop-list to reduce the size of the full text search index. Fred,Tim Peters2002-04-191-3/+29
| | | | | populate the "stop_list" triple-quoted string with your favorite handful of stop words.
* project_template: use dict interpolation instead of giant tuples.Tim Peters2002-04-191-14/+13
|
* + Changed TOC to folder-tree style.Tim Peters2002-04-191-1/+2
| | | | | | | + Increased size of the window the user sees the first time. + Arranged for the display to remember its last size and position. + Added a Favorites (bookmarks) tab. + Added the "Advanced Search" decorations.
* Generates inputs to the Microsoft Help Compiler, which creates compiledTim Peters2002-04-191-0/+362
| | | | | | | HTML help files (.chm). Obtained from Robin Dunn's packaging of the 2.2 docs at <http://alldunn.com/python/>, obtained in turn from Hernán Martínez Foffani's original work at <http://www.orgmf.com.ar/condor/pytstuff.html>.
* Get the right funny characters in Hernan's name.Tim Peters2002-04-192-1/+2
|
* #546155, remove posix_int() it is not usedNeal Norwitz2002-04-191-16/+0
|
* Fix SF #544995 (zlib crash on second flush call)Jeremy Hylton2002-04-192-0/+7
| | | | | | Bug fix by mhammond. Bug fix candidate for 2.2, not present in 2.1.
* Oops: we used PyMem_DEL() to clean up objects, and that's a problem sinceJack Jansen2002-04-191-1/+1
| | | | | | | | pymalloc, apparently. Fixed, but this means all bgen-generated modules will have to be re-generated. I hope (and expect) that the pymalloc fixes aren't bugfix candidates, because if they are this is one too.
* Document the build process more precisely. Suggested by Hugh Sasse.Martin v. Löwis2002-04-191-3/+15
|
* \idxcode -> \py@idxcode (mimics index stuff in python.sty - problem onlySkip Montanaro2002-04-191-3/+3
| | | | revealed itself when i added index generating lines to doc/doc.tex)
* fix duplicate labelSkip Montanaro2002-04-191-1/+5
| | | | add index turds
* Clean up the use of version numbers in filenames; always use an "abstract"Fred Drake2002-04-191-6/+17
| | | | | version number, and explain what it is at the top of the chapter. This closes SF bug #225003.
* Fix bug 544473 - "Queue module can deadlock".Mark Hammond2002-04-192-14/+191
| | | | | Use try/finally to ensure all Queue locks remain stable. Includes test case. Bugfix candidate.
* _PyObject_DebugMallocStats(): Added some potentially expensive internalTim Peters2002-04-181-5/+41
| | | | | | consistency checks, enabled only in a debug (Py_DEBUG) build. Note that this never gets called automatically unless PYMALLOC_DEBUG is #define'd too, and the envar PYTHONMALLOCSTATS exists.
* PyObject_Malloc: make a tiny bit faster for platforms where malloc(0)Tim Peters2002-04-181-2/+9
| | | | | | doesn't return NULL. PyObject_Realloc: better comment for why we don't call PyObject_Malloc(0).