Re: Python Love :)

2006-03-13 Thread http://phr.cx
"gregarican" <[EMAIL PROTECTED]> writes: > reversed(a_string) (python) > > Which version of Python offers this function? It doesn't seem to be > available in the 2.3 version I have installed... > I think it's new in 2.4. -- http://mail.python.org/mailman/listinfo/python-list

Re: proposed proposal: set.values()

2006-03-31 Thread http://phr.cx
"Terry Reedy" <[EMAIL PROTECTED]> writes: > 1. It is pure duplication that *adds* keystrokes. > Nobody says you shouldn't use list(s) if you know you're dealing with a set. The idea of s.values() is so you can duck-type between dicts and sets. > 2. It copies the wrong aspect of dict. A set is l