parso 0.8.1-1 source package in Ubuntu

Changelog

parso (0.8.1-1) unstable; urgency=medium

  * New upstream release.
    - works with Python 3.9 (closes: 973193)

 -- Piotr Ożarowski <email address hidden>  Sun, 20 Dec 2020 22:50:50 +0100

Upload details

Uploaded by:
Piotr Ożarowski
Uploaded to:
Sid
Original maintainer:
Piotr Ożarowski
Architectures:
all
Section:
misc
Urgency:
Medium Urgency

See full publishing history Publishing

Series Pocket Published Component Section
Jammy release universe misc
Impish release universe misc
Hirsute release universe misc

Builds

Hirsute: [FULLYBUILT] amd64

Downloads

File Size SHA-256 Checksum
parso_0.8.1-1.dsc 1.8 KiB 35e81df01d4f9a46bca58547a38b71af76f96d6e5dbee8ce9783a55d14c0ae56
parso_0.8.1.orig.tar.gz 386.7 KiB 8519430ad07087d4c997fda3a7918f7cfa27cb58972a8c89c2a0295a1c940e9e
parso_0.8.1-1.debian.tar.xz 5.0 KiB 54f9798403d04c7124f15eb0a63566d830acb50026cae697bb1fdd69d8b56236

No changes file available.

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"