You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Ubuntu using 2.7.13, type(ipaddress.ip_address(u'128.101.101.101').packed) returns <type 'str'>, but the user in that issue is reporting receiving <type 'bytearray'> on macOS 10.12.2.
The text was updated successfully, but these errors were encountered:
oschwald
changed the title
packed returns bytearray on some platforms and str on others
packed is a bytearray on some platforms and str on others
Jan 11, 2017
I strongly suspect the original poster is using py2-ipaddress instead of this backport. I regard py2-ipaddress as dangerous and defective for the reasons outlined here. I have commented in maxmind/GeoIP2-python#41 and asked for confirmation.
Thanks for following up. After testing py2-ipaddress myself, I suspect you are right. I'll close this issue and reopen if the original reporter provides contrary evidence.
See maxmind/GeoIP2-python#41
On Ubuntu using 2.7.13,
type(ipaddress.ip_address(u'128.101.101.101').packed)
returns<type 'str'>
, but the user in that issue is reporting receiving<type 'bytearray'>
on macOS 10.12.2.The text was updated successfully, but these errors were encountered: