@@ -4,11 +4,18 @@ Change Log
4
4
5
5
Version 3.0.0b1
6
6
---------------
7
- - When using setDebug with packrat parsing enabled, packrat cache hits will
8
- now be included in the output, shown with a leading '*'. (Previously, cache
9
- hits and responses were not included in debug output.) For those using custom
10
- debug actions, see the following bullet regarding an optional API change
11
- for those methods.
7
+ - API CHANGE
8
+ Diagnostic flags have been moved to an enum, pyparsing.Diagnostics, and
9
+ they are enabled through module-level methods:
10
+ - enable_diag()
11
+ - disable_diag()
12
+ - enable_all_warnings()
13
+
14
+ - API CHANGE
15
+ Most previous SyntaxWarnings that were warned when using pyparsing
16
+ classes incorrectly have been converted to TypeError and ValueError exceptions,
17
+ consistent with Python calling conventions. All warnings warned by diagnostic
18
+ flags have been converted from SyntaxWarnings to UserWarnings.
12
19
13
20
- API CHANGE
14
21
Added `cache_hit` keyword argument to debug actions. Previously, if packrat
@@ -22,6 +29,12 @@ Version 3.0.0b1
22
29
to add this keyword argument, the debug methods will fail silently,
23
30
behaving as they did previously.
24
31
32
+ - When using setDebug with packrat parsing enabled, packrat cache hits will
33
+ now be included in the output, shown with a leading '*'. (Previously, cache
34
+ hits and responses were not included in debug output.) For those using custom
35
+ debug actions, see the following bullet regarding an optional API change
36
+ for those methods.
37
+
25
38
- Fixed traceback trimming, and added ParserElement.verbose_traceback
26
39
save/restore to reset_pyparsing_context().
27
40
@@ -47,7 +60,7 @@ Version 3.0.0b1
47
60
thanks!
48
61
49
62
- In addition to pyparsing.__version__, there is now also a pyparsing.__version_info__,
50
- following the same structure and names as in sys.version_info.
63
+ following the same structure and field names as in sys.version_info.
51
64
52
65
53
66
Version 3.0.0a2 - June, 2020
0 commit comments