Message122516
>
> Hi, I'm also looking at listobject.c also... if we want list.clear() to
> behave exactly like del list[], we may be able to just call list_ass_slice
> on the list. Similarly for list.copy which should behave like a=l[:]
>
Note that when executed to do 'del lst[:]' (i.e. with argument v set to 0
and ilow/ihigh to the maximal range of the list), list_ass_slice will just
call list_clear anyway, which is a cue that this indeed is the right way to
do it, despite the strange comment I mentioned in my message above. |
File name |
Uploaded |
unnamed
|
eli.bendersky,
2010-11-27.10:37:42
|
|
Date |
User |
Action |
Args |
2010-11-27 10:37:45 | eli.bendersky | set | recipients:
+ eli.bendersky, rhettinger, terry.reedy, eric.smith, giampaolo.rodola, eric.araujo, xuanji |
2010-11-27 10:37:43 | eli.bendersky | link | issue10516 messages |
2010-11-27 10:37:43 | eli.bendersky | create | |
|