From: Travis B. <tb...@my...> - 2005-01-21 23:20:42
|
Can't import signal: [travis@tiny ~]$ cd jython-2.1/ [travis@tiny jython-2.1]$ ./jython Jython 2.1 on java1.5.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import signal Traceback (innermost last): File "<console>", line 1, in ? ImportError: no module named signal >>> From the JYthon docs, it wasn't clear but I inferred that not all builtins are supported: http://www.jython.org/docs/differences.html Perhaps signal use can be avoided or redone? -Travis On Jan 21, 2005, at 2:20 PM, Mark W. Alexander wrote: > On Fri, Jan 21, 2005 at 12:09:21PM -0800, Travis Bear wrote: >> Mark, >> >> This is a linux machine I'm working on (Fedora Core 3). The registry >> I >> was referring to was the Jython registry. If I am thinking about >> signal in the right way (SIGHUP, SIGKILL, etc) then there is no >> equivalent in the Windows world as far as I know. >> >> You say getpass and signal are standard python libraries. I found >> getpass in /usr/lib/python2.3, but where does signal usually live? As >> I said, a file search for "*signal*" didn't turn up anything that >> looked useful. > > Hmm... > > mwa@cougar:~$ python > Python 2.3.4 (#2, Jan 5 2005, 08:24:51) > [GCC 3.3.5 (Debian 1:3.3.5-5)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import signal >>>> signal.__file__ > Traceback (most recent call last): > File "<stdin>", line 1, in ? > AttributeError: 'module' object has no attribute '__file__' >>>> > > Looks like it's a builtin. Can you just import it? > > mwa > -- > Mark W. Alexander > sl...@do... > > The contents of this message authored by Mark W. Alexander are > released under > the Creative Commons Attribution-NonCommercial license. Copyright of > quoted > materials, if any, are retained by the original author(s). > > http://creativecommons.org/licenses/by-nc/2.0/ > > > _________________________________________________ > Scanned on 21 Jan 2005 22:32:50 > |