-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jan 16, 2007, at 5:04 PM, Jim Jewett wrote:
> Other than dict.items (and .keys and .values) returning a non-list, > are there any other cases where the Py3K idiom can't already be used > in (or at least backported to) Py 2.x? I know Guido is against attribute syntax for dict.items and friends, and I agree with him for reasons I can't quite put my finger on. But, would it be possible to support both the py3k way and the Python 2 way if you accepted attribute syntax for returning the view thingie? Couldn't that view thingie have an __call__ that returned the backward compatible list object? - -Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iQCVAwUBRa1V9nEjvBPtnXfVAQIODQQAlCI4iykl93zKJeIW/3QuuOm4jCRrhffV BOkuu+mM4N/1Rqc2TCBHUIi995TkYo/6Wuzb7LrXweG5kLm2cdWTNm+aSgZq35HL XxPVP9qwCElKbZjl84udx/dbLdl9AfVasT2iVUiEVZN3Kq5j+UbyK+oaQdVjBc+5 j51iDW+vhcc= =Qq7c -----END PGP SIGNATURE----- _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com