This repository was archived by the owner on Mar 2, 2022. It is now read-only.
Commit 94fd08a
committed
Match 3.7's handling of doc strings on functions
Summary: Python 3.7 no longer skips doc strings for functions. They still won't actually be emitted due to just being constants expr's which get optimized away. But they do impact the line number information for debugging purposes.
Test Plan: ./python -m test.test_compiler1 parent 5b11939 commit 94fd08a
2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| 361 | + | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
| |||
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
373 | | - | |
| 375 | + | |
374 | 376 | | |
375 | 377 | | |
376 | 378 | | |
| |||
2115 | 2117 | | |
2116 | 2118 | | |
2117 | 2119 | | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
2118 | 2123 | | |
2119 | 2124 | | |
2120 | 2125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
102 | 117 | | |
103 | 118 | | |
104 | 119 | | |
| |||
0 commit comments