Staging
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
History
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):
Tip revision: d9994e0
File Mode Size
api
dist
doc
ext
html
info
inst
lib
mac
paper-a4
paper-letter
perl
ref
templates
texinputs
tools
tut
whatsnew
.cvsignore -rwxr-xr-x 22 bytes
ACKS -rw-r--r-- 2.7 KB
Makefile -rw-r--r-- 13.2 KB
Makefile.deps -rw-r--r-- 5.9 KB
README -rw-r--r-- 7.9 KB
TODO -rw-r--r-- 2.8 KB
libmods.tex -rwxr-xr-x 342 bytes
libstd.tex -rwxr-xr-x 345 bytes

README

back to top