Necip Asım ARSLAN
Necip Asım ARSLAN

Reputation: 143

Is it possible to 'stream' a variable in python?

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

Answers (1)

progmatico
progmatico

Reputation: 4964

You want to read this.

Not from a file? Maybe using a StringIO (see the same link).

Upvotes: 2

Related Questions