getting the source line number - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: getting the source line number (/thread-6928.html) Pages:
1
2
|
RE: getting the source line number - Skaperen - Dec-16-2017 (Dec-16-2017, 03:33 AM)Larz60+ Wrote: I would expect globals to work if not overridden.so where do you put your function definitions? there are cases where globals are the right way. besides that, and besides short experiments, i avoid them, too. RE: getting the source line number - Larz60+ - Dec-16-2017 Quote:there are cases where globals are the right way.Few and far between. I have used them when I had to write something on the fly, that was throw away code, but I can't remember the last time. Oh course, i often, can't remember what I had for breakfast . RE: getting the source line number - Skaperen - Dec-17-2017 so where do you put your function definitions? |