Re: Python equivalent for C module

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Derek Martin

    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:

    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

    GPG Key ID: 0x81CFE75D


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.1 (GNU/Linux)

    iD8DBQFI/V+qdjdlQoHP510R AoY8AKCUt8kEMNf rUJ4KzA/3qfnT9f3sRwCfWo Xf
    sgBSxmT+IKLD9Bu LXXy7QIs=
    =Ccp1
    -----END PGP SIGNATURE-----

Working...