[TIP] Mocking properties on an instance
Chris Wesseling
Chris.Wesseling at cwi.nl
Mon Sep 12 05:27:05 PDT 2011
On 2011-09-12T10:52:14+0100, Michael Foord wrote:
> On 05/09/2011 09:11, Chris Wesseling wrote:
> >On 2011-09-04T23:29:09+0100, Michael Foord wrote:
> >>>(P.S. I really do wish python had a sortedset and frozendict type already but that is a different discussion :/ )
> >>Indeed. :-)
> >>
> >>(There was a proposal to make sets sorted by default. I'm not sure
> >>what has happened to that though.)
> >By default? Blegh. :-r
> >
> Why? What would the downside be?
By definition they don't have order.
So would it change the semantics of equality?
set(range(5)) != set(range(4, -1, -1))
--
Chris
--
A: No.
Q: Should I include quotations after my reply?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110912/ea21512c/attachment.pgp>
More information about the testing-in-python
mailing list