Re: [Python-Dev] HAVE_FSTAT?

2013-06-05 Thread Hossein
Hi. My 2 cents about this: (well I'm only a noob) I had this problem; I don't know about other people's environment, but my environment's problem was that it was actually not POSIX-compliant: it didn't have other file functions as well, but anyway the `fstat` error is the FIRST error you get w

Re: [Python-Dev] Compiling the source without stat

2011-12-15 Thread Hossein Azadmanesh
It does have its own file handling functions: Opening, getting the size, enumerating directories, etc. It has its own limitations too. No dates supported, folders only one level deep, maximum 99 files inside each folder, etc. There is not a function called stat. But I am considering faking it, w

Re: [Python-Dev] Compiling the source without stat

2011-12-15 Thread Hossein
I wanted to say something in the bug page petri showed ( http://bugs.python.org/issue12082 ) however I though about first discussing it here. If faking a stat struct and a function to fill it solves the problem, and checking for existing files and folders is the only thing that python needs to

[Python-Dev] Compiling the source without stat

2011-12-14 Thread Hossein
source code; but from what I understood it can't be made to use alternate file handling methods. If there is anything I should do (maybe show you my handmade pyconfig.h?) tell me. [My first post in a mailing list... Should I say] Best Regards, Hossein [in here?]