Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
parsin python code
#1
is there a function to parse or lex python code? in particular i want to extract the name from a source line that is a def or class statement. i don't need anything else from the statement but i do want to know if it looks valid up to the first '(' in the sources.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
parsin python code - by Skaperen - Feb-24-2021, 02:18 AM
RE: parsin python code - by Gribouillis - Feb-24-2021, 08:25 AM
RE: parsin python code - by Skaperen - Feb-24-2021, 11:47 PM
RE: parsin python code - by Skaperen - Feb-24-2021, 11:53 PM
RE: parsin python code - by Gribouillis - Feb-25-2021, 05:33 AM
RE: parsin python code - by Skaperen - Feb-25-2021, 07:50 PM

Forum Jump:

User Panel Messages

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