a guest Jun 5th, 2009 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- >>> import numpy
- >>> print numpy.version.version
- >>> s = numpy.string_('ab\x00')
- >>> print repr(s) # display bug, which I think is ticket 659
- >>> s == 'ab\x00'
- >>> s == 'ab' # but the string is stored correctly
- >>> print repr(str(s)) # this, however, is wrong
- >>> str(s) == s # and leads to this
RAW Paste Data