Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Wrong args when issuing a SIGUSR1 signal
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Sori Schwimmer, post: 1879766"] Hi All, Say I launch a shell under KDE and start typing: <code> $ python Python 2.4.2 (#10, Feb 16 2006, 17:44:37) [GCC 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7. on linux2 Type "help", "copyright", "credits" or "license" for more information..... print 'Arguments:',a,b ....</code> Now, suppose I'm launching a second shell, and typing: <code> $ ps ax ... (cut for brevity) ... 5780 pts/2 S+ 0:00 python 5781 pts/1 R+ 0:00 ps ax $ python Python 2.4.2 (#10, Feb 16 2006, 17:44:37) [GCC 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7. on linux2 Type "help", "copyright", "credits" or "license" for more information.</code> Now, back in the first shell, after pressing <Enter> once, I get: <code> Arguments: 10 <frame object at 0x817f5a4> </code> Obviously, I put the two args after experimenting without them, and receiving an error: <code> TypeError: fn() takes no arguments (2 given) </code> What is going on here? How should I handle this? Thanks, Sorin Schwimmer __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around [URL]http://mail.yahoo.com[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Wrong args when issuing a SIGUSR1 signal
Top