Skip to content

execute_every in 7.1 error #13

@jaraco

Description

@jaraco

I am unable to use the execute_every function.
With whatever parameters I try, I always get this error:

#!python


File "ircbot.py", line 17, in __init__
    self.ircobj.execute_every( 60, myfunction )
File "myproject\irc\client.py", line 346, in execute_every
    command = schedule.PeriodicCommand(period, function, arguments)
File "myproject\irc\schedule.py", line 61, in __init__
    super(PeriodicCommand, self).__init__(*args, **kwargs)
TypeError: object.__init__() takes no parameters

ircbot.py contains my program, and the irc folder contains irclib.
The reason might be my incompetence and I am on Python 3.3.
execute_delayed for example works fine.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions