summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SF patch # 580411, move frame macros from frameobject.h into ceval.cNeal Norwitz2002-07-142-23/+10
| | | | | remove unused macros use co alias instead of f->f_code in macros
* Undef MIN and MAX before defining them, to avoid warnings on certainGuido van Rossum2002-07-131-0/+2
| | | | platforms.
* Don't declare a function with staticforward.Jeremy Hylton2002-07-131-2/+2
| | | | | Just declare it static so that lame (BAD_STATIC_FORWARD) compilers don't see a mismatch between the prototype and the function.
* Add more itemsAndrew M. Kuchling2002-07-121-13/+46
| | | | | Use \cfunction instead of \function in various places Add contributor names
* Clarify the return value of __nonzero__(): It *must* be an integer.Fred Drake2002-07-121-3/+3
| | | | Closes SF bug #579991.
* fixed wrong classic MacOS pathname assumptionJust van Rossum2002-07-121-1/+1
|
* Remove httplib from tested modules.Jeremy Hylton2002-07-121-15/+0
| | | | | | | | The test of httplib makes it difficult to maintain httplib. There are two many idioms that pyclbr doesn't seem to understand, and I don't understand how to update these tests to make them work. Also remove commented out test of urllib2.
* Get the meta class inheritance right.Jeremy Hylton2002-07-121-5/+6
|
* Mention new encoding.Marc-André Lemburg2002-07-121-0/+2
|
* Palm OS encoding from Sjoerd MullenderMarc-André Lemburg2002-07-121-0/+67
|
* Change _begin() back to begin().Jeremy Hylton2002-07-122-6/+5
| | | | Client code could create responses explicitly.
* Fernando Pérez of SF bug 579701 fame.Guido van Rossum2002-07-121-0/+1
|
* Fix SF bug 579701 (Fernando Pérez); an input line consisting of one orGuido van Rossum2002-07-121-8/+8
| | | | | | | more spaces only crashed pdb. While I was at it, cleaned up some style nits (spaces between function and parenthesis, and redundant parentheses in if statement).
* minor fixes, removed obsolete warningJust van Rossum2002-07-121-10/+3
|
* Well, Fred never did explain why the code to determine whether theMichael W. Hudson2002-07-121-7/+3
| | | | | | calling Python was installed was so complicated, so I simplified it. This should get the snake-farm's build scripts working again.
* HAVE_LIMITS_H -- raise #error if not defined; limits.h is std CTim Peters2002-07-122-12/+2
| | | | | | ULONG_MAX -- removed; std C requires it in limits.h LONGLONG_MAX -- removed; never used ULONGLONGMAX -- removed; never used
* remove decl of unused variableJeremy Hylton2002-07-111-1/+1
|
* Do more robust test of whether global objects are accessible.Jeremy Hylton2002-07-111-4/+3
| | | | | | | | PyImport_ImportModule() is not guaranteed to return a module object. When another type of object was returned, the PyModule_GetDict() call return NULL and the subsequent GetItem() seg faulted. Bug fix candidate.
* docompare(): Use PyTuple_New instead of Py_BuildValue to build compare'sTim Peters2002-07-111-2/+7
| | | | | | | | | | | | | | | | | | | | | | | arg tuple. This was suggested on c.l.py but afraid I can't find the msg again for proper attribution. For list.sort(cmp) where list is a list of random ints, and cmp is __builtin__.cmp, this yields an overall 50-60% speedup on my Win2K box. Of course this is a best case, because the overhead of calling cmp relative to the cost of actually comparing two ints is at an extreme. Nevertheless it's huge bang for the buck. An additionak 20-30% can be bought by making the arg tuple an immortal static (avoiding all but "the first" PyTuple_New), but that's tricky to make correct since docompare needs to be reentrant. So this picks the cherry and leaves the pits for Fred <wink>. Note that this makes no difference to the list.sort() case; an arg tuple gets built only if the user specifies an explicit sort function.
* move make_eiffel_method() out of base metaclassJeremy Hylton2002-07-111-7/+7
|
* Remove list prenpost. It's not used any longer.Jeremy Hylton2002-07-111-3/+0
|
* Add a call to a Sub() method that actually works.Jeremy Hylton2002-07-111-0/+1
|
* Add Enum and Eiffel examples using new-style classes.Jeremy Hylton2002-07-112-0/+323
|
* Make another pass through Misc/NEWS and add stuff.Andrew M. Kuchling2002-07-111-15/+64
| | | | Bump version number.
* _structure(): Don't get the whole Content-Type: header, just get theBarry Warsaw2002-07-111-1/+1
| | | | type with get_type().
* Repair example code in doc string.Jeremy Hylton2002-07-111-1/+1
| | | | Bug fix candiadte.
* Add some itemsAndrew M. Kuchling2002-07-111-113/+159
| | | | | Expand the "Other Language Changes" section Rewrite various passages.
* [Bug #567607] Suggest METH_NOARGS to replace PyArg_NoArgsAndrew M. Kuchling2002-07-111-5/+9
|
* test_trashcan() and supporting class Ouch(): Jeremy noted that this testTim Peters2002-07-111-3/+9
| | | | | | | | | | | | | | takes much longer to run in the context of the test suite than when run in isolation. That's because it forces a large number of full collections, which take time proportional to the total number of gc'ed objects in the whole system. But since the dangerous implementation trickery that caused this test to fail in 2.0, 2.1 and 2.2 doesn't exist in 2.3 anymore (the trashcan mechanism stopped doing evil things when the possibility for compiling without cyclic gc was taken away), such an expensive test is no longer justified. This checkin leaves the test intact, but fiddles the constants to reduce the runtime by about a factor of 5.
* _dispatch(): Comment improvements.Barry Warsaw2002-07-111-3/+3
|
* subtype_resurrection(): Removed unused import.Tim Peters2002-07-111-1/+0
|
* Extend function() to support an optional closure argument.Jeremy Hylton2002-07-112-12/+89
| | | | Also, simplify some ref counting for other optional arguments.
* subtype_resurrection(): The test suite with -l properly reported theTim Peters2002-07-111-2/+13
| | | | immortal object here as a leak. Made the object mortal again at the end.
* Don't stomp on an exception set by PyCell_Get()Jeremy Hylton2002-07-111-1/+4
|
* I trust the parser accelators are getting added :-).Jeremy Hylton2002-07-111-6/+0
|
* Repaired optimistic comment in new test.Tim Peters2002-07-111-4/+3
|
* Added a test that provokes the hypothesized (in my last checkin comment)Tim Peters2002-07-111-0/+20
| | | | | | | | | | | debug-build failure when an instance of a new-style class is resurrected by a __del__ method -- we simply never had any code that tried this. This is already fixed in 2.3 CVS. In 2.2.1, it blows up via Fatal Python error: GC object already in linked list I'll fix it in 2.2.1 CVS next.
* object.h special-build macro minefield: renamed all the new lexicalTim Peters2002-07-116-157/+112
| | | | | | | | | | | | | | | | | | | | | | | | | helper macros to something saner, and used them appropriately in other files too, to reduce #ifdef blocks. classobject.c, instance_dealloc(): One of my worst Python Memories is trying to fix this routine a few years ago when COUNT_ALLOCS was defined but Py_TRACE_REFS wasn't. The special-build code here is way too complicated. Now it's much simpler. Difference: in a Py_TRACE_REFS build, the instance is no longer in the doubly-linked list of live objects while its __del__ method is executing, and that may be visible via sys.getobjects() called from a __del__ method. Tough -- the object is presumed dead while its __del__ is executing anyway, and not calling _Py_NewReference() at the start allows enormous code simplification. typeobject.c, call_finalizer(): The special-build instance_dealloc() pain apparently spread to here too via cut-'n-paste, and this is much simpler now too. In addition, I didn't understand why this routine was calling _PyObject_GC_TRACK() after a resurrection, since there's no plausible way _PyObject_GC_UNTRACK() could have been called on the object by this point. I suspect it was left over from pasting the instance_delloc() code. Instead asserted that the object is still tracked. Caution: I suspect we don't have a test that actually exercises the subtype_dealloc() __del__-resurrected-me code.
* 1. Prevent Undo before IOmark in PyShell.PyShellKurt B. Kaiser2002-07-112-13/+22
| | | | | 2. Consolidate Undo code in EditorWindow.EditorWindow 3. Remove Formatting and Run menus from PyShell
* Replace rare tabs with 4 spaces, assuming that's what was intended.Guido van Rossum2002-07-111-7/+7
|
* Note the existence of SpecialBuilds.txt.Guido van Rossum2002-07-111-0/+1
|
* Noted the releases in which COUNT_ALLOCS can blow up.Tim Peters2002-07-111-0/+1
|
* Recorded the introduction release for each gimmick, as best I was able toTim Peters2002-07-111-10/+18
| | | | | reconstruct that info. Filled out some sketchy explanations of pragmatics.
* Some clarifications.Tim Peters2002-07-111-3/+9
|
* Documented PYMALLOC_DEBUG. This completes primary coverage of all theTim Peters2002-07-102-1/+53
| | | | | "special builds" I ever use. If you use others, document them here, or don't be surprised if I rip out the code for them <0.5 wink>.
* Document gc.get_objects().Fred Drake2002-07-101-0/+6
| | | | Closes SF bug #578308.
* Clarified sys.getobjects() pragmatics.Tim Peters2002-07-101-6/+11
|
* Removed no-longer-relevant explanation of "alpha" builds.Tim Peters2002-07-101-8/+0
|
* Uglified the new Py_REF_DEBUG (etc) lexical helper macro definitions soTim Peters2002-07-101-21/+25
| | | | | | | that their uses can be prettier. I've come to despise the names I picked for these things, though, and expect to change all of them -- I changed a bunch of other files to use them (replacing #ifdef blocks), but the names were so obscure out of context that I backed that all out again.
* Remove the unused, and therefore distracting, "Alpha" build configurations.Mark Hammond2002-07-108-1962/+45
|