Actions
Bug #21260
closedduping stringio objects shares cursors
Bug #21260:
duping stringio objects shares cursors
Status:
Feedback
Assignee:
-
Target version:
-
ruby -v:
ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [x86_64-darwin23]
Description
Updated by jeremyevans0 (Jeremy Evans) over 1 year ago
Updated by nobu (Nobuyoshi Nakada) over 1 year ago
- Status changed from Open to Feedback
Updated by chucke (Tiago Cardoso) over 1 year ago
I see. Alignment with File makes sense. At least my expectation was that, by dup'ing the IO object, I'd receive a separate independent object with which to traverse the file. But perhaps that does not make sense, as at least in the case of File, that'd mean a second OS file descriptor, and that's heavy? Also not sure whether this expectation is general.
Actions