- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
3 Posted Topics
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 …
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 …
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 …
The End.
daniwebnewbie