python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Ruby: How to reference a variable defined outside of a module
How do I pass processor_pool to the method inside the module?
class Dummy
def initialize
processor_pool = Concurrent::FixedThreadPool.new(10)
@threadpool = Module.new do
extend Concu...
Dasmowenator
Votes: 0
Answers: 1
Why does the += operator with lists alters the output of my function inside a class in python?
Hello I was trying to debug an issue with some classes and I came to this minimal example:
class parentclass:
a = ["a", "a"]
b = ["b", "b"]
def tes...

nck
Votes: 0
Answers: 1
How to create pytest tmp_path with module or function scope?
I am trying to create a tmp_path using pytest.
This documentation explains how to do it
https://docs.pytest.org/en/6.2.x/tmpdir.html
But the scope for the tmp_path is session.
I need to change the ses...
Amin Ba
Votes: 0
Answers: 1
Do bash scripts execute in new shells or subshells?
I am running a bash script from my bash interactive shell as:
./shell.sh
The confusion I am having is, will this script run inside a new shell instance or a subshell of my current bash instance?
I as...
Qamber Ali
Votes: 0
Answers: 1