This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Trundle
Recipients Trundle, belopolsky, daniel.urban, eric.araujo, flox, meador.inge, vstinner
Date 2011-04-29.16:01:10
SpamBayes Score 4.3601254e-08
Marked as misclassified No
Message-id <1304092871.56.0.959871727461.issue9756@psf.upfronthosting.co.za>
In-reply-to
Content
I think it is reasonable to restrict the self argument of method descriptors and slot wrapper descriptors to real instances of the type. The called method can't cope with the value anyway (in the general case). Alternative Python implementations like Jython and PyPy already enforce this.

Attached is a patch against default branch that enforces this.
History
Date User Action Args
2011-04-29 16:01:11Trundlesetrecipients: + Trundle, belopolsky, vstinner, eric.araujo, flox, meador.inge, daniel.urban
2011-04-29 16:01:11Trundlesetmessageid: <1304092871.56.0.959871727461.issue9756@psf.upfronthosting.co.za>
2011-04-29 16:01:10Trundlelinkissue9756 messages
2011-04-29 16:01:10Trundlecreate