Timeline for TypeError: a bytes-like object is required, not 'str' python3
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Dec 28, 2017 at 14:23 | history | suggested | Gahan |
removed irrelevant tag
|
|
| Dec 28, 2017 at 12:37 | vote | accept | skysoft999 | ||
| Dec 28, 2017 at 12:36 | comment | added | PM 2Ring |
Python 3 makes a clear distinction between bytes strings and text strings. This prevents a lot of sloppy string handling that Python 2 lets you get away with; it also makes Unicode handling a lot saner. It may seem annoying at first, but you'll soon get used to it, and come to appreciate it.
|
|
| Dec 28, 2017 at 11:54 | review | Suggested edits | |||
| S Dec 28, 2017 at 14:23 | |||||
| Dec 28, 2017 at 11:53 | comment | added | Gahan | It's because you have opened file in write byte mode. what does it to with django? | |
| Dec 28, 2017 at 11:32 | answer | added | johnII | timeline score: 2 | |
| Dec 28, 2017 at 11:30 | history | asked | skysoft999 | CC BY-SA 3.0 |