parso 0.5.2-1ubuntu1 source package in Ubuntu

Changelog

parso (0.5.2-1ubuntu1) focal; urgency=medium

  * Backport/adapt FTBFS patch for Python 3.8.2 from 0.6.2-1 to avoid
    requiring FFe for syncing to Focal.

 -- Logan Rosen <email address hidden>  Sun, 12 Apr 2020 22:20:35 -0400

Upload details

Uploaded by:
Logan Rosen
Uploaded to:
Focal
Original maintainer:
Ubuntu Developers
Architectures:
all
Section:
misc
Urgency:
Medium Urgency

See full publishing history Publishing

Series Pocket Published Component Section
Focal release universe misc

Builds

Focal: [FULLYBUILT] amd64

Downloads

File Size SHA-256 Checksum
parso_0.5.2.orig.tar.gz 384.8 KiB 55cf25df1a35fd88b878715874d2c4dc1ad3f0eebd1e0266a67e1f55efccfbe1
parso_0.5.2-1ubuntu1.debian.tar.xz 5.2 KiB 701b5a46c2f354cb9460726b1f423ba298d197300a830425dc0a07b814dda032
parso_0.5.2-1ubuntu1.dsc 1.6 KiB ccb2b24a01a854a0bc9c2d9ea8c325591e2133159f54afb51f11036f3c58c394

View changes file

Binary packages built by this source

python-parso-doc: documentation for the parso Python library

 This package provides documentation for parso

python3-parso: Python parser that supports error recovery - Python 3.X

 Parso is a Python parser that supports error recovery and round-trip parsing
 for different Python versions (in multiple Python versions). Parso is also able
 to list multiple syntax errors in your Python file.
 .
 Parso has been battle-tested by jedi. It was pulled out of jedi to be useful
 for other projects as well.
 .
 Parso consists of a small API to parse Python and analyse the syntax tree.
 .
 A simple example:
 .
  >>> import parso
  >>> module = parso.parse('hello + 1', version="3.6")
  >>> expr = module.children[0]
  >>> expr
  PythonNode(arith_expr, [<Name: hello@1,0>, <Operator: +>, <Number: 1>])
  >>> print(expr.get_code())
  hello + 1
  >>> name = expr.children[0]
  >>> name
  <Name: hello@1,0>
  >>> name.end_pos
  (1, 5)
  >>> expr.end_pos
  (1, 9)
 .
 To list multiple issues:
 .
  >>> grammar = parso.load_grammar()
  >>> module = grammar.parse('foo +\nbar\ncontinue')
  >>> error1, error2 = grammar.iter_errors(module)
  >>> error1.message
  'SyntaxError: invalid syntax'
  >>> error2.message
  "SyntaxError: 'continue' not properly in loop"