[Python-ideas] `numbers.Natural`

Steven D'Aprano steve at pearwood.info
Sun Sep 28 08:37:16 CEST 2014


On Sun, Sep 28, 2014 at 12:13:43AM -0400, random832 at fastmail.us wrote:
> On Sat, Sep 27, 2014, at 01:04, Chris Angelico wrote:
> > Assuming the characters you're after are U+2208 'ELEMENT OF' and
> > U+2115 'DOUBLE-STRUCK CAPITAL N', your name would be isβˆˆβ„•(). 
[...]
> Speaking of the other can of worms... we already _have_ that operator,
> it is spelled "in". What we don't have is infinite sets.

Guys, a reminder please: Python is a general purpose programming 
language with a general-purpose notation, not Mathematica. The most 
specialised the task, or the notation, the less likely it is to belong 
in Python the language or the standard library. But feel free to create 
your own libraries, or even your own parser for a mini-language capable 
of interpreting things like x ∈ β„•. Or help contribute to Sage.

http://www.sagemath.org


-- 
Steven


More information about the Python-ideas mailing list