Article View: pl.comp.lang.python
Article #552Re:
From: Kazik
Date: Mon, 06 Jan 2003 05:32
Date: Mon, 06 Jan 2003 05:32
21 lines
1480 bytes
1480 bytes
> Hej! > Dlaczego python pozwala na takie wyrażenie (nie generuje błędu typów): > >>> "a" > 10000 > 1 > > Jaki sens ma takie wyrażenie? > > Pozdrowienia, > Tomek Zacytuje tutorial: Note that comparing objects of different types is legal. The outcome is deterministic but arbitrary: the types are ordered by their name. Thus, a list is always smaller than a string, a string is always smaller than a tuple, etc. Mixed numeric types are compared according to their numeric value, so 0 equals 0.0, etc Pozdrawiam, Kazik -- Wysłano z serwisu Usenet w portalu Gazeta.pl -> http://www.gazeta.pl/usenet/
Technical Details
Message-ID:
<avb4d9$qf5$1@news.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news.astercity.net!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mailReferences:
<av9jn2$k0p$00$1@news.t-online.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!news.astercity.net!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail From: "Kazik" <jobuk@NOSPAM.gazeta.pl> Newsgroups: pl.comp.lang.python Subject: Re: Date: Mon, 6 Jan 2003 05:32:25 +0000 (UTC) Organization: Portal Gazeta.pl -> http://www.gazeta.pl Lines: 21 Message-ID: <avb4d9$qf5$1@news.gazeta.pl> References: <av9jn2$k0p$00$1@news.t-online.com> NNTP-Posting-Host: 81.134.139.104 X-Trace: news.gazeta.pl 1041831145 27109 172.20.26.241 (6 Jan 2003 05:32:25 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Mon, 6 Jan 2003 05:32:25 +0000 (UTC) X-User: jobuk X-Forwarded-For: host81-134-139-104.in-addr.btopenworld.com X-Remote-IP: 81.134.139.104 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit