Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73305
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python's numeric tower |
| Date | 2014-06-15 23:48 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-E99CF6.23481915062014@news.panix.com> (permalink) |
| References | (4 earlier) <539e3c95$0$29988$c3e8da3$5496439d@news.astraweb.com> <mailman.11074.1402880950.18130.python-list@python.org> <roy-019E1B.21575015062014@news.panix.com> <mailman.11075.1402884256.18130.python-list@python.org> <roy-ED231F.22175715062014@news.panix.com> |
In article <roy-ED231F.22175715062014@news.panix.com>,
Roy Smith <roy@panix.com> wrote:
> In article <mailman.11075.1402884256.18130.python-list@python.org>,
> Chris Angelico <rosuav@gmail.com> wrote:
>
> > On Mon, Jun 16, 2014 at 11:57 AM, Roy Smith <roy@panix.com> wrote:
> > > In article <mailman.11074.1402880950.18130.python-list@python.org>,
> > > Chris Angelico <rosuav@gmail.com> wrote:
> > >
> > >> I guess if you have a list of Numbers that are all the same type, you
> > >> can probably sum them, but you can sum non-Numbers too. The docstring
> > >> is a bit vague - sure, it's a number, but what can you do with it?
> > >
> > > You can use it to count to three!
> >
> > Since "increment" is not a provided method, and the + and += operators
> > are not guaranteed to be defined for any definition of 1 on the other
> > side, I'm not sure that's actually true... but if you hold a hand
> > grenade and want to know whether to count to Decimal('3') or 3+0j or
> > Fraction(3, 1), I'm just going to tell you to throw the thing already!
> >
> > ChrisA
>
> I don't believe HandGrenade implements throw(). It does, however,
> implement lobbeth().
On second thought, it probably implements lob(). You can, however
derive lobbeth() by calling conjugate().
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Python's numeric tower Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-15 02:51 +0000
Re: Python's numeric tower Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-15 01:22 -0600
Re: Python's numeric tower Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-15 15:33 +0000
Re: Python's numeric tower Roy Smith <roy@panix.com> - 2014-06-15 13:28 -0400
Re: Python's numeric tower Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-15 11:45 -0600
Re: Python's numeric tower Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-16 00:38 +0000
Re: Python's numeric tower Chris Angelico <rosuav@gmail.com> - 2014-06-16 11:02 +1000
Re: Python's numeric tower Roy Smith <roy@panix.com> - 2014-06-15 21:57 -0400
Re: Python's numeric tower Chris Angelico <rosuav@gmail.com> - 2014-06-16 12:04 +1000
Re: Python's numeric tower Roy Smith <roy@panix.com> - 2014-06-15 22:17 -0400
Re: Python's numeric tower Dan Sommers <dan@tombstonezero.net> - 2014-06-16 03:38 +0000
Re: Python's numeric tower Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-06-16 09:29 +0100
Re: Python's numeric tower Roy Smith <roy@panix.com> - 2014-06-15 23:48 -0400
csiph-web