python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout,
Terry Reedy
tjreedy at udel.edu
Sun Jul 6 12:14:26 EDT 2014
On 7/6/2014 10:52 AM, Rick Johnson wrote:
> So the direct reason for failure is due to the fact that the
> "print()" function ONLY handles strings, not list objects.
>>> print(object())
<object object at 0x00000000020D2140>
>>> print(['abc', 'cdf'])
['abc', 'cdf']
Since the original poster did not copy the traceback from the print
error, it is unclear what the error was.
--
Terry Jan Reedy
More information about the Python-list
mailing list