[Python-3000] Empty set and empty dictionary (original) (raw)
Eoghan Murray eoghan at qatano.com
Tue Apr 17 02:35:49 CEST 2007
- Previous message: [Python-3000] Empty set and empty dictionary
- Next message: [Python-3000] Empty set and empty dictionary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
s[1] being a list index of the list 's' s[1,] being a set literal with one element, '1'
On 17/04/07, Eoghan Murray <eoghan at qatano.com> wrote:
I had another idea on this theme.. going by unicode and raw string literals, how about s[1, 2, 3, 4] for a set? Eoghan On 17/04/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > > DillonCo wrote: > > > Why not use "<>" for sets? > > Some possible reasons: > > * It would look ugly > > * There could be visual confusion with comparison operators > > * There could be parsing difficulties distinguishing > nested set bracketing from << and >> operators > > -- > Greg _> ________________________ > Python-3000 mailing list > Python-3000 at python.org > http://mail.python.org/mailman/listinfo/python-3000 > Unsubscribe: > http://mail.python.org/mailman/options/python-3000/eoghan%40qatano.com >
-- http://qatano.com/ http://eoghan.qatano.org/ +353 86 236 1190
-- http://qatano.com/ http://eoghan.qatano.org/ +353 86 236 1190 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-3000/attachments/20070417/4b9dc874/attachment.htm
- Previous message: [Python-3000] Empty set and empty dictionary
- Next message: [Python-3000] Empty set and empty dictionary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]