Hacker News new | ask | show | jobs
by confeit 2169 days ago
> Missing parentheses in call to 'print'. Did you mean print(1, 2, 3)?

Yes, Python, I meant exactly that! I've never seen this error message in error. Now you know what I mean, please fix it automatically, I know you can do that. Heck, throw a single warning if you really want to enforce this. I can ignore warnings that I don't care about.

1 comments

Yeah, generally please second-guess me Python, like my old pal Clippy did, what could possibly go wrong?
> You're flying! How?

> Python! I learned it last night! Everything is so simple! Hello world is just: print "Hello, world!"

> SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Hello, world!")?

> I dunno... dynamic typing? Whitespace?

> Come join us! Programming is fun again! It's a whole new world up here!

> But how are you flying?

> I just typed: imports antigravity as ag

> TypeError: imports() takes 2 positional arguments but 3 were given

From https://xkcd.com/353/

I'm not sure whether to take this as an in-joke (knowing the reference is part of the fun) or poor attribution (credits should be given where they're due).