Re: [Python-Dev] file open in python interpreter

2008-11-04 Thread Martin v. Löwis
> any clues? how can i go around this? What Nick said. Run it in a debugger, set a breakpoint on the failing system call, and triple check that the arguments you are passing are really the ones that you want to pass. Are you sure the current directory is what you think it is? Are you sure that the

Re: [Python-Dev] file open in python interpreter

2008-11-04 Thread Nick Coghlan
adrian golding wrote: > hi all, > > (benjamin and nick thank you!) i have another question to ask something > about permissions for the python interpreter. in my earlier post, i was > saying i want to measure the python script before it is parsed. what > happens is that i will write the measurem

Re: [Python-Dev] file open in python interpreter

2008-11-04 Thread adrian golding
hi all, (benjamin and nick thank you!) i have another question to ask something about permissions for the python interpreter. in my earlier post, i was saying i want to measure the python script before it is parsed. what happens is that i will write the measurement of that script file to another

Re: [Python-Dev] file open in python interpreter

2008-11-03 Thread Nick Coghlan
Benjamin Peterson wrote: > On Mon, Nov 3, 2008 at 7:25 AM, Benjamin Peterson > <[EMAIL PROTECTED]> wrote: >> On Mon, Nov 3, 2008 at 1:04 AM, adrian golding <[EMAIL PROTECTED]> wrote: >>> hi all, i am trying to find out where is the part of the code in the python >>> interpreter that opens up the .p

Re: [Python-Dev] file open in python interpreter

2008-11-03 Thread Benjamin Peterson
On Mon, Nov 3, 2008 at 7:25 AM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > On Mon, Nov 3, 2008 at 1:04 AM, adrian golding <[EMAIL PROTECTED]> wrote: >> hi all, i am trying to find out where is the part of the code in the python >> interpreter that opens up the .py file and parses it. in particu

Re: [Python-Dev] file open in python interpreter

2008-11-03 Thread Benjamin Peterson
On Mon, Nov 3, 2008 at 1:04 AM, adrian golding <[EMAIL PROTECTED]> wrote: > hi all, i am trying to find out where is the part of the code in the python > interpreter that opens up the .py file and parses it. in particular, i am > trying to find the file open command in that file. I greped and i ju

[Python-Dev] file open in python interpreter

2008-11-02 Thread adrian golding
hi all, i am trying to find out where is the part of the code in the python interpreter that opens up the .py file and parses it. in particular, i am trying to find the file open command in that file. I greped and i just want to make sure this is it: /Python-2.6/Parser/pgenmain.c i am intending to