Oct-15-2019, 03:45 PM
In python 3 you don't need to call ord() if self.header[4] is already an integer. Use this value directly.
How to convert "str" to "int"
|
Oct-15-2019, 03:45 PM
In python 3 you don't need to call ord() if self.header[4] is already an integer. Use this value directly.
Oct-15-2019, 11:40 PM
Oct-16-2019, 06:14 AM
(This post was last modified: Oct-16-2019, 06:15 AM by Gribouillis.)
colt Wrote:There isn't a way to make it work with both versions?Yes there is import sys if sys.version_info < (3,): spam = ord(spam) |
|