Suggestion: make sequence and map interfaces more similar

Jussi Piitulainen jussi.piitulainen at helsinki.fi
Wed Mar 30 06:40:08 EDT 2016


Manolo Martínez writes:

> On 03/30/16 at 09:17pm, Steven D'Aprano wrote:
>> On Wed, 30 Mar 2016 06:12 pm, Jussi Piitulainen wrote:
>> 
>> > Steven D'Aprano writes:
>> > 
>> >> Given a surjection (many-to-one mapping)
>> > 
>> > No. And I doubt that Wikipedia says that.
>> 
>> 
>> No to what? What are you disagreeing with?
>> 
>
> I think it's with your definition of surjection. Bijections are
> surjective, no?

Yes, and most many-to-one mappings are *not* surjective.



More information about the Python-list mailing list