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
ipaddress was introduced in Python 3.3, so a backport to Python 3.2, which is still widely used, would be nice.
The first problem I ran into when trying to use this module unter Python 3.2 is that it uses the u'string' notation for Unicode strings, which was originally available in 2.x only, and was re-introduced in Python 3.3 (I think).
So to make this work under all Python versions, I suggest to add
from __future__ import unicode_literals
and change all unicode string literals to playin string literals, i.e. u'foo' -> 'foo'. Byte strings can still be specified as b'bar', since that's supported under all relevant Python versions.
If there's interest in porting this module to Python 3.2, I can give it a try myself and provide a pull request eventually.
The text was updated successfully, but these errors were encountered:
ipaddress
was introduced in Python 3.3, so a backport to Python 3.2, which is still widely used, would be nice.The first problem I ran into when trying to use this module unter Python 3.2 is that it uses the
u'string'
notation for Unicode strings, which was originally available in 2.x only, and was re-introduced in Python 3.3 (I think).So to make this work under all Python versions, I suggest to add
and change all unicode string literals to playin string literals, i.e.
u'foo'
->'foo'
. Byte strings can still be specified asb'bar'
, since that's supported under all relevant Python versions.If there's interest in porting this module to Python 3.2, I can give it a try myself and provide a pull request eventually.
The text was updated successfully, but these errors were encountered: