DateOffset.offset vs DateOffset._offset · Issue #17176 · pandas-dev/pandas (original) (raw)

tseries.offsets.DateOffset has a _offset attribute. Many subclasses do not have this attribute, but do have a offset attribute. The main difference in the two appears to be that _offset is ignored by __eq__ (see #17137).

The question: why two separate attributes? Is this intentional or coincidence?