[Lldb-commits] [PATCH] D68737: SBFile::GetFile: convert SBFile back into python native files.
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Oct 27 12:35:26 PDT 2019
mgorny added a comment.
In D68737#1722575 <https://reviews.llvm.org/D68737#1722575>, @lawrence_danna wrote:
> In D68737#1722255 <https://reviews.llvm.org/D68737#1722255>, @mgorny wrote:
>
> > However, I think this is only a symptom of a more generic problem. I don't think we should really be creating a second system of file objects outside Python, and injecting it into Python file objects like this. I have a bad feeling for e.g. creating low-level a new file object for stdin, and then having Python destroy it alongside its own stdin object.
>
>
> What do you mean "a second system of file objects outside Python, and injecting it into Python file objects"? That's not what it does. We have
`lldb_private::File` proxies for python files, not the other way around.
Hmm, I guess I've been reading that code wrong. I guess I'm out of clues then.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68737/new/
https://reviews.llvm.org/D68737
More information about the lldb-commits
mailing list