Tim Peters
539afe0d84
More backporting of gc-vs-__del__ fixes. It should be fixed for instances
...
of classic classes now. Alas, new-style classes are still a problem, and
didn't need to be fixed in 2.3 (they were already immune in 2.3 due to the
new-in-2.3 tp_del slot).
2003-04-08 19:13:14 +00:00
Tim Peters
82550d5b86
Added private API function _PyInstance_Lookup(). This is part of
...
backporting fixes so that garbage collection doesn't have to trigger
execution of arbitrary Python code just to figure out whether
an object has a __del__ method.
2003-04-08 19:02:34 +00:00
Guido van Rossum
301d0f89bb
PyMethodObject(): Update the comment about im_class based upon a
...
conversation with Robin Dunn in SF patch #490402 .
2001-12-07 21:54:33 +00:00
Guido van Rossum
b479dc561c
Add PyMethod_Function(), PyMethod_Self(), PyMethod_Class() back.
...
While not even documented, they were clearly part of the C API,
there's no great difficulty to support them, and it has the cool
effect of not requiring any changes to ExtensionClass.c.
2001-09-05 22:52:50 +00:00
Tim Peters
6d6c1a35e0
Merge of descr-branch back into trunk.
2001-08-02 04:15:00 +00:00
Fred Drake
6a1c87ddf9
Add the necessary field for weak reference support to the function and
...
method types.
2001-03-23 04:17:58 +00:00
Fred Drake
41deb1efc2
PEP 205, Weak References -- initial checkin.
2001-02-01 05:27:45 +00:00
Fred Drake
05473edbe5
Added prototype for PyInstance_NewRaw().
2001-01-28 03:52:08 +00:00
Neil Schemenauer
dd038db2c2
Remove PyInstance_*BinOp functions.
2001-01-04 01:30:34 +00:00
Guido van Rossum
8586991099
REMOVED all CWI, CNRI and BeOpen copyright markings.
...
This should match the situation in the 1.6b1 tree.
2000-09-01 23:29:29 +00:00
Thomas Wouters
dd8dbdb717
The real suport for augmented assignment: new opcodes, new PyNumber and
...
PySequence methods and functions, new tokens.
2000-08-24 20:09:45 +00:00
Fred Drake
ea9cb5aebf
ANSI-fication and Py_PROTO extermination.
2000-07-09 00:20:36 +00:00
Guido van Rossum
ffcc3813d8
Change copyright notice - 2nd try.
2000-06-30 23:58:06 +00:00
Guido van Rossum
fd71b9e9d4
Change copyright notice.
2000-06-30 23:50:40 +00:00
Guido van Rossum
43466ec7b0
Add DL_IMPORT(returntype) for all officially exported functions.
1998-12-04 18:48:25 +00:00
Guido van Rossum
d4ba73c75b
Move the definition of PyMethodObject to classobject.h, so it can define
...
macros for more efficient access to the fields.
1998-07-10 15:46:33 +00:00
Guido van Rossum
f0958064f9
Remove redundant references to thread stuff -- long, long ago, there
...
was some locking code in this file that needed it...
1997-03-14 04:25:22 +00:00
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
1996-10-25 14:44:06 +00:00
Guido van Rossum
bebdc376c3
changes for keyword args to built-in functions and classes
1995-07-26 17:58:29 +00:00
Guido van Rossum
051ab123b4
make the type a parameter of the DL_IMPORT macro, for Borland C
1995-02-27 10:17:52 +00:00
Guido van Rossum
855d0b3602
corrected two unconverted names
1995-01-20 16:52:42 +00:00
Guido van Rossum
caa6380886
The great renaming, phase two: all header files have been updated to
...
use the new names exclusively, and the linker will see the new names.
Files that import "Python.h" also only see the new names. Files that
import "allobjects.h" will continue to be able to use the old names,
due to the inclusion (in allobjects.h) of "rename2.h".
1995-01-12 11:45:45 +00:00
Guido van Rossum
7a01389bc7
add 5th arg to instancebinop
1995-01-07 10:33:05 +00:00
Guido van Rossum
5799b52008
Added 1995 copyright.
...
object.h: made sizes and refcnts signed ints.
stringobject.h: make getstrsize() signed int.
methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
1995-01-04 19:06:22 +00:00
Guido van Rossum
c5d92e1271
ceval.h: added Py_MakePendingCalls()
...
classobject.h: added instancebinop()
modsupport.h: added newgetargs()
rename1.h: removed Py_FPROTO
1994-09-28 15:44:39 +00:00