Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74030
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, |
| Date | 2014-07-06 12:14 -0400 |
| References | <b447a73e-cad2-4448-abff-675a3b387e9b@googlegroups.com> <57444726-c79e-499c-aff6-5d268448035f@googlegroups.com> <6a41f25e-2025-4f1a-ad9d-4458fc804b63@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11546.1404663297.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, gintare <g.statkute@gmail.com> - 2014-07-06 01:45 -0700
Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, gintare <g.statkute@gmail.com> - 2014-07-06 02:05 -0700
Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, Dave Angel <davea@davea.name> - 2014-07-06 08:57 -0400
Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-06 07:52 -0700
Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, Terry Reedy <tjreedy@udel.edu> - 2014-07-06 12:14 -0400
Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-06 09:53 -0700
Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, wxjmfauth@gmail.com - 2014-07-06 11:14 -0700
Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-06 12:37 -0700
Re: python33, windows, UnicodeEncodeError: 'charmap' codec can't encode characters in position, to print out the file contents to stdout, wxjmfauth@gmail.com - 2014-07-06 23:58 -0700
csiph-web