Core and Builtins
-----------------
-- Issue #5057: the peepholer no longer optimizes subscription on unicode
- literals (e.g. u'foo'[0]) in order to produce compatible pyc files between
- narrow and wide builds.
+ - Issue #15001: fix segfault on "del sys.module['__main__']". Patch by Victor
+ Stinner.
+
+- Issue #8271: the utf-8 decoder now outputs the correct number of U+FFFD
+ characters when used with the 'replace' error handler on invalid utf-8
+ sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti.
+
+- Issue #5765: Apply a hard recursion limit in the compiler instead of
+ blowing the stack and segfaulting. Initial patch by Andrea Griffini.
- Issue #16402: When slicing a range, fix shadowing of exceptions from
__index__.
/* Try to run a pyc file. First, re-open in binary */
if (closeit)
fclose(fp);
- if ((fp = fopen(filename, "rb")) == NULL) {
+ if ((pyc_fp = fopen(filename, "rb")) == NULL) {
fprintf(stderr, "python: Can't reopen .pyc file\n");
- ret = -1;
goto done;
}
/* Turn on optimization if a .pyo file is given */