[issue46512] filecmp.cmpfiles w/ absolute path names

2022-01-29 Thread bers
bers added the comment: > Did your example work with relative paths? Yes, it does. Just append the following to my example code: # actually diff the files - correctly! files = [f.relative_to(dir_a) for f in dir_a.glob("*")] (_, different, _) = filecmp.cmpfiles(dir_a,

[issue46512] Explicit or correct behavior of filecmp.cmpfiles w/ absolute path names

2022-01-25 Thread bers
New submission from bers : It is very easy to use filecmp.cmpfiles incorrectly by passing absolute path names. This is because 1. the documentations does not say that relative path names have to be passed, and 2. filecmp.cmpfiles does not issue a warning when absolute path names are passed

[issue36122] Second run of 2to3 continues to modify output

2019-02-26 Thread bers
bers added the comment: Yes, understood! Thanks for the explanation. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue36122] Second run of 2to3 continues to modify output

2019-02-26 Thread bers
New submission from bers : I did this on Windows 10: P:\>python --version Python 3.7.2 P:\>echo print 1, 2 > Test.py P:\>python Test.py File "Test.py", line 1 print 1, 2 ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(1, 2)