In article <[EMAIL PROTECTED]>, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Roy Smith wrote: > > > What would actually be cool is if Python were to support the normal math > > notation for open or closed intervals. > > > > foo = bar (1, 2) > > foo = bar (1, 2] > > foo = bar [1, 2) > > foo = bar [1, 2] > > > > That would certainly solve this particular problem, but the cost to the > > rest of the language syntax would be rather high :-) > > Not to mention the sanity of everyone's editors when > they try to do bracket matching! I have no doubt that somebody could teach emacs python-mode to correctly match half-open interval brackets. -- http://mail.python.org/mailman/listinfo/python-list