Discuz! Board

 

 

Search
Discuz! Board Forum Integration Questions can i safely use .clear() for a dictionary?
View: 544|Reply: 3
go

can i safely use .clear() for a dictionary?

Rank: 3Rank: 3

Post on 2011-10-7 14:22 |All posts
Would the memory for a dictionary be safely cleared if I ran dict.clear() on it? Is it better to pop it item by item?

Rank: 2

Post on 2011-10-8 03:19 |All posts
Our engineering team are on their vacation for this whole week.  We will get back to you as soon as possible.  sorry for delay.

Rank: 4

Post on 2011-10-8 15:03 |All posts
Reply Rabbit 's thread

clear() is safe. pop is not better. They are the same

Rank: 1

Post on 2011-10-10 16:42 |All posts
I will wait for that
Security Q&A Change Security code Change

Archiver|Comsenz Inc.

All time is GMT+8, 2013-5-24 07:03 , Processed in 0.031805 second(s), 13 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.