You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2012-08-02.05:04:28.299>created_at=<Date2012-08-01.21:56:37.731>labels= ['type-bug', 'expert-IO']
title='"for line in file" is *still* broken in Python 2.7 on pipes'updated_at=<Date2012-08-02.05:04:28.278>user='https://bugs.python.org/AndyLutomirski'
AndyLutomirskimannequin
changed the title
"for line in file" is *still* broken in Python 2.7
"for line in file" is *still* broken in Python 2.7 on pipes
Aug 1, 2012
Notice in the reply to bpo-3907, "with 2.6, you have to use io.open() explicitly". This is still true in Python 2.7, i.e. the new 3.x-compatible io library is not used by default in Python 2. If you want to use it with subprocess.Popen, one way is to supply a pipe with an io wrapper, perhaps something like:
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: