The docs say "write( str) - Write a string to the file."
Only a string. Regardless of mode. Mode mostly affects interpretation of line ends.
-- Bob Gailer Chapel Hill NC 919-636-4239 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor