Saturday, April 20, 2024
HomePythonMaking a Python Code Completer & Extra Summary Syntax Tree Tasks –...

Making a Python Code Completer & Extra Summary Syntax Tree Tasks – The Actual Python Podcast


Sep 02, 2022 1h 13m

Christopher Bailey
Meredydd Luff

How does a code completion software work? What’s an Summary Syntax Tree, and the way is it created in Python? How does an AST assist you to write packages and initiatives that examine and modify your Python code? This week on the present, Meredydd Luff, co-founder of Anvil, shares his PyCon speak, “Constructing a Python Code Completer.”

Episode Sponsor:

Meredydd talks about his expertise constructing a code completion engine for the Anvil platform. The dialog leads us to debate how Python parses the code that you just sort. We study tokenization, summary syntax bushes, and the way parsing has modified in Python.

We cowl further initiatives which you can discover after you have a software that inspects the Python code you’re writing. Be part of us as we dive into a number of rabbit holes of analysis and exploration.

Subjects:

  • 00:00:00 – Introduction
  • 00:02:11 – Constructing a Python Code Completer – Speak
  • 00:08:48 – How is recursion getting used?
  • 00:10:28 – Summary Syntax Bushes, Parsers, and Tokens
  • 00:14:58 – Sponsor: CData Software program
  • 00:15:39 – Is parsing into tokens a separate step?
  • 00:21:45 – What makes the brand new PEG parser distinctive?
  • 00:25:32 – Utilizing the AST doesn’t need to be scary.
  • 00:27:33 – Extra on the PEG parser
  • 00:29:54 – Preserving scope and holding completions
  • 00:39:43 – Video Course Highlight
  • 00:41:15 – Was this your first expirement in making a code completer?
  • 00:46:46 – How can including sort hints help a completer?
  • 00:50:53 – Tasks you’ll be able to construct utilizing AST
  • 00:53:02 – Linter undertaking
  • 00:54:15 – Computerized code formatter
  • 00:54:59 – Code testing and the pytest undertaking
  • 00:56:22 – Safety instruments
  • 00:57:11 – Friendlier tracebacks
  • 00:59:57 – Code completion vs GitHub Copilot
  • 01:04:14 – Code completion in a textual content editor vs IDE
  • 01:08:53 – What are you enthusiastic about on the planet of Python?
  • 01:09:54 – What do you need to be taught subsequent?
  • 01:11:20 – How can individuals observe your work?
  • 01:12:31 – Thanks and goodbye

Present Hyperlinks:


Tweet
Share
Share
Electronic mail
class=”h4″>

Degree Up Your Python Abilities With These Programs:

« Browse All Episodes



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments