Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | PyObject_Repr(): add missing ">" back at end of format string: "<%s | Guido van Rossum | 2001-08-30 | 1 | -1/+1 |
| | | | | object at %p>". | ||||
* | Fix _convert_NAME() so that it doesn't store locals for class bodies. | Jeremy Hylton | 2001-08-30 | 6 | -30/+30 |
| | | | | | | | | | Fix list comp code generation -- emit GET_ITER instead of Const(0) after the list. Add CO_GENERATOR flag to generators. Get CO_xxx flags from the new module | ||||
* | Squash new compiler wng. | Tim Peters | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | Add testcases for inheritance from tricky builtins (numbers, strings, | Guido van Rossum | 2001-08-30 | 1 | -0/+74 |
| | | | | tuples). | ||||
* | Pytype_GenericAlloc(): round up size so we zap all four bytes of the | Guido van Rossum | 2001-08-30 | 1 | -16/+51 |
| | | | | | | | | | | | | __dict__ slot for string subtypes. subtype_dealloc(): properly use _PyObject_GetDictPtr() to get the (potentially negative) dict offset. Don't copy things into local variables that are used only once. type_new(): properly calculate a negative dict offset when tp_itemsize is nonzero. The __dict__ attribute, if present, is now a calculated attribute rather than a structure member. | ||||
* | Revert the previous patch to test_pow.py and move the test to test_unary.py | Fred Drake | 2001-08-30 | 2 | -10/+8 |
| | | | | | based on a suggestion from Tim Peters; also make sure that we're really doing exponentiation and not multiplication. | ||||
* | Added a regression test for the negation-of-exponentiation optimization | Fred Drake | 2001-08-30 | 1 | -0/+11 |
| | | | | bug from compile.c. (SF bug #456756.) | ||||
* | When re-writing a factor containing a unary negation of a literal, only | Fred Drake | 2001-08-30 | 1 | -0/+3 |
| | | | | | affect nodes without another operator. This was causing negated exponentiations to drop the exponentiation. This closes SF bug #456756. | ||||
* | More stuff discovered while writing the simplest of testcases: | Guido van Rossum | 2001-08-30 | 1 | -2/+5 |
| | | | | | | | tupledealloc(): only feed the free list when the type is really a tuple, not a subtype. Otherwise, use PyObject_GC_Del(). _PyTuple_Resize(): disallow using this for tuple subtypes. | ||||
* | Do the int inlining only if the type is really an int, not whenever | Guido van Rossum | 2001-08-30 | 1 | -6/+9 |
| | | | | | PyInt_Check() succeeds. That returns true for subtypes of int, which may override __add__ or __sub__. | ||||
* | Ah, the joy of writing test cases... | Guido van Rossum | 2001-08-30 | 1 | -1/+1 |
| | | | | | long_subtype_new(): fix a typo (type->ob_size instead of tmp->ob_size). | ||||
* | spurious pop | Jeremy Hylton | 2001-08-30 | 2 | -2/+0 |
| | |||||
* | Add news about GC API change. Explain how to upgrade extension modules. | Neil Schemenauer | 2001-08-30 | 1 | -3/+16 |
| | |||||
* | Update documentation for GC API. Closes SF patch #421893. | Neil Schemenauer | 2001-08-30 | 1 | -29/+48 |
| | |||||
* | win_getpass(): if sys.stdin is not sys.__stdin__, use | Guido van Rossum | 2001-08-30 | 1 | -0/+2 |
| | | | | | | | default_getpass(). This should prevent hanging when it is called in IDLE. Fixes SF bug #455648. | ||||
* | fix for part of bug #453523: disable unmarshalling of code objects in | Michael W. Hudson | 2001-08-30 | 1 | -1/+7 |
| | | | | restricted execution mode. | ||||
* | Update the links to the FIPS document that defines the Secure Hash | Fred Drake | 2001-08-30 | 1 | -8/+9 |
| | | | | Algorithm. This closes SF bug #454917. | ||||
* | Removed unreachable return to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -2/+1 |
| | |||||
* | Removed an unreachable break statement to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | Removed unreachable goto statement to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -1/+0 |
| | |||||
* | Removed some unreachable break statements to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -3/+0 |
| | |||||
* | Removed some unreachable break statements to silence SGI compiler. | Sjoerd Mullender | 2001-08-30 | 1 | -3/+0 |
| | |||||
* | Started on the 2.2a2 installer | Jack Jansen | 2001-08-30 | 1 | -0/+0 |
| | |||||
* | Give the internal immutable list type .extend and .pop methods (they | Tim Peters | 2001-08-30 | 1 | -0/+2 |
| | | | | "should have" been added here when they were added to lists). | ||||
* | Add a new function imp.lock_held(), and use it to skip test_threaded_import | Tim Peters | 2001-08-30 | 4 | -4/+47 |
| | | | | when that test is doomed to deadlock. | ||||
* | Safety measures now that str and tuple are subclassable: | Guido van Rossum | 2001-08-30 | 1 | -1/+9 |
| | | | | | | If tp_itemsize of the basetype is nonzero, only allow empty __slots__ (declaring that no __dict__ should be added), and don't add a weakref offset. | ||||
* | Make 'super' subclassable. (Not sure how useful this is yet. :-) | Guido van Rossum | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | Make unicode subclassable. | Guido van Rossum | 2001-08-30 | 1 | -2/+32 |
| | |||||
* | Make str and tuple types subclassable. | Guido van Rossum | 2001-08-30 | 2 | -4/+54 |
| | |||||
* | Make getset subclassable. | Guido van Rossum | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | Fix typo: double semicolons. | Guido van Rossum | 2001-08-30 | 2 | -2/+2 |
| | |||||
* | Make the Py<type>_Check() macro use PyObject_TypeCheck(). | Guido van Rossum | 2001-08-30 | 3 | -3/+3 |
| | |||||
* | Squash new compiler wng in debug build. | Tim Peters | 2001-08-30 | 1 | -1/+1 |
| | |||||
* | gcmodule is now always compiled | Neil Schemenauer | 2001-08-30 | 1 | -3/+0 |
| | |||||
* | gcmodule is now enabled here | Neil Schemenauer | 2001-08-30 | 1 | -0/+6 |
| | |||||
* | Make more things internal to this file. Remove | Neil Schemenauer | 2001-08-30 | 1 | -93/+148 |
| | | | | | | | | | visit_finalizer_reachable since it's the same as visit_reachable. Rename visit_reachable to visit_move. Objects can now have the GC type flag set, reachable by tp_traverse and not be in a GC linked list. This should make the collector more robust and easier to use by extension module writers. Add memory management functions for container objects (new, del, resize). | ||||
* | Always build gcmodule. | Neil Schemenauer | 2001-08-29 | 1 | -297/+303 |
| | |||||
* | Flush output more aggressively. This makes things look better if | Neil Schemenauer | 2001-08-29 | 1 | -0/+2 |
| | | | | the setup script is running from inside Vim. | ||||
* | Use new GC API. Remove usage of BASICSIZE macros. | Neil Schemenauer | 2001-08-29 | 1 | -18/+18 |
| | |||||
* | Use new GC API. | Neil Schemenauer | 2001-08-29 | 8 | -99/+76 |
| | |||||
* | Remove GC related code. It lives in gcmodule now. | Neil Schemenauer | 2001-08-29 | 1 | -26/+1 |
| | |||||
* | Make frames a PyVarObject. Use new GC API. | Neil Schemenauer | 2001-08-29 | 1 | -30/+14 |
| | |||||
* | Remove bogus PyGC_HEAD_SIZE. | Neil Schemenauer | 2001-08-29 | 1 | -1/+1 |
| | |||||
* | Change the GC type flag since the API has changed. Allow types using | Neil Schemenauer | 2001-08-29 | 1 | -50/+66 |
| | | | | | | | the old flag to still compile. Remove the PyType_BASICSIZE and PyType_SET_BASICSIZE macros. Add PyObject_GC_New, PyObject_GC_NewVar, PyObject_GC_Resize, PyObject_GC_Del, PyObject_GC_Track, PyObject_GC_UnTrack. Part of SF patch #421893. | ||||
* | Change the GC type flag since the API has changed. Allow types using | Neil Schemenauer | 2001-08-29 | 1 | -6/+10 |
| | | | | the old flag to still compile. | ||||
* | Make frames a PyVarObject instead of a PyObject. | Neil Schemenauer | 2001-08-29 | 1 | -2/+1 |
| | |||||
* | Always compile gcmodule. | Neil Schemenauer | 2001-08-29 | 2 | -6/+3 |
| | |||||
* | Track the block stack more reasonably in order to handle continue in | Jeremy Hylton | 2001-08-29 | 2 | -26/+90 |
| | | | | | | | | try/except or try/finally. Previous versions had only track SETUP_LOOP blocks and ignored the exception part. This meant that it allowed continue inside a try/except but generated buggy code. Now it does the right thing. | ||||
* | Improve stack depth computation for try/except and try/finally | Jeremy Hylton | 2001-08-29 | 2 | -2/+8 |
| | | | | Add CONTINUE_LOOP to the list of unconditional transfers | ||||
* | Add __getitem__() handler for use by visitContinue() | Jeremy Hylton | 2001-08-29 | 2 | -0/+4 |
| |