Why are you hurting yourself?
You can modify objects passed to a function. I've written plenty of functions that take a list or dict as a parameter and return nothing. The reference to the object passed in allows you to modify that object.
Yes, you can. But I want to pass the function... say this; for chunk in my_dict: if chunk ........... : for nigger in chunk: if nigger . ... : this_function(nigger)
Now, that works. I can modify that list segment in the function perfectly fine and the parent list, outside the function ,sees the modification.
my_dict = ['1', ['2', ['3', '4', '5']]]
So nigger = ['3', '4', '5'] I modify it in this_function, but I can't make it '3', '4', '5' without wrapping that in a list, and that's retarded as fuck. I want it to be able to end up as my_dict = ['1', ['2', '3', '4', '5']]
But that's a list, and you named it my_dict.
(post is archived)