Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subcommands as functions
#1
it make sense to implement each subcommand as a function. but i want to be able to easily add more subcommands. i'm thinking that i would name the functions for subcommands in a special way and use the namespace dictionary from globals() to find the subcommand function to be called. is this something that will get lots of rotten tomatoes thrown at me for doing?
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
subcommands as functions - by Skaperen - Sep-02-2018, 08:23 PM
RE: subcommands as functions - by buran - Sep-02-2018, 08:43 PM
RE: subcommands as functions - by Skaperen - Sep-02-2018, 10:21 PM
RE: subcommands as functions - by Skaperen - Sep-03-2018, 12:44 AM
RE: subcommands as functions - by Gribouillis - Sep-03-2018, 04:19 AM
RE: subcommands as functions - by Skaperen - Sep-05-2018, 05:03 AM
RE: subcommands as functions - by buran - Sep-03-2018, 06:04 AM
RE: subcommands as functions - by Skaperen - Sep-03-2018, 04:49 PM
RE: subcommands as functions - by buran - Sep-03-2018, 04:56 PM
RE: subcommands as functions - by Skaperen - Sep-04-2018, 07:05 PM
RE: subcommands as functions - by Gribouillis - Sep-04-2018, 08:10 PM
RE: subcommands as functions - by Gribouillis - Sep-05-2018, 05:18 AM
RE: subcommands as functions - by buran - Sep-05-2018, 05:44 AM

Forum Jump:

User Panel Messages

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