How to Install and Uninstall python3-parso Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 16,2024

1. Install "python3-parso" package

This guide covers the steps necessary to install python3-parso on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-parso

2. Uninstall "python3-parso" package

Here is a brief guide to show you how to uninstall python3-parso on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-parso $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-parso package on Ubuntu 21.10 (Impish Indri)

Package: python3-parso
Architecture: all
Version: 0.8.1-1
Priority: optional
Section: universe/python
Source: parso
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Piotr Ożarowski
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 339
Depends: python3:any
Filename: pool/universe/p/parso/python3-parso_0.8.1-1_all.deb
Size: 64472
MD5sum: 6a03189d6946a0ab6cb5d1122953f290
SHA1: 1e0309265e1169cd745caa0268aee7676f90529c
SHA256: d86919da93d56ef37dc0279b11f2b9bc38f0dd5650ab0667e582eecf0bacadd8
SHA512: 813ae072dd53d4f8b2a1a12ebdc03cee7fe2309645f4ddce6ebe237b8cc926f3cb586490032e45e789720d8a5b019257bb5ef30916cd7608ce09b78b33fa0862
Homepage: https://github.com/davidhalter/parso
Description-en: 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, [, , ])
>>> print(expr.get_code())
hello + 1
>>> name = expr.children[0]
>>> name

>>> 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"
Description-md5: e635c0ee32596f7972cf7149e68ca563
Task: ubuntustudio-publishing