Reputation: 143
I don't know technically how exactly works file handling and streaming. I wonder is there anyway to stream a variable like it is being read by open() but without using open() and not from a file.
Thanks in advance...
Upvotes: 1
Views: 1797
Reputation: 4964
You want to read this.
Not from a file? Maybe using a StringIO (see the same link).
Upvotes: 2