r/Python • • Jan 03 '19

Python in one?

https://imgur.com/cKEwZ1v
1.8k Upvotes

36 comments sorted by

214

u/Rob_Haggis Jan 03 '19

80

u/import_antigravity Jan 03 '19

It's my absolute favourite xkcd!

46

u/Rob_Haggis Jan 03 '19

Username checks out

33

u/unkz Jan 03 '19
SyntaxError: Missing parentheses in call to 'print'

3

u/[deleted] Jan 04 '19

You didn't need parenthesis in python 2.

17

u/unkz Jan 04 '19

Yes is joke.

14

u/[deleted] Jan 03 '19

Oh, that punchline is golden.

4

u/[deleted] Jan 03 '19

I don’t get it :/

2

u/tryptafiends Jan 03 '19

take everything is the medicine cabinet and get woke

3

u/OnlineGrab Jan 04 '19

That's an easter egg in Python now. Try to importing the module antigravity.

6

u/energybased Jan 03 '19

I wish he would update that for Python 3.

1

u/NowMoreFizzy Jan 04 '19

no one gets dynamic typing

and I wouldn't be in python if it didn't exist

74

u/ace6807 Jan 03 '19

At a Python REPL:

import antigravity

43

u/[deleted] Jan 03 '19

Also sample everything in the medicine cabinet.

2

u/MohKohn Jan 03 '19

that's beautiful, thanks for pointing it out.

14

u/[deleted] Jan 03 '19

something_complicated.do()

29

u/DataVeg Jan 03 '19

Nope. something is in the namespace, something_complicated isn’t.

18

u/[deleted] Jan 03 '19

from something import complicated as something_complicated

0

u/[deleted] Jan 03 '19

[deleted]

14

u/mattmc318 Jan 03 '19

No, this is Patrick

28

u/K1NG-N3RD Jan 03 '19

This is how 90% of my programming conversations go and it never makes me mad!

15

u/[deleted] Jan 03 '19

One day there will be an ai in the sky granting our wishes.

Import ai.GOD

17

u/menge101 Jan 03 '19

and the new priests will be the ones who understand the api. And they will guard it secretly.

14

u/MrFrostyBudds Jan 03 '19

Damn this thread got downvoted to hell.

18

u/notarealaccount143 Jan 03 '19

my question is why? They just literally shared an opinion, a guy that posted yesterday how a lot of people from this community are dickheads, he wasn't wrong...

5

u/MrFrostyBudds Jan 03 '19

Yeah like wtf I don't see the problem here lmao

8

u/[deleted] Jan 03 '19 edited Jan 03 '19

I came back online and went 'whoa' but no idea. I'm not a farmer so its no biggie.

Edit: i have been pissing off some ruski trolls and TD tards recently so they may be following me around lol

3

u/TheIncorrigible1 `__import__('rich').get_console().log(':100:')` Jan 03 '19

they may be following me around

I believe there's an algorithm that protects from that sort of thing.

3

u/[deleted] Jan 03 '19

You mean if i piss off 1000 trolls they can't go through my history and downvote? Or just not all the downvotes would count?

Edit: we could create a secret sub and test the theory...

1

u/TheIncorrigible1 `__import__('rich').get_console().log(':100:')` Jan 03 '19

I believe the algorithm detects patterns and won't actually count them, but still displays them to that user.

1

u/NSNick Jan 03 '19

Foundation here we come!

1

u/Muhznit Jan 05 '19

Ugh. I hope not. Singletons are a terrible antipattern.

1

u/[deleted] Jan 05 '19

In this case however, a singleton could effect equality.

3

u/ddollarsign Jan 03 '19

ModuleNotFoundError: No module named 'something'

:P

1

u/[deleted] Jan 04 '19

Please don't turn python into the next NodeJS.

-2

u/AN3223 Jan 03 '19

The non-question got a non-answer, that's justice.

0

u/[deleted] Jan 03 '19

[deleted]

4

u/fiddle_n Jan 03 '19

If the problem is already solved for you, why wouldn't you import the solution and use it? Python makes it easy to solve problems, but makes it even easier to reuse previously solved ones. If that wasn't the case, it wouldn't have much in its standard library for people to use.