Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix winapi initialization on Python 2.5 on Windows #253
Rudimentary test result below. Doesn't seem to break 2.6/2.7 (though more eyes looking at
Don't think this will work for all py versions.
py3 renamed thread to _thread.
Looks like you need to import threading and check for currentThread or current_thread and then call get_ident on that.
If this is becoming too much of a pain, feel free to punt on it - I mentioned 2.5 in #193 as a matter of course, but once the Python 3 support lands we will discontinue 2.5 support anyway. So this might be moot.
Dig if you want - it'd be nice for the last pre-Py3 releases to work well on 2.5 for Windows - but I'm OK to merge #193 without this functioning if it'll save time.
EDIT: note that I've only skimmed this so far, recent comments sound like you're still kicking things around? If that's not the case and this can be merge as-is, that's cool too.