> The docs say > > "write( str) - Write a string to the file." > > Only a string. Regardless of mode. > Mode mostly affects interpretation of line ends.
Thats true of course, you need to encode the binary data with struct to write it as binary. Alan G.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor