Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74334

Re: context manager based alternative to Re: Proposal: === and !===

Date 2014-07-10 17:34 -0700
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: context manager based alternative to Re: Proposal: === and !===
References <20140711002036.GA68939@cskk.homeip.net>
Newsgroups comp.lang.python
Message-ID <mailman.11745.1405040205.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 07/10/2014 05:20 PM, Cameron Simpson wrote:
>
> I posted this the other day and haven't seen a response, not even a scathing rejection...
>
> Here's an alternative proposal that doesn't involve a new operator.

[snip float-context manager stuff]

Decimal has a context manager like that already (I don't know if it supports allowing NaNs to equal each other, though). 
  Rather than adding the whole thing to float, perhaps extending Decimal's context with that option is a possible route.

I would also prefer something like this to a new equals operator.

--
~Ethan~

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: context manager based alternative to Re: Proposal: === and !=== Ethan Furman <ethan@stoneleaf.us> - 2014-07-10 17:34 -0700

csiph-web