Issue #28727: Optimize pattern_richcompare() for a==a

A pattern is equal to itself.
2 files changed