Message156141
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. |
|
Date |
User |
Action |
Args |
2012-03-17 06:12:31 | eli.bendersky | set | recipients:
+ eli.bendersky, effbot, terry.reedy, sjmachin, flox, santoso.wijaya, tshepang |
2012-03-17 06:12:31 | eli.bendersky | set | messageid: <1331964751.06.0.569251636524.issue13782@psf.upfronthosting.co.za> |
2012-03-17 06:12:30 | eli.bendersky | link | issue13782 messages |
2012-03-17 06:12:30 | eli.bendersky | create | |
|