Created
October 25, 2022 05:03
-
-
Save iisaka51/e4fd56cc8a44cdc9aa5a76d5efd20040 to your computer and use it in GitHub Desktop.
iList copy() method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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