Add support of Python3 IPv4Address and IPv6Address for inet types

Description

I'm trying to insert data to a table with UDT, which is composed of a field of type FROZEN<SET<inet>>.

The object I pass to the driver is an instance of a class that reflects the UDT structure, having an attribute of same name and of type set{ipaddress.IPv4Address}.

When I try to insert, I get the following error :

{{TypeError: Received an argument of invalid type for column "xxxxxxx". Expected: <class 'cassandra.io.libevreactor.xxxxxxxx'>, Got: <class 'xxxxxxxx'>; (argument of type 'IPv4Address' is not iterable)
}}

Works fine if I switch my object to be composed of a simple set of strings, but that breaks the logic in rest of the app.

Thanks

Environment

python 3.5.2

Status

Assignee

Unassigned

Reporter

Emmanuel BACHSCHMIDT

Fix versions

Labels

None

PM Priority

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Components

Affects versions

Priority

Major
Configure