Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Mitiko63557y@Cyanite But still, you aren't writing a script. I am not into python a lot, but I think the interactive shell should at least have an option for enabling quit
-
Cyanite85577y
-
The creator of RoR make a case for this in his manifesto entailing ruby and rails. I do get annoyed by it. But there is a good reason for it. Still, come on man you know what I meant and you still bitched about it. Meh, you can add the functionality yourself buy still. For a language as powerful and productive as python this really irks me.
-
looksharp737yBecause there is code in there that knew what I wanted. Name is not defined had made me less annoyed.
-
alkuzad14807yYep, try define something to p variable or s. It will just execute command or fail.
Python is weird -
class _quit():
def __str__(self):
return self.__repr__()
def __repr__(self):
return "Use quit() or Ctrl+C"
def __call__(self):
import sys
sys.exit(0)
quit = _quit()
del _quit -
I have seen similar messages in other software, and worse than these messages was talking to devs who wrote them and argued that that was the correct and intended behavior.
Related Rants
-
linuxxx32*client calls in* Me: good morning, how can I help you? Client: my ip is blocked, could you unblock it for m...
-
DRSDavidSoft28Found this in our codebase, apparently one of my co-workers had written this
-
linuxxx23*client calls* "hello, we forgot the password to our WiFi router. Could you reset that for us?" 😐😶😮...
So you detected that I wrote quit but oh no instead of actually quitting I get to know I have to write quit()
rant
wtf