Python Forum
signal.itimer() not accepting keyword arguments
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
signal.itimer() not accepting keyword arguments
#1
19.8.2 documents signal.itimer() as taking 2 positional arguments and 1 keyword argument "interval=". calling it with that keyword argument gets an error saying it does not take keyword arguments. does anyone know what is wrong?

Output:
Traceback (most recent call last): File "relog.py", line 26, in <module> signal.setitimer(signal.ITIMER_REAL,start,interval=1.0) TypeError: setitimer() takes no keyword arguments
10.8.2 shows:
Output:
signal.setitimer(which,seconds,interval=0.0)
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
did you inadvertently name something setitimer?
Reply
#3
no. i used signal.setitimer explicitly. i have not attempted to alter attribute of the signal module.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Find a specific keyword after another keyword and change the output sgtmcc 5 817 Oct-05-2023, 07:41 PM
Last Post: deanhystad
  Why doesn't calling a parent constructor work with arbitrary keyword arguments? PurposefulCoder 4 938 Jun-24-2023, 02:14 PM
Last Post: deanhystad
  invalid keyword arguments error sagpal 3 2,396 Jun-04-2020, 10:24 PM
Last Post: bowlofred
  Accepting inputs str vs int lbtdne 2 1,822 May-14-2020, 01:45 PM
Last Post: lbtdne
  Problem with accepting multiple string inputs Ryan_Todd 5 2,945 Jan-22-2020, 06:12 PM
Last Post: buran
  Accepting strings as arguments when slicing a string? (Ziyad Yehia on Udemy) Drone4four 4 3,792 Aug-23-2019, 07:59 PM
Last Post: Drone4four
  Sqlalchemy accepting ISO 8601 KirkmanJ 0 3,582 Jul-27-2018, 01:52 PM
Last Post: KirkmanJ
  MySQL not accepting utf8mb4. Warning 3719 jonesin1974 0 4,770 Jun-21-2018, 03:09 AM
Last Post: jonesin1974
  if loop is not accepting && A_Embedded 2 2,750 Apr-22-2018, 02:24 PM
Last Post: A_Embedded
  Functions (Arguments Passing,Changing a mutable ,Assignment to Arguments Names) Adelton 2 3,866 Mar-02-2017, 10:23 PM
Last Post: zivoni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020