Python Forum
now i wish Python had a way to add commands
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
now i wish Python had a way to add commands
#3
How would you see the concept of adding commands? I was thinking there should be something possible, in a not so elegant way.

def random():
    return 'random stuff'
If you would load/import such functions as above when working interactive. And somehow create variables or something.

a = custom()
Like a said, it is not really added as a command, but maybe there is a way to further implement such functionality?
- Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. Albert Einstein
Reply


Messages In This Thread
RE: now i wish Python had a way to add commands - by Jeff900 - Dec-26-2021, 08:56 PM

Forum Jump:

User Panel Messages

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