-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
copy and deepcopy fail to copy ipaddress scope_id
import ipaddress, copy
a = ipaddress.IPv6Address('fe80::abc%def')
a.scope_id #shows 'def'
c = copy.copy(a)
c.scope_id #shows null, should show 'def'
d = copy.deepcopy(a)
d.scope_id #shows null, should show 'def'CPython versions tested on:
3.9, 3.11
Operating systems tested on:
Linux, Windows
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done