Two values 'DEVNULL' and 'PIPE' for stdout and stderr respectively were printed as '-3' and '-1' when I put them into a dic. How to solve this problem except transform them into strings through adding '' symbols because they will be afterwards as arguments incorporated into a subprocess.run function.
from subprocess import DEVNULL, PIPE
F1 = DEVNULL
F2 = PIPE
L1 = {'stdout':F1, 'stderr':F2}
print(L1)
output
{'stdout': -3, 'stderr': -1}