Python Forum
Error in a file and problem with ptpython
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in a file and problem with ptpython
#2
Second trouble: this code uses a module timer which we don't know where it comes from. However, I suspect it is this module from the cheeseshop, which runs this C code. As you can see in function Timer_new(), it takes at least 2 arguments: a time in microseconds and a python callback.

It is also possible that from timer import Timer invokes a different module on the author's computer and this timer module on yours, which would explain the error.
Reply


Messages In This Thread
RE: Error in a file and problem with ptpython - by Gribouillis - Aug-24-2018, 06:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to handle "History" in ptpython sylas 4 4,923 Oct-07-2018, 11:09 PM
Last Post: Larz60+
  Cannot use functions at the bottom of ptpython sylas 1 2,647 Aug-29-2018, 12:02 PM
Last Post: sylas
  How to correct, save, run with ptpython sylas 17 11,826 Jun-03-2018, 04:48 PM
Last Post: sylas
  ptpython docstring metulburr 4 5,296 Nov-17-2017, 01:36 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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