Stephen Thorne <[EMAIL PROTECTED]> wrote: >I have: >try: > set >except NameError: > from sets import Set as set > >in my code in a few places.
Is there any reason to prefer this over the idiom I have: if sys.version_info < (2, 4): from sets import Set as set ? (I've also used the same kind of trick to provide enumerate when a script is being run with pre-2.3.) -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | "Frankly I have no feelings towards penguins one way or the other" \X/ | -- Arthur C. Clarke her nu becomež se bera eadward ofdun hlęddre heafdes bęce bump bump bump -- http://mail.python.org/mailman/listinfo/python-list