A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-November/010717.html below:

[Python-Dev] PEP-0218

[Python-Dev] PEP-0218Moshe Zadka moshez@zadka.site.co.il
Mon, 27 Nov 2000 17:06:42 +0200
Well, another proof of the bugs in the PEP process -- my remarks were
lost, so I'll send them here.

Let me note that almost everything Greg Wilson wants to do can be done
via a Python class implementing a set using a dictionary mapping to None.
Almost?

* No builitin syntax: import Set;Set(1,2,3) instead of {1,2,3}
* Convertors: if we want list/tuple to have a semblance of efficiency,
  we'll need to cache the element list as a list when accessed by
  index.
* Two different constructors: set() for building from sequence, Set()
  for building from elements. Might be confusing.
* Only possible elements of a set are immutables. OTOH, I'm not sure
  how Greg intends to implement his sets if these sets are allowed 
  to contain mutable elements. 


-- 
Moshe Zadka <sig@zadka.site.co.il>
This is a signature anti-virus. 
Please stop the spread of signature viruses!



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4