id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc
238	objects which have type checks in __eq__ or __cmp__ break serialization	ccx@…	xi	"Python classes that raise exceptions on comparison (== operator) may break the serialization as 
[source:pyyaml/trunk/lib/yaml/representer.py@380#L142 yaml/representer.py:142] contains:
{{{
#!python
if data in [None, ()]:
}}}
It should instead read:
{{{
#!python
if data is None or data is ():
}}}
to avoid invoking the class-defined comparison operations and check for object identity instead.

This currently breaks serialization of {{{numpy.Array}}} classes."	defect	new	normal	pyyaml	normal			
