OK, OK, just so I can get it off my chest: - introduce '@' as a prefix operator meaning 'freeze'.
- [1, 2, 3] is a mutable sequence (our old friend the list) - {1, 2, 3} is a mutable set - @{1, 2, 3} is an immutable set (i.e., a frozen set --- frozen at creation, so all current optimizations possible) - @[1, 2, 3] is an immutable sequence (i.e., a tuple) Now, if only I can figure out whether "@x" means "bind the name x permanently to its current value to create a symbolic constant" or "freeze the object to which x currently refers"... ;-) Thanks, Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com