Python Forum
How to define a global file?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to define a global file?
#11
Hey dullboy,

The easiest way would be the one you mentioned, using the trace module from the command line:

python -m trace --trackcalls your-python-program.py
Another way would be to create and set your own trace function within your code.[0][1]

[0] Set trace docs
[1] Trace function example

Let us know if that helps.
Reply


Messages In This Thread
How to define a global file? - by dullboy - Oct-05-2016, 05:10 AM
RE: How to define a global file? - by wavic - Oct-05-2016, 05:14 AM
RE: How to define a global file? - by Larz60+ - Oct-05-2016, 05:16 AM
RE: How to define a global file? - by dullboy - Oct-05-2016, 05:32 AM
RE: How to define a global file? - by Skaperen - Oct-05-2016, 07:54 AM
RE: How to define a global file? - by wavic - Oct-05-2016, 11:42 AM
RE: How to define a global file? - by j.crater - Oct-05-2016, 11:50 AM
RE: How to define a global file? - by wavic - Oct-05-2016, 12:42 PM
RE: How to define a global file? - by j.crater - Oct-05-2016, 12:51 PM
RE: How to define a global file? - by wavic - Oct-05-2016, 01:00 PM
RE: How to define a global file? - by Crimson King - Oct-05-2016, 01:23 PM
RE: How to define a global file? - by dullboy - Oct-05-2016, 02:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Global variable does not seem to be global. Columbo 6 3,816 Jul-15-2019, 11:00 PM
Last Post: Columbo
  define methods in another file bb8 13 6,993 Mar-04-2018, 06:37 AM
Last Post: Python_n00b_06
  [Python Class] save method output to global file/list Vijay 3 5,195 Dec-23-2017, 03:20 AM
Last Post: Vijay

Forum Jump:

User Panel Messages

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