Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Manolo =?iso-8859-1?Q?Mart=EDnez?= Newsgroups: comp.lang.python Subject: Re: Suggestion: make sequence and map interfaces more similar Date: Wed, 30 Mar 2016 15:13:06 +0200 Lines: 24 Message-ID: References: <56fb677f$0$11121$c3e8da3@news.astraweb.com> <56fba7d3$0$1616$c3e8da3$5496439d@news.astraweb.com> <8760w4mbr3.fsf@elektro.pacujo.net> <87wpokktw5.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de yBmeCl5S4ubXpkoGXKKHogreAgjJjL+U+B68SOhPt8yQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'defined.': 0.09; 'exist.': 0.09; 'second.': 0.09; 'yeah,': 0.09; 'mappings.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'set,': 0.16; 'subject:interfaces': 0.16; 'subject:make': 0.16; 'wrote:': 0.16; 'exists': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'fix': 0.21; 'tuples': 0.22; 'cc:no real name:2**0': 0.22; '(or': 0.23; 'seems': 0.23; 'sets': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'function': 0.28; 'classes': 0.30; 'guess': 0.31; 'probably': 0.31; "can't": 0.32; 'exist': 0.35; 'but': 0.36; 'there': 0.36; 'depends': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'does': 0.39; 'some': 0.40; 'subject:more': 0.61; 'discuss': 0.61; 'believe': 0.66; 'received:82.223': 0.84 Content-Disposition: inline In-Reply-To: <87wpokktw5.fsf@elektro.pacujo.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:106070 On 03/30/16 at 03:55pm, Marko Rauhamaa wrote: > Manolo Martínez : > > > On 03/30/16 at 02:44pm, Marko Rauhamaa wrote: > >> I don't even know if you can say much about the cardinality (or > >> countability) of mappings. The general set of mappings can't exist. > >> The *class* of mappings does exist in some set theories, but I don't > >> believe classes have cardinality. > > > > I guess I was thinking of the cardinality of the set of tuples with > > members of the domain in the first member and their image in the > > second. > > If you fix the domain and codomain, then we can discuss cardinality > again, but the answer depends on the domain and codomain. For example, > if the domain is the empty set, there exists precisely one function. And > if the codomain is the empty set as well, that function is a bijection. Yeah, what I said and you quote above is wrong: I was thinking of the cardinality of the set of those sets of tuples. This seems like the kind of thing that would result in set-theoretic paradoxes, so yes, you are probably right that the cardinality of mappings is not well defined. Manolo