Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ python
- Python 2.7.6 (default, Jun 22 2015, 17:58:13)
- [GCC 4.8.2] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> img = cStringIO.StringIO(open('st.jpg', 'rb').read())
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- NameError: name 'cStringIO' is not defined
- >>> import cStringIO
- >>> img = cStringIO.StringIO(open('st.jpg', 'rb').read())
- >>> img2 = cStringIO.StringIO(open('st.jpg', 'rb').read())
- >>> if img == img2
- File "<stdin>", line 1
- if img == img2
- ^
- SyntaxError: invalid syntax
- >>> if img.getvalue() == img2.getvalue()
- File "<stdin>", line 1
- if img.getvalue() == img2.getvalue()
- ^
- SyntaxError: invalid syntax
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement