[...]The other weird behavior was, once I changed the value of DEBUG,
dprint() started to behave oddly. No matter what I passed as an
argument (and no matter what I set the value of DEBUG to be), it
started printing the exact literal string:
DEBUG: %s
I don't believe it -- send your *actual* code, and we'll all have a look.When I finally had access to my code again, my error was immediately
obvious. I'd typed:
print("DEBUG: %s")
Weird thing was, I remembered it actually working. And it had... In
between testing the two cases, I'd accidentally deleted the module and
had to recreate it. The first time no bug, second time, well,
resutled in this thread. I'm chalking the whole thing up to coding
when not sufficiently awake to do so. ;-)
--
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFI/V+qdjdlQoHP510RAoY8AKCUt8kEMNfrUJ4KzA/3qfnT9f3sRwCfWoXf
sgBSxmT+IKLD9BuLXXy7QIs=
=Ccp1
-----END PGP SIGNATURE-----