This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients josh.r, mark.dickinson, serhiy.storchaka, smarie
Date 2018-02-21.20:26:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519244775.9.0.467229070634.issue32886@psf.upfronthosting.co.za>
In-reply-to
Content
> This one is common to both python bool and np.bool_.

It's not, though. One of my examples was using `~` (`__invert__`) from the proposed ABC). And the behaviour of that function differs between NumPy and Python

I think one of the rules about this sort of abstraction should be that there should be multiple concrete examples available that you intend the abstraction to apply to, *before* you abstract. Otherwise there's a risk of making an abstraction that doesn't turn out to fit actual use-cases. Right now, we only have Python's bool as a concrete example; NumPy's bool_ is IMO not close enough in its behaviour. Are you aware of other bool-like types around that the proposed ABC would be helpful for?
History
Date User Action Args
2018-02-21 20:26:15mark.dickinsonsetrecipients: + mark.dickinson, serhiy.storchaka, josh.r, smarie
2018-02-21 20:26:15mark.dickinsonsetmessageid: <1519244775.9.0.467229070634.issue32886@psf.upfronthosting.co.za>
2018-02-21 20:26:15mark.dickinsonlinkissue32886 messages
2018-02-21 20:26:15mark.dickinsoncreate