[issue31281] fileinput inplace does not work with pathlib.Path

2017-09-04 Thread Eric V. Smith
Eric V. Smith added the comment: I did not backport this to 3.6, because it depends on other changes that themselves have not been backported. -- assignee: -> eric.smith resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 3.4, Python 3.5

[issue31281] fileinput inplace does not work with pathlib.Path

2017-09-04 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 06de1aeff94e524bed21d188065c4cd1590fb046 by ericvsmith (Zhiming Wang) in branch 'master': bpo-31281: Fix pathlib.Path incompatibility in fileinput (gh-3208) https://github.com/python/cpython/commit/06de1aeff94e524bed21d188065c4cd1590fb046

[issue31281] fileinput inplace does not work with pathlib.Path

2017-08-25 Thread Zhiming Wang
Changes by Zhiming Wang : -- pull_requests: +3245 ___ Python tracker ___ ___

[issue31281] fileinput inplace does not work with pathlib.Path

2017-08-25 Thread Zhiming Wang
New submission from Zhiming Wang: Consider import fileinput import pathlib with fileinput.input(files=(pathlib.Path('in.txt'),), inplace=True) as fp: for line in fp: print(line, end='') which results in Traceback (most recent call last): File