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 eli.bendersky
Recipients effbot, eli.bendersky, flox, santoso.wijaya, sjmachin, terry.reedy, tshepang
Date 2012-03-17.06:12:28
SpamBayes Score 2.196267e-09
Marked as misclassified No
Message-id <1331964751.06.0.569251636524.issue13782@psf.upfronthosting.co.za>
In-reply-to
Content
Attaching a patch that sets the record straight in 3.3 - the 3 methods will raise TypeError, in both C and Python implementations. Also adds a test that verifies this, and updating the documentation.

Note that in the C implementation extend wasn't actually type-checking its argument as well, so I added it for consistency. I don't believe this will be a performance problem. On the contrary, there are some type checking calls inside the implementation that can probably be removed now that we make sure only subclasses of Element get in as children. I'll look into this later.
History
Date User Action Args
2012-03-17 06:12:31eli.benderskysetrecipients: + eli.bendersky, effbot, terry.reedy, sjmachin, flox, santoso.wijaya, tshepang
2012-03-17 06:12:31eli.benderskysetmessageid: <1331964751.06.0.569251636524.issue13782@psf.upfronthosting.co.za>
2012-03-17 06:12:30eli.benderskylinkissue13782 messages
2012-03-17 06:12:30eli.benderskycreate