Skip to content

Latest commit

 

History

History
65 lines (42 loc) · 2.24 KB

grammar.rst

File metadata and controls

65 lines (42 loc) · 2.24 KB

Changing CPython's Grammar

Abstract

There's more to changing Python's grammar than editing :file:`Grammar/Grammar`. This document aims to be a checklist of places that must also be fixed.

It is probably incomplete. If you see omissions, submit a bug or patch.

This document is not intended to be an instruction manual on Python grammar hacking, for several reasons.

Rationale

People are getting this wrong all the time; it took well over a year before someone noticed that adding the floor division operator (//) broke the :mod:`parser` module.

Checklist

Note: sometimes things mysteriously don't work. Before giving up, try make clean.