New submission from Mithil :
pytime.h compilation gives warnings -
pytime.h:123:59: warning: 'struct timeval' declared inside parameter list will
not be visible outside of this definition or declaration
PyAPI_FUNC(int) _PyTime_FromTimeval(_PyTime_t *tp, struct t
New submission from Mithil :
The default format prints a lot of details like filename, line number, and the
source code on that line. A particular case where the warn message is written
on the next line like -
warn(
"Message here")
Will only print warn( as the source code a
Mithil added the comment:
I ran the file that you linked and this is what it printed.
C:\Users\mithi\p\test\file.py:3: UserWarning: Danger danger danger Will
Robinson!!!
warnings.warn(
As you see, the warnings.warn( line is not desirable.
More details about my machine -
Windows 10
python
Mithil added the comment:
I also ran this on Fedora 32, python 3.8.6 and still got the same result.
--
___
Python tracker
<https://bugs.python.org/issue42