469,323 Members | 1,641 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

Re: Python equivalent for C module

On Mon, Oct 20, 2008 at 10:28:15AM -0700, Gary Herron wrote:
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:

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
GPG Key ID: 0x81CFE75D
Version: GnuPG v1.2.1 (GNU/Linux)


Oct 21 '08 #1
0 696

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

54 posts views Thread by Brandon J. Van Every | last post: by
14 posts views Thread by David MacQuigg | last post: by
2 posts views Thread by ajikoe | last post: by
852 posts views Thread by Mark Tarver | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.