As pointed by Sean Reifschneider in issue 1531415, I'm writing this mail mainly to ask for advices concerning python's makefile.
Currently, Parser/parsetok.c writes directly to stderr in case no more memory is avaible. So, it would be nice™ to use, instead of a raw printf, the functions provided by Python/_warnings.c (PyErr_NoMemory and/or PyErr_WarnEx). This, right now, leads to a circular dependency, as described here: http://bugs.python.org/msg154939 . So far I've seen some functions present both in Python/ and pgenmain.c : PyErr_Occurred(), Py_FatalError(const char *msg), Py_Exit(int). This means a dirty alternative could be to implement another function PyErr_WarnEx; but probably there is a better way to organize the makefile, becouse currently I'm using the entire $(PYTHON_OBJS) (seems needed by warnigs.o). This is the first time I run into python c code, so please be patient :) -- ù _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com