"MonkeeSage" schrieb
> >
> > If I have understood python naming scoping correctly,
> > doing
> >my_var="hello"
> >import stuff
> >print my_var
> > is not the same as
> >my_var="hello"
> >exec open("stuff.py").read()
> >print my_var
> > with stuff.py containing
> >my_var
On Nov 30, 10:05 am, "Martin Blume" <[EMAIL PROTECTED]> wrote:
> "Bruno Desthuilliers" schrieb
>
>
>
> > >> I have a file that might contain literal python
> > >> variable statements at every line. For example
> > >> the file info.dat looks like this:
> > >> users = ["Bob", "Jane"]
> > >> status =
"Bruno Desthuilliers" schrieb
> >> I have a file that might contain literal python
> >> variable statements at every line. For example
> >> the file info.dat looks like this:
> >> users = ["Bob", "Jane"]
> >> status = {1:"ok",2:users[0]}
> >> the problem is I want to read this file and load
>
On Nov 30, 2007 5:57 AM, Astan Chee <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a file that might contain literal python variable statements at
> every line. For example the file info.dat looks like this:
> users = ["Bob", "Jane"]
> status = {1:"ok",2:users[0]}
> the problem is I want to read this fi
Martin Blume a écrit :
> "Astan Chee" schrieb
>> I have a file that might contain literal python
>> variable statements at every line. For example
>> the file info.dat looks like this:
>> users = ["Bob", "Jane"]
>> status = {1:"ok",2:users[0]}
>> the problem is I want to read this file and load
"Astan Chee" schrieb
> I have a file that might contain literal python
> variable statements at every line. For example
> the file info.dat looks like this:
> users = ["Bob", "Jane"]
> status = {1:"ok",2:users[0]}
> the problem is I want to read this file and load
> whatever variables written in
Paddy wrote:
On Nov 30, 4:57 am, Astan Chee <[EMAIL PROTECTED]> wrote:
Hi,
I have a file that might contain literal python variable statements at
every line. For example the file info.dat looks like this:
users = ["Bob", "Jane"]
status = {1:"ok",2:users[0]}
the problem is I want to read this
On Nov 30, 4:57 am, Astan Chee <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a file that might contain literal python variable statements at
> every line. For example the file info.dat looks like this:
> users = ["Bob", "Jane"]
> status = {1:"ok",2:users[0]}
> the problem is I want to read this file an
Hi,
I have a file that might contain literal python variable statements at
every line. For example the file info.dat looks like this:
users = ["Bob", "Jane"]
status = {1:"ok",2:users[0]}
the problem is I want to read this file and load whatever variables
written in it as normal python variable st