Published by jwodder about 1 year ago
Published by jwodder about 1 year ago
scan_file()
, scan_lines()
, HeaderParser.parse_file()
, and HeaderParser.parse_lines()
(all deprecated in v0.4.0)scan()
and scan_stanzas()
can now parse strings directly. As a result, scan_string()
and scan_stanzas_string()
are now deprecated.HeaderParser
methods parse()
and parse_stanzas()
can now parse strings directly. As a result, the parse_string()
and parse_stanzas_string()
methods are now deprecated.Scanner
class with methods for scanning a shared input. As a result, the following are now deprecated:
scan_next_stanza()
scan_next_stanza_string()
HeaderParser.parse_next_stanza()
HeaderParser.parse_next_stanza_string()
Published by jwodder over 5 years ago
scan()
function combining the behavior of scan_file()
and scan_lines()
, which are now deprecatedHeaderParser
a parse()
method combining the behavior of parse_file()
and parse_lines()
, which are now deprecatedscan_next_stanza()
and scan_next_stanza_string()
functions for scanning & consuming input only up to the end of the first header sectionscan_stanzas()
and scan_stanzas_string()
functions for scanning input composed entirely of multiple stanzas/header sectionsHeaderParser
parse_next_stanza()
and parse_next_stanza_string()
methods for parsing & comsuming input only up to the end of the first header sectionHeaderParser
parse_stanzas()
and parse_stanzas_string()
methods for parsing input composed entirely of multiple stanzas/header sectionsPublished by jwodder about 6 years ago
HeaderParser
and the scanner functions options for configuring scanning behavior:
separator_regex
skip_leading_newlines
DeprecationWarning
in Python 3.7Published by jwodder over 6 years ago
NormalizedDict
's default normalizer (exposed as the lower()
function) now passes non-strings through unchangedHeaderParser
instances can now be compared for non-identity equalityHeaderParser.add_field()
and HeaderParser.add_additional()
now take an optional action
argument for customizing the parser's behavior when a field is encounteredunfold()
function publicPublished by jwodder over 7 years ago