← Back to team overview

ffc team mailing list archive

Re: Python 2.3 compatibility

 

I used the set module before but recently switched to the built-in
set for no particular reason. I just thought since 2.5 is out, I didn't
need to keep compatibility with Python 2.3, especially since I wasn't
sure I was compatible with Python 2.3 elsewhere.

Do you need FFC to work with Python 2.3?

/Anders


        On Mon, Jan 22, 2007 at 08:21:10PM -0600, Andy Terrel wrote:
> 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
> >   
> 
> _______________________________________________
> FFC-dev mailing list
> FFC-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/ffc-dev


Follow ups

References