A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20040520/cb63f0a8/attachment.html below:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>sets, scanf</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Just a couple of modest suggestions for new features.&nbsp; Nothing earth-shattering here but I think these would give a lot of bang for the buck.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">1.&nbsp; sscanf functionality: I know this has been discussed for years, but it's time to bite the bullet and do it. </FONT>


</P>

<P><FONT SIZE=2 FACE="Arial">2. Sets are a useful addition to the language, but sorted sets (and dictionaries) would be more useful.&nbsp; C++/Java/C# all provide these types. In particular I'd like to see:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">A.&nbsp; Dictionaries support union, intersection, and symmetric difference operations as sets do.</FONT>


<BR><FONT SIZE=2 FACE="Arial">B.&nbsp; (Sorted) Dictionaries and sets support slicing operations: E.g. dict['a':'z'] should return a sub-dictionary with all the keys between 'a' and 'z'.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">C. Binary searching for items in sorted sequence and mapping types.</FONT>


<BR><FONT SIZE=2 FACE="Arial">D. Ability to handle multiple getitems at once in sequence and mapping types (Akin to what can be done in numarray).&nbsp; Certainly there is no good reason why lists/tuples shouldn't support list[iterable] (not to be confused with list(iterable)) which returns or dictionaries support something like dict.getm(iterable).</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Mark Lake</FONT>


</P>
<BR>

</BODY>


</HTML>

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