summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-03-03 21:30:27 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-03-03 21:30:27 (GMT)
commitcfeb3b6ab8e213cb3551b101d0566d77f5b47409 (patch)
tree657521ff13e38d11dd10535827b4272af965b856 /Misc/NEWS
parent290d31e2fc02a0d887da2c76fbe4e72377442a0a (diff)
downloadcpython-cfeb3b6ab8e213cb3551b101d0566d77f5b47409.zip
cpython-cfeb3b6ab8e213cb3551b101d0566d77f5b47409.tar.gz
cpython-cfeb3b6ab8e213cb3551b101d0566d77f5b47409.tar.bz2
Patch #50002: Display line information for bad \x escapes:
- recognize "SyntaxError"s by the print_file_and_line attribute. - add the syntaxerror attributes to all exceptions in compile.c. Fixes #221791
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 15644b8..58d5a66 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -6,6 +6,9 @@ Type/class unification and new-style classes
Core and builtins
+- PyErr_Display will provide file and line information for all exceptions
+ that have an attribute print_file_and_line, not just SyntaxErrors.
+
- The UTF-8 codec will now encode and decode Unicode surrogates
correctly and without raising exceptions for unpaired ones.