[Python-ideas] Stack traces ought to flag when a module has been changed on disk
Chris Barker
chris.barker at noaa.gov
Wed Jan 30 15:03:25 EST 2019
On Wed, Jan 30, 2019 at 3:43 AM Jonathan Fine <jfine2358 at gmail.com> wrote:
> I think Steve's suggestion fails in this situation. Suppose wibble.py
> contains a function fn. Now do
> import wibble
> fn = wibble.fn
> # Modify and save wibble.py
> reload(wibble)
> fn()
>
Sure -- but this is just a warning that there *might* be an issue -- if a
user doesn't get the warning in some cases (particularly cases in which
they have used an "advanced" feature like reload) we aren't any worse off.
+1 on the idea -- I don't see a downside.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190130/d6150351/attachment-0001.html>
More information about the Python-ideas
mailing list