New submission from hafiz bilal <[email protected]>:
Hi,
time.sleep() function is not working on Windows host if I use C API
Py_InitializeEx(0) function.
Issue could be reproduce with following simple example.
int main()
{
Py_InitializeEx(0);
PyRun_SimpleString("import time \n"
"start = time.time() \n"
"time.sleep(4) \n"
"print('elapsed: %d' % (time.time() - start))");
}
output:
elapsed: 0
Note, issue is not reproduce on Linux host.
----------
components: C API
messages: 376189
nosy: hafizbilal100
priority: normal
severity: normal
status: open
title: C++ Embedded 'time.sleep()' is not working on Windows host due to
'Py_InitializeEx(0)'
versions: Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41686>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com