This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients brian.curtin, pitrou
Date 2011-05-08.20:00:05
SpamBayes Score 4.747392e-05
Marked as misclassified No
Message-id <1304884806.89.0.503663992861.issue12034@psf.upfronthosting.co.za>
In-reply-to
Content
The code for check_GetFinalPathNameByHandle() goes like this:


static int has_GetFinalPathNameByHandle = 0;
[...]

static int
check_GetFinalPathNameByHandle()
{
    HINSTANCE hKernel32;
    /* only recheck */
    if (!has_GetFinalPathNameByHandle)
    {
        [...]
        has_GetFinalPathNameByHandle = Py_GetFinalPathNameByHandleA &&
                                       Py_GetFinalPathNameByHandleW;
    }
    return has_GetFinalPathNameByHandle;
}


It means that if the computed value is 0 (system doesn't have GetFinalPathNameByHandle*), the value will be re-computed each time the function is called.  has_GetFinalPathNameByHandle should probably be tri-state instead (0, 1, unknown).
History
Date User Action Args
2011-05-08 20:00:06pitrousetrecipients: + pitrou, brian.curtin
2011-05-08 20:00:06pitrousetmessageid: <1304884806.89.0.503663992861.issue12034@psf.upfronthosting.co.za>
2011-05-08 20:00:05pitroulinkissue12034 messages
2011-05-08 20:00:05pitroucreate