Author Topic: Make "defs" show global code  (Read 198 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1220
  • Hero Points: 88
  • Text
Make "defs" show global code
« on: April 10, 2017, 11:10:00 pm »
In script files, like bash or python, code can be at global scope.
Worse is this code can be scattered around anywhere -- like inbetween class and function definitions.

The only way to make it visible in "defs", is to show statements.
But then, defs is way too cluttered.

Showing such code as "unnamed" functions would be pretty useful.

Code: [Select]
import sys

def f1():
    pass

print("Hello")

def f2():
    pass

print("goodbye")

def f3():
    pass