Skip to content

Instantly share code, notes, and snippets.

@iisaka51
Created October 25, 2022 05:03
Show Gist options
  • Save iisaka51/e4fd56cc8a44cdc9aa5a76d5efd20040 to your computer and use it in GitHub Desktop.
Save iisaka51/e4fd56cc8a44cdc9aa5a76d5efd20040 to your computer and use it in GitHub Desktop.
iList copy() method
In [63]: i1
Out[63]: iList([1, 2, 3])
In [64]: i2 = i1.copy()
In [65]: i2._attrs
Out[65]: aDict({})
In [66]: i2 = i1.copy(freeze=True)
In [67]: hash(i1)
Out[67]: -3783003762566077833
In [68]: i2
Out[68]: iList([1, 2, 3])
In [69]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment