Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70701
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Gregory Ewing <greg.ewing@canterbury.ac.nz> |
| Newsgroups | comp.lang.python |
| Subject | Re: Inconsistent viewkeys behaviour |
| Date | Tue, 29 Apr 2014 12:08:49 +1200 |
| Lines | 13 |
| Message-ID | <bs88shF6fvqU1@mid.individual.net> (permalink) |
| References | <CAN1F8qWEO6N6MOXpFUM0rNa9nNAjF79WOD+De9n1pFZpibDF-w@mail.gmail.com> <mailman.9546.1398680984.18130.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net r+V8NWnAtMeAtYpGk4yxEgKZeY7Gr64NalPA/U7DtkF9zyUwgu |
| Cancel-Lock | sha1:WxPoJsoJmRZSpPv16S8dW9ysxx8= |
| User-Agent | Mozilla Thunderbird 1.0.5 (Macintosh/20050711) |
| X-Accept-Language | en-us, en |
| In-Reply-To | <mailman.9546.1398680984.18130.python-list@python.org> |
| Xref | csiph.com comp.lang.python:70701 |
Show key headers only | View raw
Terry Reedy wrote: > The left operand determines the result. The manual specifies that < and > > do not have to be consistent. But I suspect that when 3.x dict.keys() > was backported to 2.7.0, no one thought to update set, whereas the > backported key view code already had the comparison. The question is why set() is raising an exception instead of returning NotImplemented to give the other operand a chance. -- Greg
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Inconsistent viewkeys behaviour Terry Reedy <tjreedy@udel.edu> - 2014-04-28 06:28 -0400 Re: Inconsistent viewkeys behaviour Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-04-29 12:08 +1200
csiph-web