average-vr-56795
04/29/2019, 3:39 PMsetup_pantsd_logger
requires that externs have been init’d before it can be called; this is done by initialising the memoized native.context
in Python… Is there a good way to encode this dependency in code?_context = self.context
to native.py’s setup_pantsd_logger
but that feels much less good than actually passing a value somewhere…aloof-angle-91616
04/29/2019, 3:44 PMsetup_pantsd_logger()
do if the externs haven’t yet been initialized?average-vr-56795
04/29/2019, 3:45 PMaloof-angle-91616
04/29/2019, 3:46 PMsetup_pantsd_logger()
is calledaverage-vr-56795
04/29/2019, 3:46 PMNative
constructor should do the initialising that the context
property currently does…aloof-angle-91616
04/29/2019, 3:47 PMwitty-crayon-22786
04/29/2019, 4:27 PMaverage-vr-56795
04/29/2019, 4:38 PMwitty-crayon-22786
04/29/2019, 4:39 PMaverage-vr-56795
04/29/2019, 4:39 PMwitty-crayon-22786
04/29/2019, 4:44 PMaloof-angle-91616
04/29/2019, 4:44 PM@rule
parsing, but we try to keep that pretty slim)witty-crayon-22786
04/29/2019, 4:44 PMaloof-angle-91616
04/29/2019, 4:46 PMwitty-crayon-22786
04/29/2019, 4:46 PMaloof-angle-91616
04/29/2019, 4:46 PM