Created
October 25, 2022 05:04
-
-
Save iisaka51/c8bf48296421c37bf0b8046e1d72d30a to your computer and use it in GitHub Desktop.
iList of clone 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 [69]: i3 = i1.clone() | |
In [70]: i3 | |
Out[70]: iList([1, 2, 3]) | |
In [71]: i3._attrs | |
Out[71]: aDict({'python': 'Osaka'}) | |
In [72]: i3 = i1.clone(empty=True) | |
In [73]: i3 | |
Out[73]: iList([]) | |
In [74]: i3._attrs | |
Out[74]: aDict({'python': 'Osaka'}) | |
In [75]: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment