Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision d9994e0115e1acfd6d3d97a048af9616778af95c authored by Guido van Rossum on 13 April 2001, 15:42:40 UTC, committed by Guido van Rossum on 13 April 2001, 15:42:40 UTC
Calling an unbound method on a C extension class without providing an instance can yield a segfault. Try "Exception.__init__()" or "ValueError.__init__()". This is a simple fix. The error-reporting bits in call_method mistakenly treat the misleadingly-named variable "func" as a function, when in fact it is a method. If we let get_func_name take care of the work, all is fine.
1 parent d03f8fe
Tip revision: d9994e0115e1acfd6d3d97a048af9616778af95c authored by Guido van Rossum on 13 April 2001, 15:42:40 UTC
Patch by Ping (SF bug 415879, Exception.__init__() causes segfault):
Patch by Ping (SF bug 415879, Exception.__init__() causes segfault):
Tip revision: d9994e0
File | Mode | Size |
---|---|---|
.cvsignore | -rw-r--r-- | 87 bytes |
BUILDno.txt | -rw-r--r-- | 2.1 KB |
_socket.dsp | -rwxr-xr-x | 4.0 KB |
_sre.dsp | -rwxr-xr-x | 7.6 KB |
_symtable.dsp | -rw-r--r-- | 4.0 KB |
_testcapi.dsp | -rw-r--r-- | 4.0 KB |
_tkinter.dsp | -rw-r--r-- | 8.6 KB |
bsddb.dsp | -rw-r--r-- | 8.4 KB |
mmap.dsp | -rw-r--r-- | 3.9 KB |
parser.dsp | -rw-r--r-- | 7.7 KB |
pcbuild.dsw | -rw-r--r-- | 5.1 KB |
pyexpat.dsp | -rwxr-xr-x | 7.9 KB |
python.dsp | -rw-r--r-- | 6.7 KB |
python20.wse | -rw-r--r-- | 40.7 KB |
pythoncore.dsp | -rw-r--r-- | 38.4 KB |
pythonw.dsp | -rw-r--r-- | 7.3 KB |
readme.txt | -rw-r--r-- | 4.6 KB |
rmpyc.py | -rw-r--r-- | 684 bytes |
rt.bat | -rwxr-xr-x | 1.4 KB |
select.dsp | -rwxr-xr-x | 4.1 KB |
unicodedata.dsp | -rwxr-xr-x | 4.1 KB |
w9xpopen.dsp | -rw-r--r-- | 3.4 KB |
winreg.dsp | -rw-r--r-- | 4.0 KB |
winsound.dsp | -rw-r--r-- | 3.8 KB |
zlib.dsp | -rw-r--r-- | 4.1 KB |
Computing file changes ...