[Python-Dev] Python 2.5.1

Calvin Spealman ironfroggy at gmail.com
Sun Apr 29 14:22:25 CEST 2007


On 4/29/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> > On Windows there is no guarantee that there will be a pagefile.sys on
> > the C drive, or even that there exists a C drive.  The test checking for
> > the result of os.stat('C:\\pagefile.sys') is broken.  Create a temporary
> > file, open it with Python, then stat it (like you later suggest).
> > Either that or use sys.executable .  Either one would likely be fine.
>
> As I said - I'm not convinced that is indeed correct. Before accepting
> a replacement test I would like confirmation that this test will fail
> on 2.5.0. You might not get ERROR_SHARING_VIOLATION in all cases of
> open files with 2.5.0.

But i am running 2.5.0 during my entire writing of this patch. I've
not upgraded my laptop to 2.5.1 yet, although I verified against
another installation of 2.5.1 before publishing.

-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://ironfroggy-code.blogspot.com/


More information about the Python-Dev mailing list