Skip to content

Instantly share code, notes, and snippets.

@iisaka51
Created October 25, 2022 05:04
Show Gist options
  • Save iisaka51/c8bf48296421c37bf0b8046e1d72d30a to your computer and use it in GitHub Desktop.
Save iisaka51/c8bf48296421c37bf0b8046e1d72d30a to your computer and use it in GitHub Desktop.
iList of clone method
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