260

System.io.weed

Comments
  • 14
    πŸ˜‚ it's lit
  • 18
    I love it!πŸ‘Œ
    This is a prime example of man and machine working together to serve a higher purpose!
  • 4
    @pyrestone lol πŸ˜‚πŸ‘
  • 2
  • 1
    ++ xD
  • 0
    You made it in Python?
  • 3
    @messhias πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚
    Fuck yes
    Python for life
  • 1
    @alcatraz627 πŸ™Œ for sure is the best languages of programming is have been created.

    You have some git repo studies or projects open to us?

    I have one for studies and if when i have some time i update it if someone want grab, share knowledge.
  • 1
    @messhias man I was kiddingπŸ˜‚. I thought you were being sarcastic. It's written right there on the console that it's java.
    Btw yes, Python indeed is gold, but no, I've not done enough of it to actually have a git repo. I'm very much a learner as well.
  • 0
    @alcatraz627 ah kkkkk but if you want i can share my python repo with you if you want study
  • 3
    I have a tool I wrote for work in Python and was able to keep the very first versions at 420 lines. Made me sad when I added the very next feature :(
  • 0
    @josh1238 could you share it with us?
  • 2
    The first number between 1 and 10 is 2
  • 1
    @messhias I can't publish the code itself anywhere (technically that's company property) but I can tell you it's a shell the user is given when they log into a specific machine with built-in commands for performing the tasks for the job. We don't want to give a full shell like bash to these users so this gives them extremely restricted access. Basically it's a giant try/catch inside a while True: loop, with EOFError (user hitting ^d) causing the loop to break and KeyboardInterrupt (user hitting ^c) causing a new iteration of the loop (a new prompt). Everything else it does is specific to the job so I'll stop myself here
  • 1
    Oh something I do want to share that's included. I try to make my python programs interoperable between v 2.x and 3.x, so I have this at the beginning:

    try:
    input = raw_input
    except NameError:
    pass

    And then you can use input() without needing v. 3.x for it to run correctly
  • 1
    @josh1238 i dont know if could help you, but here in my repository there's a lot examples with python (console), https://github.com/Messhias/...

    I hope it may could help you.
Add Comment