STINNER Victor added the comment: > I provided a patch to show how this can easily be done.
Your patch does not create a path longer than 100 characters. I didn't want to write such test, but I can review a patch adding such test. The limit is not only applied on the filename, but also on the function name. It is maybe easier (more portable) to declare a function with a very long name: exec(compile("def " + "f"*600 + "(): raise ValueError()\n" + "f"*600 + "()", "a", "exec")) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15463> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com