What's the Pythonic way to store a data block in a Python script?

Viewed 4223

Perl allows me to use the __DATA__ token in a script to mark the start of a data block. I can read the data using the DATA filehandle. What's the Pythonic way to store a data block in a script?

4 Answers
Related