[Tutor] RE: Tutor Digest, Vol 4, Issue 6

Raghavan, Karthic Karthic.Raghavan at logicacmg.com
Thu Nov 6 01:12:22 EST 2003


Hello Lee Harr,
    First of all thanks for ur reply.

I have just given u few lines of the code below
--------------------
import os
import time
import string
import syslog
import signal
import sys
from types import *
import pdb

InternalError = "InternalError"

__db_instance = None

def UsrHandler(sig, frame):
    global __db_instance
    try:
	if sig == signal.SIGUSR1:
	    __db_instance.IncDebugLvl()
	    signal.signalrestart(signal.SIGUSR1, self.UsrHandler)
------------------------
I think the version is 1.5.2 . But even in that version if i see the library
reference there is no function called signal restart.
Can  you makeout anything from the above piece of code. Is the signal is
imported from pdb package or not???
If yes how could i look into the fuction definition(code) of signalrestart.

Thanking you in advance,

Kind Regards,
Karthic


6. Re: signalrestart (Lee Harr)
Message: 6
Date: Wed, 05 Nov 2003 01:56:29 +0000
From: "Lee Harr" <missive at hotmail.com>
Subject: [Tutor] Re: signalrestart
To: tutor at python.org
Message-ID: <BAY2-F101MScBkOs3vD0001d2e5 at hotmail.com>
Content-Type: text/plain; format=flowed

>I encountered a piece of code which is given below
>signal.signalrestart(signal.SIGUSR1, UsrHandler)
>
>where UsrHandler is a function
>
>I searched the library references but I couldnot find the Signalrestart
>function.
>

What do the other references to signal look like in this program?
Is it...

import signal

or

from some_package import signal

or

import signal
def foobar(baz):
    pass
signal.signalrestart = foobar


I do not see signalrestart in the python signal module in 2.1 2.2 or 2.3,
so it's either an older release, or they are pulling that function from
somewhere else.


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th -7th November 2003

http://symposium.gartner.com/story.php.id.3323.s.5.html

Please note that LogicaCMG does not have control over content from,or availability of, this website



More information about the Tutor mailing list