Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #4K
~575 People Reached
Favorite Forums
Favorite Tags

3 Posted Topics

Member Avatar for daniwebnewbie

I'm writing an application that needs to store a ton of objects and some attributes. I was wondering, based on python's inner workings, if it's more memory efficient to have one huge dictionary or many small dictionaries and then one dictionary that just references the smaller dictionaries? Any information would …

Member Avatar for paddy3118
0
270
Member Avatar for daniwebnewbie

Hi. I just started python programming tonight and am trying to use good practices such as list comprehensions etc. However, I'm trying to get a list of all files in a directory (and subdirectories) and only add the filename to my list if its extension matches one of the extensions …

Member Avatar for daniwebnewbie
0
157
Member Avatar for crumpet

I'm not quite sure I understand your exact question, but maybe this will help: If you wanted to remove orange from fruit's dictionary entry try: [code=python] del d1['fruit'][2] [/code] to add orange over to vegetables: [code=python] d1['vegetables'].append('orange') [/code] To go even further, to get the correct index programmatically so you …

Member Avatar for daniwebnewbie
0
148

The End.