parso 0.5.2-1 source package in Ubuntu

Changelog

parso (0.5.2-1) unstable; urgency=medium

  * New upstream release
  * Drop python2 support. Closes: #937243

 -- Piotr Ożarowski <email address hidden>  Tue, 31 Dec 2019 14:17:57 +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

Builds

Focal: [FULLYBUILT] amd64

Downloads

File Size SHA-256 Checksum
parso_0.5.2-1.dsc 1.8 KiB 1f94dacae19757104dedd97843ad7b610b9637d530c1225f8a6b720fb3a36ff9
parso_0.5.2.orig.tar.gz 384.8 KiB 55cf25df1a35fd88b878715874d2c4dc1ad3f0eebd1e0266a67e1f55efccfbe1
parso_0.5.2-1.debian.tar.xz 4.8 KiB 70b2a9eabe24d5007dea232ab95b36a4876bb5a727dd40dced7a7b6a43007547

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"