Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python-Fu - pdb.query ; how to filter to readable output
#3
In Gimp's Python console, it the "Browse" button,this opens another dialog with a left pane where you can list/search procedures, and a right pane that documents the procedure parameters. The "Apply" biutton inserts a sample called in the console window.

Stop everything, and find a tutorial on Python'c "comprehensions". Comprehensions are very nice way to create lists arrays, and can be used to filter existing lists/arrays, for instance:

Code:
[p for p in dir(pdb) if 'image' in p]

PS: The tutorial you mention is awful IMHO.
Reply


Messages In This Thread
RE: Python-Fu - pdb.query ; how to filter to readable output - by Ofnuts - 10-07-2018, 07:27 AM

Forum Jump: