Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36417
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ltwisabc@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.024 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'differently': 0.07; 'raises': 0.07; 'type,': 0.07; 'python': 0.09; 'sentence': 0.09; 'source,': 0.15; 'bullet': 0.16; 'object()': 0.16; 'subject:between': 0.16; 'subject:non': 0.16; 'thanks,': 0.18; 'context.': 0.22; 'seems': 0.23; 'header:In-Reply-To:1': 0.25; 'correct': 0.28; 'behaving': 0.29; 'quoting': 0.29; 'objects': 0.29; 'that.': 0.30; 'link.': 0.30; 'returned': 0.30; 'url:python': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'built-in': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'url:org': 0.36; 'does': 0.37; 'two': 0.37; 'being': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'some': 0.38; 'url:docs': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'subject:-': 0.40; 'your': 0.60; 'most': 0.61; 'online': 0.70; 'url:htm': 0.71; 'confusing': 0.84; 'url:reference': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:date:in-reply-to:content-type :x-mailer:mime-version:content-transfer-encoding; bh=sk7F8EgAMJ0rETGRdTZ4qPxqIF7PR3AKME2c4bm7fgY=; b=YhBU5hydjRpG6SN3myD6wZFIyjqXrCpq1tfqT3kov+D886lBFvfbUeAqNzcrly8c2N 5OCROTExwFeK0ritUixubPj3PrOOBnn63yh2l8/Y7ai0JI3JR9XM/+y4Be1APaV/mRJt LXN8gHjg/835XefuO1Az4lI7BqHL1HGxczAjvor7rYjfEuZS5i6sFQt6+uKXinLvaKvD V8Vo1NA9iJwZaFcCleeTNv4qQzXyBypdVqW36SnTtiLLvsly1kNxWhgo/sGNozWo8lfd OFWuQViKYMLy5lfjs0RX5u62a6CKwV3hCSmTkZuW4McgfJ/SxX3TdumgI4sOCNRlx9oe +bgQ== |
| X-Received | by 10.68.189.66 with SMTP id gg2mr161636183pbc.111.1357631628170; Mon, 07 Jan 2013 23:53:48 -0800 (PST) |
| Subject | Re: comparison between non-comparable objects |
| From | Kelvin Li <ltwisabc@gmail.com> |
| To | python-list@python.org |
| Date | Mon, 07 Jan 2013 23:53:50 -0800 |
| In-Reply-To | <50EBB6B2.1050700@davea.name> |
| Content-Type | text/plain; charset="UTF-8" |
| X-Mailer | Evolution 3.4.4-1 |
| Mime-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.264.1357631637.2939.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1357631637 news.xs4all.nl 6947 [2001:888:2000:d::a6]:43585 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:36417 |
Show key headers only | View raw
> When quoting some online source, please give a reference link. It took > me a while to find the following page with your quote in it: > > > http://docs.python.org/3.3/reference/expressions.html > <http://docs.python.org/3.3/reference/expressions.htm> > in section "6.9 Comparisons" Sorry about that. Thanks for finding the link. > > but that seems to be Python 2 behavior; Python 3 apparently raises a > > TypeError. Does the documentation need updating? > > > > That sentence is correct in context. The bullet items there are labeled > "Comparison of objects of the same type..." And the particular bullet > also qualifies the type of the two objects being compared: " Most > other objects of built-in types..." Got it, I was confusing built-in types with built-in functions--I incorrectly thought object(), for example, returned an object of a built-in type, and was behaving differently in Python 2 and 3: object() < object() Thanks, Kelvin
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: comparison between non-comparable objects Kelvin Li <ltwisabc@gmail.com> - 2013-01-07 23:53 -0800
csiph-web