Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Suggestion: make sequence and map interfaces more similar Date: Wed, 30 Mar 2016 14:44:00 +0300 Organization: A noiseless patient Spider Lines: 23 Message-ID: <8760w4mbr3.fsf@elektro.pacujo.net> References: <56FA8C71.4050306@rece.vub.ac.be> <56fb677f$0$11121$c3e8da3@news.astraweb.com> <56fba7d3$0$1616$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="5765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FzL7/xE8QvRbFr9mtGm80" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:4403Qz29tBmnmiRzAm7Sqt6h3Fk= sha1:Tqb7DuspYh1qESJZHMxl9AVfz14= Xref: csiph.com comp.lang.python:106055 Jussi Piitulainen : > Manolo Martínez writes: >> On 03/30/16 at 01:40pm, Jussi Piitulainen wrote: >>> Yes, and most many-to-one mappings are *not* surjective. >> >> Well, I don't know about most, there are uncountably many surjective >> and non-surjective many-to-one mappings :) > > Ok, safer to say that some many-to-one mappings are not surjective. > > I was thinking of finite sets, and not even really thinking. But even > with infinite domain and infinite codomain, there can be uncountably > many mappings without any of them being a surjection - just have the > codomain be a larger infinity. 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. Marko