Commit e5fbabb
* gh-153568: Don't materialize parser token text that is never read
Only tokens whose text is actually consumed get a bytes object;
operators and structural tokens no longer allocate one.
* Update Parser/pegen.c
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
* gh-153568: Preserve keyword token text
---------
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
1 parent c215919 commit e5fbabb
2 files changed
Lines changed: 39 additions & 6 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Parser
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
200 | 226 | | |
201 | 227 | | |
202 | 228 | | |
| |||
205 | 231 | | |
206 | 232 | | |
207 | 233 | | |
208 | | - | |
209 | | - | |
210 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
211 | 243 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 244 | + | |
| 245 | + | |
215 | 246 | | |
216 | 247 | | |
217 | 248 | | |
| |||
0 commit comments