Message80900
The description of PyRun_InteractiveLoop(FILE * file, const char *
filename) states that if filename is NULL, "???" will be used instead.
In actuality, if the method is called with a NULL filename, it will
segfault after the first command is entered.
Example:
//main.c
#include <Python.h>
int main(int argc, char * argv[]) {
Py_Initialize();
PyRun_InteractiveLoop(stdin, NULL);
}
//stdin
>>>import math
results in a segfault.
Python 3.0, Windows 7 beta, MinGW -LC:\Python30\libs -lpython30, 32-bit
Intel. |
|
Date |
User |
Action |
Args |
2009-02-01 03:07:01 | bkuhn | set | recipients:
+ bkuhn |
2009-02-01 03:07:01 | bkuhn | set | messageid: <1233457621.0.0.661616898289.issue5121@psf.upfronthosting.co.za> |
2009-02-01 03:06:58 | bkuhn | link | issue5121 messages |
2009-02-01 03:06:58 | bkuhn | create | |
|