Submiting bugs at SF problem (was new.instancemethod problem in 2.2)
Pedro Rodriguez
pedro_rodriguez at club-internet.fr
Sun Jan 13 05:54:35 EST 2002
I tried to submit a bug at SF, but it get rejected with :
ERROR
Artifact: This ArtifactType Does Not Allow Anonymous Submissions. Please Login.
I have no account on SF, but I filled in my e-mail.
Any idea ?
--
Pedro
Bug is : new.instancemethod fails for new classes
The following code exhibit the problem :
import new
# OK
def n(self): pass
class A:
def f(self): pass
print new.instancemethod(n, None, A)
# FAILS with
# Traceback (most recent call last):
# File "bug.py", line 18, in ?
# print new.instancemethod(n, None, B)
# TypeError: instancemethod() argument 3 must be class,
# not type
def m(self): pass
class B(object):
def f(self): pass
print new.instancemethod(n, None, B)
More information about the Python-list
mailing list