PEP 218 Re: ANN: set-0.1 module available
Denis S. Otkidach
ods at fep.ru
Fri May 17 05:45:42 EDT 2002
On Thu, 16 May 2002, Roman Suzi wrote:
RS> >There are still unresolved issues.
RS>
RS> >E.g. should set object be hashable?
RS>
RS> Yes, I know this discussion. Math is dealing with
RS> abstract objects while programming language is a model,
RS> which must take efficiency vs. flexibility into account.
RS>
RS> In Pascal set type was implemented for limited types of
RS> elements
RS> (IIRC) and thus lacked flexibility. It's not Pythonic way.
RS> So, probably Python will implement more flexible, universal
RS> sets?
RS> (for example, using hashes when possible or falling back to
RS> other schemes when impossible).
That's to complex. Maybe sets should be always immutable like
tuples?
More information about the Python-list
mailing list