On Tue, Feb 25, 2020 at 11:41 PM BlindAnagram <blindanag...@nowhere.com> wrote:
>
> I would appreciate advice on whether it is possible to avoid the use of
> a global variable used in a function by encapsulating it in a class
> without maaking any changes to the call interface (which I cannot change).

Why bother? If you aren't changing where the function's called, then
its state is effectively global anyway, so what's the point of the
class?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to