← Back to team overview

ffc team mailing list archive

Re: Python 2.3 compatibility

 

there is the Sets module in 2.3

http://www.python.org/doc/2.3/whatsnew/node2.html

the set didn't become a standard type until 2.4. Although I think if we wanted to provide a rudimentary set function, it would not be so hard to do.

Andy

Johan Jansson wrote:
Hi!

An incompatibility with Python 2.3 seems to have been introduced
recently. This is the output from "ffc Poisson.form" with changeset
503:891e9a91f4d0 (Thu Dec 21 15:40:01 2006) and Python 2.3.4:

...
    __build_form(form, format, options)
  File "/afs/nada.kth.se/home/o/u1mb1o3o/usr/lib/python2.3/site-packages/ffc/compiler/compiler.py", line 174, in __build_form
    cK_used  = set()
NameError: global name 'set' is not defined

Does a compatibility "set" module exist for 2.3, or is there another
solution?

  Johan

_______________________________________________
FFC-dev mailing list
FFC-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/ffc-dev



Follow ups

References