Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

copy constructor doesn't work with IPvXAddress objects #29

Closed
GoogleCodeExporter opened this issue Mar 18, 2015 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

In [1]: from ipaddr import *

In [2]: ip = IPAddress('192.0.2.0')

In [3]: ip
Out[3]: IPv4Address('192.0.2.0')

In [4]: IPAddress(ip)
AttributeError: 'IPv4Address' object has no attribute 'split'

What is the expected output?

In [4]: IPAddress(ip)
IPv4Address('192.0.2.0')

What version of the product are you using?

ipaddr 2.0.x r97

Please provide any additional information below.

Does work for IPvXNetwork objects.

Original issue reported on code.google.com by drk...@gmail.com on 27 Aug 2009 at 9:23

@GoogleCodeExporter
Copy link
Author

Original comment by pmo...@google.com on 27 Aug 2009 at 9:26

  • Changed state: Duplicate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant