8000 Add comments about 'orig' · python/cpython@914ec41 · GitHub
[go: up one dir, main page]

Skip to content

Commit 914ec41

Browse files
committed
Add comments about 'orig'
1 parent 825e35b commit 914ec41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/pdb.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,8 +1674,12 @@ def help():
16741674

16751675
class ScriptTarget(str):
16761676
def __new__(cls, val):
1677+
# Mutate self to be the "real path".
16771678
res = super().__new__(cls, os.path.realpath(val))
1679+
1680+
# Store the original path for error reporting.
16781681
res.orig = val
1682+
16791683
return res
16801684

16811685
def check(self):

0 commit comments

Comments
 (0)
0