On Friday, September 16, 2016 at 9:41:28 AM UTC-7, Yoel Benitez Fonseca wrote: > > Does this make sense to you? >
Yes. > > In [1]: fields = list() > > In [2]: f = db.item.id > > In [3]: f in fields > Out[3]: False > > In [4]: fields.append(f) > > In [5]: f in fields > Out[5]: True > > In [6]: f = db.item.headline > > In [7]: f in fields > Out[7]: True > > I mean, the last value of 'f' is a fields object but a different one. > What you've stored in fields is an object reference; a reference to f, not to its value. What are you trying to do? Dynamic table handling, or forming a list of fields for SQLFORM or ?? /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

