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
#12
(Oct-05-2016, 01:23 PM)Crimson King Wrote: 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.

I think what you suggested works for me. It turns out that it is pretty simple. Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Global variable does not seem to be global. Columbo 6 3,704 Jul-15-2019, 11:00 PM
Last Post: Columbo
  define methods in another file bb8 13 6,810 Mar-04-2018, 06:37 AM
Last Post: Python_n00b_06
  [Python Class] save method output to global file/list Vijay 3 5,068 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