Skip to content

copy and deepcopy fail to copy ipaddress scope_id #110196

@becarpenter

Description

@becarpenter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy