Rather than have your module code read a text file, you might also consider 
putting the data directly into the module itself (unless you need the text 
file to keep the data in a format more friendly to human editing):

MY_LIST = [
    ['item 1', 'item 2', 'etc.'],
    ...
]

Anthony

On Saturday, July 26, 2014 10:13:00 AM UTC-4, lucas wrote:
>
> i have it in a module and under that module i have the variable setup as a 
> global variable.  wherein, if the variable is empty upon using it, i load 
> the list of lists from a text file.  if it is not empty, then i just use 
> it.  so in that case, is there just the single instance in memory, no 
> matter the number of users or sessions?  thanx, lucas
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to