Skip to content

copy broken by 2.4.0 #136

Description

@bmerry

This code used to work (up to 2.3.0), but raises an error in 2.4.0:

#!/usr/bin/env python3

from addict import Dict

a = Dict().copy()
a.foo.bar

Output:

Traceback (most recent call last):
  File "copy-broken.py", line 6, in <module>
    a.foo.bar
  File "/home/bmerry/work/sdp/env3/lib/python3.8/site-packages/addict/addict.py", line 67, in __getattr__
    return self.__getitem__(item)
  File "/home/bmerry/work/sdp/env3/lib/python3.8/site-packages/addict/addict.py", line 70, in __missing__
    if object.__getattribute__(self, '__frozen'):
AttributeError: 'Dict' object has no attribute '__frozen'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions