This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bdkearns
Recipients bdkearns, pitrou
Date 2014-05-07.16:29:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399480176.79.0.569407095052.issue21350@psf.upfronthosting.co.za>
In-reply-to
Content
So, for example:
>>> f = open('blah', 'wb')
>>> f.write(array.array('c', 'test'))
>>> f.writelines([array.array('c', 'test')])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: writelines() argument must be a sequence of strings

While the comment in writelines says:
Check that all entries are indeed strings. If not,
apply the same rules as for file.write() and
convert the results to strings.
History
Date User Action Args
2014-05-07 16:29:36bdkearnssetrecipients: + bdkearns, pitrou
2014-05-07 16:29:36bdkearnssetmessageid: <1399480176.79.0.569407095052.issue21350@psf.upfronthosting.co.za>
2014-05-07 16:29:36bdkearnslinkissue21350 messages
2014-05-07 16:29:36bdkearnscreate