On Friday January 21 2011 07:08:26 Joachim Berdal Haga wrote: > > Compare the values and itervalues method in a dict. I would expect > > cell(mesh) to return a list of cells or somthing. > > Note that this changes in py3, where most of the APIs are changed to > return iterators (or views) instead of lists, and iter* are removed. > > http://docs.python.org/release/3.0.1/whatsnew/3.0.html#views-and-iterators- > instead-of-lists
Good to know! Then I guess DOLFIN was a head of its time by making cells an iterator ;) We can change the naming of the member function once we shift to py3. When ever that happens... Johan _______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp