Eli Bendersky <eli...@gmail.com> added the comment:

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.

----------
keywords: +patch
Added file: http://bugs.python.org/file24897/issue13782.1.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to