marshal bug?

Anurag anuraguniyal at
Fri Sep 28 08:30:20 CEST 2007

I have been chasing a problem in my code since hours and it bolis down
to this
import marshal
marshal.dumps(str(123)) != marshal.dumps(str("123"))

Can someone please tell me why?
str(123) == str("123")

or are they different?

it also means that
if s = str(123)
marshal.dumps(s) != marshal.dumps(marshal.loads(marshal.dumps(s)))


More information about the Python-list mailing list