I'm getting a weird referencing issue. This works: ret = { &quot;values&quot;: [{&quot;value&quot;: None}, {&quot;value&quot;: None}, ]} foo = [5,6] for i, val in enumerate(foo):     ret[&quot;values&quot;][i][&quot;value&quot;] = val print(ret)   {'values': [{'value': 5}, {'value': 6}]}  But if I set ret like this: ret = {&quot;values&quot;: [{&quot;value&quot;: None}]*2} print(ret)   {'values': [{'value': 6}, {'value': 6}]}  Why, and what's a more appropriate way of setting a list of (potentially long) dictionary items with identical values?
I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?
Fast Pixel Search in Java I would like to pause a render that I have started, with the intention of resuming it at a later time (but during the same Blender session).  How can I do this? Unable to Telnet into port 25 on CentOS PostFix Server Ocean modifier and foam data export? It is there any way to export the foam data generated from ocean modifier to use it in other render engine, like LuxRender? The manual says that the foam data is stored as vertex color data, but there isn't a way to access the vertexColor data. I know that can be accessed from Cycles from attribute's node. LuxRender supports vertex color and I tried to bake the texture to vertexColor and an image but only get a plain black texture. How do I give a villager trades with custom NBT tags What is lock escalation? Genetically modified humans study insectoid alien miners with super-intelligent hive-mind This is a short story that appeared in a collection. Two genetically-modified humans (corporate anthropologists, basically) travel to a planetoid inhabited by an insect race that is mining the planet in order to study the race. While there, they are practically ignored, as the individual members of the race lack consciousness. The humans determine a type of pheromone is used to control the worker caste, and co-opt several members to create a living area. They make plans to put the mining towards human ends, but before that can happen they are discovered. The presence of the artificial pheromones wakes up a hive-mind, super-intelligent bug, who then bargains with the surviving member of the team (the man) after killing and taking over the female member of the team.  The collection was read at some point between 2000-2005. How do I extract all the external links of a web page and save them to a file? How do I extract all the external links of a web page and save them to a file?  If you have any command line tools that would be great. Using TP4056 module to charge battery while load remains connected Can I mask an input text in a bat file? I get a message:     Sorry, you are only allowed to ask 50 questions in a 30 day period   Why is there a question limit? 50/month is just not enough :) Is there a word for describing people who know many things but superficially? Is there an appropriate word for the antonym of "full-stack", as in programming? Someone who knows a lot of things just as a full-stack programmer, but without mastering them. How symbol lookup actually works What is the difference between DX format and FX format lenses, and which to choose for what purpose?  What are the pros and cons of both? Find the value of $a^{2m}+a^m+{1\over a^m}+{1\over a^{2m}}$ Let $a$ be a complex number such that $a^2+a+{1\over a}+{1\over a^2}+1=0$  Let $m$ be a positive integer, find the value of $a^{2m}+a^m+{1\over a^m}+{1\over a^{2m}}$  My approach: I factorized equation 1 which yielded $(a+{1\over a})={-1^+_-(5^{1\over2})\over2}$  I don't know if it is of any help. One of my associates had their Hotmail account broadcasting spam, and presumably hacked. They managed to change the password, but after that, the account got locked; Hotmail asks you for a phone number, and they're supposed to call you with a code.  This person requested the code several times, with different numbers (even two of mine!), but never received any call with the confirmation code.  I referred them to the full-length process, which includes answering the security question; apparently, they forgot their question (having entered it over a decade ago and never reviewed it since).  What options, if any, exist to restore access to this person's account? They only want to grab their contacts; they plan to operate full-force on GMail going forward. How tall is Supreme Leader Snoke? In Star Wars: The Force Awakens, we see Supreme Leader Snoke a few times dispensing orders to his subordinates.      However, we always see him communicating via hologram, and we've seen in previous Star Wars films that these holograms are often projected at a different size than the original person is.   So how tall is he really?  I don't think we ever got a good shot of him with something to give a sense of scale. I am wondering if there is anything in Marvel comic book canon or in the MCU that says that the Infinity Gauntlet has the power to make someone fall in love with the person wearing the Infinity Gauntlet, or that the wearer of the Infinity Gauntlet can use the Infinity Gauntlet to make two strangers fall in love with each other? Perhaps the combined power of the Mind Stone and the Soul Stone would make two people fall in love. Java Mail API - Encoding problems When do you use the "this" keyword?