[web2py] Re: How to make a constant for list of fields in select()?

2011-05-24 Thread Philip
Use the python * operator to unpack the list, like this: item_summary_fields = [db.item.id, db.item.title, db.item.image_thumb, db.item.currency, db.item.shipping_method, db.item.start_price, db.item.drops, db.item.duration, db.item.price_change, db.item.created_on] rows =

[web2py] Re: How to make a constant for list of fields in select()?

2011-05-24 Thread pbreit
Ah, cool, thanks. I always wondered what * and ** were for. Since my only formal computer education was C I was frightened they were pointers!

[web2py] Re: How to make a constant for list of fields in select()?

2011-05-24 Thread ron_m
Ah C, pointers and pointers to pointers for ** I used to like pointers in C but then I used to work on operating systems written in assembler during my early years in computers (70s, early 80s). Results in a different mindset.