A question for Q but also the community in general.
Why is context.CONSTANT preferred vs simply defining 'CONSTANT' at a global level.
import pandas as pd CONSTANT = 20 # don't use this syntax def initialize(context): context.CONSTANT = 20 # use this instead
This was a recommendation in this post from 2015 https://www.quantopian.com/posts/tips-for-writing-robust-algorithms-for-the-hedge-fund . Is this still preferred and why.
Thanks in advance.