return it != container.end() ? PyGetItemObject( *it ) : Py_None;
if ( it != container.end() ) return PyGetItemObject( *it ); else goto error;
static PyObject *wpContent_get( wpContent *self, int id ){	if ( isCharSerial(self->contserial) )	{		P_CHAR pc = FindCharBySerial( self->contserial );		if (!pc)			return Py_None;		cBaseChar::ItemContainer container = pc->content();		if ( id >= container.size() || id < 0 )			return Py_None;		cBaseChar::ItemContainer::const_iterator it(container.begin());		for ( uint i = 0; i < id && it != container.end(); ++i )	// Ask Correa before trying 			++it;													// to 'optimize' this, there 																	// isn't much standard complient options here		return it != container.end() ? PyGetItemObject( *it ) : Py_None;	}	else	{		P_ITEM pi = FindItemBySerial( self->contserial );		if (!pi)			return Py_None;		cItem::ContainerContent container = pi->content();		if ( id >= container.size() || id < 0 )			return Py_None;		cItem::ContainerContent::const_iterator it(container.begin());		for ( uint i = 0; i < id && it != container.end(); ++i )	// Ask Correa before trying 			++it;													// to 'optimize' this, there 																	// isn't much standard complient options here		return it != container.end() ? PyGetItemObject( *it ) : Py_None;	}	return Py_None;}