Is same object Python

hello!!
is there a rhinoscript command to test if two objects are duplicate?

What constitutes a duplicate object?

Just for testing if the two objects are the same object, like select duplicate objects.

Yeah, but how does Rhino know if one object is duplicate of the other?

Like Rhino’s SelDup command?

– Dale

In fact, I’ve got two layers. One with a lot of objects, and a second with a lot of objects too…
I’ve to compare the two layers to extract only different objects on another layer…
Is it clear?
Seldup rhino’s command select one of same objects, but I don’t know on witch layer it take the duplicate objects.

Use SelDupAll, then turn off or lock one of the two layers…