Ronald Oussoren added the comment: GCC has a pragma and function attributes for changing the optimisation flags, that could be used to disable the tail call optimazation here.
Something like the following (using a pragma): #pragma GCC push_options #pragma GCC optimize ("-fno-optimize-sibling-calls") <functions go here> #pragma GCC pop_options Note: completely untested, and would need preprocessor guards to avoid warnings with some other compilers. ---------- nosy: +ronaldoussoren _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24851> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com