Python debugging quirks

Eric S. Raymond esr at
Thu Dec 15 05:23:54 UTC 2016

Hal Murray <hmurray at>:
> I think I figured out one contribution to my confusion.
> When printing out a backtrace, it uses the text from the installed version 
> but it's actually running the local code.
> [murray at hgm ntpclients]$ ./ntpmon ntp-wifi
> Traceback (most recent call last):
>   File "./ntpmon", line 164, in <module>
>     variables, peer.associd))
>   File "/usr/local/lib/python2.7/site-packages/ntp/", line 273, in 
> summary
>     sys.stderr.write("DNS lookup ends.\n")
> NameError: global name 'logfp' is not defined
> I had modified that line.

That doesn't sound possible to me.  Think about how an interpreter works.
		<a href="">Eric S. Raymond</a>

More information about the devel mailing list