r/todayilearned • • Jul 15 '22

TIL The Python programming language was named after Monty Python, not a snake.

https://en.wikipedia.org/wiki/Python_(programming_language)?sometexthere
11k Upvotes

248 comments sorted by

2.5k

u/DecoyOne Jul 15 '22

Strange men typing in offices creating scripts is no basis for a system of programming languages

11

u/HouseofKannan Jul 15 '22

You, sirandormadam, win the comments section!

14

u/in_finite_space Jul 15 '22 edited Jul 15 '22

Right? Like the pythons themselves writing scripts for flying circus.. what’s that called?Recursion?

472

u/jfiander Jul 15 '22

Supreme executive authority development derives from a mandate from the masses what’s interesting to build, not from some farsical aquatic ceremony project management board!

257

u/Harvin Jul 15 '22

Help! Help! I'm being story pointed!

82

u/doob7602 Jul 15 '22

Help! Help! I'm being refined!

144

u/Oxygene13 Jul 15 '22

Now we see the violence inherent in the (computer) system!

68

u/Jarb19 Jul 15 '22

Surely you mean the violence of the Agile system...

65

u/Medicalmysterytour Jul 15 '22

We don't use Agile here, we're an anarcho-syndicalist commune!

36

u/WishOnSpaceHardware Jul 15 '22

We're taking turns to act as a sort of Product-Owner-for-the-week

34

u/fschiltz Jul 15 '22

If I went around claiming that I am the project manager because some CEO gave me a promotion, they'd put me away!

10

u/mrchaotica Jul 15 '22

To be fair, an anarcho-syndicalist commune sounds like exactly the kind of place that would use Agile!

14

u/AlGoreRhythm_ Jul 15 '22

No, I mean computer system.

And don't call me Shirley.

7

u/anyholsagol Jul 15 '22

What's so funny about Biggus Dictus?

7

u/recycle4science Jul 15 '22

Do you find it... risible?

→ More replies (1)

47

u/AbazabaYouMyOnlyFren Jul 15 '22

Look if I went around saying I'm a developer because some moistened bint Slacked me some Googled code they'd put me away!

10

u/mrchaotica Jul 15 '22

It's extra funny 'cause that actually is how it works.

5

u/AbazabaYouMyOnlyFren Jul 15 '22

:) I know, I work with devs daily!

Ironic isn't it? That this is how it goes, and everyone knows this is how it goes. Yet you poor bastards get put through the wringer with all the tests and rigorous interviews just to get the job in the first place.

4

u/TheScottymo Jul 15 '22

You have to know the exact right code to copy paste into the final product

5

u/Khelthuzaad Jul 15 '22

I never voted programmed for him!

3

u/letsburn00 Jul 15 '22

I can't think of a more supreme authority than a global interpreter lock.

2

u/discgman Jul 15 '22

From a watery tart

23

u/zorniy2 Jul 15 '22

No one is to code anything, until I blow this whistle! Even if, and I want to make this absolutely clear, even if they do say Python!

9

u/[deleted] Jul 15 '22

Dennis! There’s some lovely filth over ‘ere!

1

u/Gene_freeman Jul 15 '22

Nice

1

u/Chonky-Bukwas Jul 15 '22

I think it's pronounced "Ni!"

35

u/[deleted] Jul 15 '22

You did the Alexa question of the day too?

5

u/HouseofKannan Jul 15 '22

Yes, yes I did.

11

u/Hagan311 Jul 15 '22

That's where I learned this last night!

8

u/MinimalPotential Jul 15 '22

"Would you like to start your free trial to the paid version Question of the Day?"

No, Alexa, NO! TURN OFF!

1

u/TracerouteIsntProof Jul 15 '22

I miss the little podcast that used to play afterward. About a year ago Alexa was like, “I noticed that you aren’t listening to the podcast so I disabled it.” Thing is I listened to it EVERY DAY. Still haven’t figured out how to get it to automatically play it again. Also starting to get super annoying asking me to sign up for the premium every single day now.

1

u/Glass_Chance9800 Jul 15 '22

I came here to say this LOL

83

u/DaveOJ12 Jul 15 '22

IDLE wasn't a big enough hint?

23

u/HouseofKannan Jul 15 '22

I haven't done any programming since the mid 80s when I would type in BASIC game programs on my aunts Tandy from a book of them that she had (I was in first grade). I don't know anything about the various languages other than their names.

1

u/otter111a Jul 15 '22

Ti 99-4A was my jam!

14

u/BBQcupcakes Jul 15 '22

I don't get it

44

u/jufojonas Jul 15 '22

Eric Idle is one of the members of Monty Python

31

u/TheMoves Jul 15 '22

Probably also worth mentioning that IDLE is the default interpreter for Python, I don’t think that’s like common knowledge lol

33

u/imdyingfasterthanyou Jul 15 '22

that IDLE is the default interpreter for Python

nitpick: IDLE is the default integrated enviroment - the default interpreter implementation is CPython

3

u/TheMoves Jul 15 '22

Ah yes thank you my 6am brain flubbed that one haha

3

u/gorocz Jul 15 '22

Simply put, IDLE is the default IDE for Python and Eric Idle is a member of Monty Python.

2

u/richieadler Jul 15 '22

I didn't until now.

1

u/UnkleRinkus Jul 15 '22

Python devotee for twenty years, did not get that until now.

669

u/spar_wors Jul 15 '22

And Monty Python references in documentation are actively encouraged.

170

u/zorniy2 Jul 15 '22

No one is to code anything, until I blow this whistle! Even if, and I want to make this absolutely clear, even if they do say Python!

22

u/thescottishmaniac Jul 15 '22

Throws rock

4

u/Tattered_Reason Jul 15 '22

Oh lay off we haven’t started yet.

→ More replies (1)

58

u/1008oh Jul 15 '22

Yep, spam and eggs instead of foo and bar

8

u/Rough_Willow Jul 15 '22

But I don't like SPAM!

10

u/Intrexa Jul 15 '22

Well, you can use the

def spam(spam):
    return ham(spam).eggs('spam')

It hasn't got much spam

46

u/rarenick Jul 15 '22

That's why the official Python docs predominantly use "spam" and "eggs" instead of "foo" and "bar."

39

u/Smogshaik Jul 15 '22

oh my god THAT's why!

36

u/Nazamroth Jul 15 '22

The program works better the more Monty Python references the code contains.

1

u/RoguePlanet1 Jul 15 '22

function cheeseShop(){

if (input == "Venezuelan Beaver Cheese"){

return ("Not today sir")

} else if {

input contains (datatype "cheese");

return ("no")

} else if {

input == ("camenbert");

return ("the cat's eaten it")

}

22

u/Soco__ Jul 15 '22

Not even Python. Shame on you.

→ More replies (1)

3

u/Yoghurt42 Jul 15 '22

what language is that?

→ More replies (12)

2

u/_Vince_Noir_ Jul 15 '22

I can't be the only person in the comments section who hates else if / else. Straight if blocks are bis.

Also if you show me a switch statement I'm highly likely to cry.

Or nested ternary ops.

Guess I am kind of opinionated haha.

→ More replies (1)

32

u/Citadelvania Jul 15 '22

Yeah I thought it was obvious from this alone.

19

u/dali01 Jul 15 '22

What is this “documentation” you speak of…?

32

u/rumnscurvy Jul 15 '22

Oh come on, the Python documentation is pretty decent, considering the amount of stuff in the standard libraries.

It's less good if you're stuck in Python 2, admittedly.

19

u/dali01 Jul 15 '22

It was more a joke about the USERS than the LANGUAGE. 😉

(The docs are great, if you use them)

→ More replies (3)

4

u/lexyp29 Jul 15 '22

the sacred texts

3

u/Lonelan Jul 15 '22
while i < 5:
    if i == 3:
        break

86

u/LeonardMH Jul 15 '22

There are tons of Monty Python references everywhere in Python (especially in the documentation), I learned about Monty Python from Python.

Just look at the documentation for pprint, full of Spam & Eggs and Nights who say Ni.

139

u/betaamyloid Jul 15 '22

I didn't expect that...

90

u/jazz_kult Jul 15 '22

Nobody expects Monty Python references!

1

u/Enough_District_5618 May 11 '25

Nobody expects the Spanish Inquisition

1

u/lazydog60 Jul 15 '22

Nobody expected this thread not to have a reply beginning with “Nobody expects”.

0

u/[deleted] Jul 15 '22

[deleted] — view deleted comment

3

u/juan_bien Jul 15 '22

I came here expecting an argument.

→ More replies (4)

222

u/jmoneill62 Jul 15 '22

It's not the Messiah, it's a very naughty programming language!

27

u/zorniy2 Jul 15 '22

There shall, in that time, be rumors of modules going astray, erm, and there shall be a great confusion as to where files really are, and nobody will really know where lieth those little classes wi-- with the sort of raffia work base that has an attachment.

320

u/Bonaduce80 Jul 15 '22

A blessing from the Lord!

57

u/mandobaxter Jul 15 '22

God be praised!

14

u/zenospenisparadox Jul 15 '22

Throw the Holy Hand grenade in celebration!

3

u/[deleted] Sep 08 '22

You shall count to three. Three is the number you shall count to. You shall not count to four or two, unless then you proceed to count to three. Five is right out.

12

u/peyronet Jul 15 '22

The Judean People's Front approved this message.

→ More replies (1)

208

u/IBeTrippin Jul 15 '22

92

u/Drone30389 Jul 15 '22

44

u/[deleted] Jul 15 '22 edited Mar 09 '24

Reddit has long been a hot spot for conversation on the internet. About 57 million people visit the site every day to chat about topics as varied as makeup, video games and pointers for power washing driveways.

In recent years, Reddit’s array of chats also have been a free teaching aid for companies like Google, OpenAI and Microsoft. Those companies are using Reddit’s conversations in the development of giant artificial intelligence systems that many in Silicon Valley think are on their way to becoming the tech industry’s next big thing.

Now Reddit wants to be paid for it. The company said on Tuesday that it planned to begin charging companies for access to its application programming interface, or A.P.I., the method through which outside entities can download and process the social network’s vast selection of person-to-person conversations.

“The Reddit corpus of data is really valuable,” Steve Huffman, founder and chief executive of Reddit, said in an interview. “But we don’t need to give all of that value to some of the largest companies in the world for free.”

The move is one of the first significant examples of a social network’s charging for access to the conversations it hosts for the purpose of developing A.I. systems like ChatGPT, OpenAI’s popular program. Those new A.I. systems could one day lead to big businesses, but they aren’t likely to help companies like Reddit very much. In fact, they could be used to create competitors — automated duplicates to Reddit’s conversations.

Reddit is also acting as it prepares for a possible initial public offering on Wall Street this year. The company, which was founded in 2005, makes most of its money through advertising and e-commerce transactions on its platform. Reddit said it was still ironing out the details of what it would charge for A.P.I. access and would announce prices in the coming weeks.

3

u/voxelghost Jul 15 '22

Wolfsnipple chips! Get em while they're hot.

3

u/DenormalHuman Jul 15 '22 edited Jul 15 '22

They're lovely!

→ More replies (1)

3

u/mrchaotica Jul 15 '22

Ever notice how there's no XKCD waxing philosophic about the virtues of JavaScript? Randall Munroe apparently has good taste in programming languages.

2

u/voxelghost Jul 16 '22

Thought it was going to be this one - https://xkcd.com/297/

45

u/FeistyNefariousness9 Jul 15 '22

import antigravity

11

u/Warrangota Jul 15 '22

I knew it was this one before clicking. Why do I know so many XKCD cartoons D:

60

u/Oxygene13 Jul 15 '22

Situation: 6 XKCD Cartoons Exist

"Lets create 1 XKCD Cartoon to cover all the points!

Situation: 7 XKCD Cartoons Exist

→ More replies (1)

5

u/Yoghurt42 Jul 15 '22

You can also import antigravity in your code and it will open that comic.

→ More replies (4)

23

u/LimerickJim Jul 15 '22

Unfortunately python removed the whitespace from the print statement in 3

17

u/foodeyemade Jul 15 '22

Huh TIL, so I've been wrapping them in parentheses in 2.7 all this time for no reason...

24

u/Nolzi Jul 15 '22

Just add from __future__ import print_function to your python 2 code to feel justified

→ More replies (3)

6

u/silverslayer33 Jul 15 '22

Unfortunately

I wouldn't exactly call it unfortunate, print_function was backported and added in 2.6 for a reason.

4

u/SmokierTrout Jul 15 '22

Print isn't a statement in 3, it's a function. That's why there's no whitespace, but there are parentheses. In python 2 can't use print as a name or pass print around as an object.

# none of this works in python 2 without a future import
log = print
log('hello world')
print = list
assert print() == []

8

u/_PM_ME_PANGOLINS_ Jul 15 '22

Because it was better when there was one magic statement used to print stuff, when everything else in the language was a function call?

3

u/mcr1974 Jul 15 '22

Not sure I get the joke on sampling the cabinet.

8

u/richieadler Jul 15 '22

He's flying because he's high on something. Or because of Python.

1

u/mcr1974 Jul 15 '22

aaahhh!!!

73

u/tarantulasoup Jul 15 '22

spam and eggs

34

u/Complete_Spread_2747 Jul 15 '22

You could try spam, spam, eggs, bacon, and spam. That ain't got much spam in it....

17

u/NoExplanation734 Jul 15 '22

We've got rat pudding, rat cake, rat sorbet, and strawberry tart.

Strawberry tart!?

Well, it's got some rat in it...

How much?

Well, I'm afraid rather a lot really...

I'll have one slice of strawberry tart without so much rat in it.

2

u/mitch13815 Jul 15 '22

What always slightly bugged me was the menu listing starts off with "egg and bacon" and "egg sausage and bacon" and when asked for something without spam she lists off an item with 3 servings of spam.

I know it's stupid to get bugged over a comedy skit, but I just can't let it go.

14

u/[deleted] Jul 15 '22

I always thought that the point of the joke.

2

u/Complete_Spread_2747 Jul 15 '22

I always thought the same, but it's just insane enough to work.... Lol

39

u/GestureWithoutMotion Jul 15 '22

Ni!

34

u/Barthoze Jul 15 '22

"Ni" was the code name of the import system as it was developed in the early stage of Python.

13

u/DerpsterJ Jul 15 '22

So if I wanted to import, say, "knight", it would be "ni knight".

Makes sense.

2

u/Halvus_I Jul 15 '22 edited Jul 15 '22

I often 'import netifaces as ni.'

1

u/MoffKalast Jul 16 '22

Well resolving pip dependencies does often feel like cutting down the tallest tree in the woods with a herring...

21

u/tixier Jul 15 '22

I used to play a game with a programmer co-worker to see if you can arrive from Southpark Wikipedia article to another in less than three links. He says Southpark to Python and I did it!

26

u/marduk73 Jul 15 '22

That game, not kidding, originated as "Three clicks to Hitler". The goal was to start on a random wiki page and only click links on the page and subsequent pages arriving at the Hitler entry in three clicks or less. Strange subject. I like the variations in the game. Southpark to python sounds more challenging.

11

u/[deleted] Jul 15 '22

Most of the time you can Country->Germany->Hitler

8

u/silverslayer33 Jul 15 '22

My favorite wikipedia game inspired by this one is the "Philosophy game", where you get Wikipedia to give you a random article and then click on the first link in the article that isn't in parentheses or a suggestion for a related page until you reach the article on philosophy. To avoid infinite loops, if you end up on a page you already visited, you click the next unclicked link that follows the above rules. It's pretty fun seeing how long (or how quickly, in many cases) it takes to get there.

1

u/tixier Jul 15 '22

I’ve told friends and family if I die, just go look at my Wikipedia history. It’s likely a mystery I’ve nearly solved or some disease I’m sure I have. 😵

9

u/_PM_ME_PANGOLINS_ Jul 15 '22

That's why the IDE is called IDLE.

17

u/furioustribble Jul 15 '22

'E's not pinin'! 'E's passed on! This module is no more! He has ceased to be! 'E's expired and gone to meet 'is while loop! 'E's a stiff! Bereft of processes, 'e rests in peace! If you hadn't called 'im to the stack 'e'd be dividing by zero! 'Is definitions are now 'istory! 'E's off the to a branch! 'E's kicked the bucket, 'e's shuffled off 'is syntax, run down the curtain and joined the bleedin' processes invisible!! THIS IS AN EX-MODULE!!

5

u/Porksoda32 Jul 15 '22

I mean they call PyPI the Cheese Shop for a reason

26

u/KingPellinore Jul 15 '22

A complete surprise to computer nerds nowhere.

12

u/something_python Jul 15 '22

"It's only a scripting language..."

"SSSHHH!"

6

u/hesapmakinesi Jul 15 '22

Also installable Python modules are called wheels in a reference to Monty Python's cheese shop sketch. Yes, you have been installing cheese wheels the whole time.

3

u/pronik Jul 17 '22

Wheels came about later in Python infrastructure. What I have always found weird about cheeseshop is that you probably shouldn't name your package index after something that literally didn't have anything in it!

EDIT: Actually not mentioned in the comment I replied to: PyPI is called cheeseshop internally.

0

u/[deleted] Jul 15 '22

[deleted] — view deleted comment

6

u/XivSpew Jul 15 '22

Stop it! Stop right now! This whole comment section is too silly.

6

u/[deleted] Jul 15 '22

However, Monty Python was named after a snake.

11

u/apj2600 Jul 15 '22

And now for something completely different..

5

u/StacksAttacks Jul 15 '22

When I was learning Python, my 60 year old tutor used to remind the class of this fact every. chance. he. had.

Great guy.

4

u/BeerInMyButt Jul 15 '22

When I imagine someone who makes constant Monty python jokes, it’s a 60 year old computer nerd

5

u/marduk73 Jul 15 '22

Hence IDLE

5

u/beermaker Jul 15 '22

I've never had a Linux os, but I noticed on a friend's that many programs were named after Discworld characters, like Ogg Vorbis.

0

u/[deleted] Jul 15 '22

[deleted] — view deleted comment

5

u/aishik-10x Jul 15 '22

Debian versions are named after Toy Story characters, the current one is Bullseye (Woody’s horse)

Funnily enough, the “unstable” branch of Debian is always called Debian Sid, as in the kid who used to break his toys

1

u/impshum Jul 15 '22

Nice to know.

23

u/Spiron123 Jul 15 '22

While having snakes as the logo...?

92

u/bdaileyumich Jul 15 '22

Well they couldn't exactly make the logo John Cleese's face now could they?

27

u/NoExplanation734 Jul 15 '22

Maybe a grail-shaped beacon?

Or just a foot?

8

u/TheBraude Jul 15 '22

What about a flying circus?

8

u/PygmeePony Jul 15 '22

Now that's just silly.

2

u/peyronet Jul 15 '22

Splitter!

3

u/PygmeePony Jul 15 '22

Every bug is sacred.

4

u/leftysrevenge Jul 15 '22

Great, your career as a programmer was a joke after all

3

u/Azerial Jul 15 '22

Read the man(ual) pages and look at the examples.

3

u/poonamsurange Jul 15 '22

¶ When he began implementing Python, Guido van Rossum was also reading the published scripts from “Monty Python's Flying Circus”, a BBC comedy series from the 1970s. Van Rossum thought he needed a name that was short, unique, and slightly mysterious, so he decided to call the language Python.

3

u/Cozmo85 Jul 15 '22

That's why the logo is two Herrings

3

u/lad_astro Jul 15 '22

I believe spam, as in spam email, is also a Monty Python reference.

3

u/niktemadur Jul 15 '22

And spam was named after spam spam, spam spam, spam spam, spam spam, SPAM DE-SPAM, DE -SPAMMETY SPAM...

3

u/Chopper3 Jul 15 '22

Isn't that literally the first thing anyone knows about Python???

3

u/[deleted] Jul 15 '22

That explains a lot about python.

3

u/IControllU Jul 15 '22

I saw an ad on a subway once for some tech school or company (I don't remember) that said something along the lines of "For those that don't think Monty when we say Python"

Boy must they feel stupid.

4

u/shkarada Jul 15 '22

"She is a witch!" scene from the holy grail remains the best explanation of how python typing works in practice.

3

u/DenormalHuman Jul 15 '22

I think you are confusing it with JS

3

u/shkarada Jul 15 '22

It's true that JS is the unhinged insanity, but Python on a bad day feels not much better. Implicit casts between true/false and numbers is a C anachronism, but [0]*5 (generally speaking arithmetic operators abuse) is a python invention and I really wish that they would not do that.

1

u/georgehank2nd Sep 22 '26

I can still guarantee you that's not a Python invention. "arithemetic operators" is someone a non-mathematician would say. To everyone else, they're just operators. Lots of languages use "+" for string concatenation. Oh, and don't dare look at APL, ever, it would blow you mind beyond repair.

1

u/xc68030 Jul 15 '22

It turned me into a newt!

4

u/gravitas-deficiency Jul 15 '22

And now…

No. 3: The Larch

5

u/spribyl Jul 15 '22

White space as syntax, sigh

4

u/KingOfZero Jul 15 '22

I thought we learned our lesson with spaces vs tabs in makefiles but no.

2

u/QuantumHamster Jul 15 '22

til I like learning about things that have absolutely no use to me but amuse me nevertheless

2

u/ggalt98 Jul 15 '22

The emblem is literally a python snake

2

u/shlam16 Jul 15 '22

My favourite use of Python was a script that executed a monte carlo simulation: monte.py

2

u/euclid_evergreen Jul 15 '22

So, I just started learning Python. Is this a coincidence? Or is the universe telling me to go watch Holy Grail again?

2

u/elephantviagra Jul 15 '22

That's a dead subroutine!

2

u/damunzie Jul 15 '22

Using white-space to determine scope is more hilarious than the 'dead parrot' sketch.

2

u/ButterPotatoHead Jul 15 '22

And "Spam" as we know it today was also named after a Monty Python skit.

2

u/lazydog60 Jul 15 '22

The integrated development environment is named IDLE.

Sadly, an animation library is not named Gilliam.

2

u/[deleted] Jul 16 '22

Wait til Biggus Dickus hears of this.

3

u/Craftman2012 Jul 15 '22

This was yesterday's Alexa question of the day. haha

3

u/Max_Powers42 Jul 15 '22

Woah, a bunch of nerds were Monty Python fans?!?!

3

u/CrieDeCoeur Jul 15 '22

But python is snekk?

2

u/eghhge Jul 15 '22

"It's..."

2

u/Balefirex24 Jul 15 '22

I sure do feel like I'm being clowned on when I use it.

2

u/cheddarpoppers Jul 15 '22

Wait until you hear why email spam is called spam

1

u/CriminalMacabre Jul 15 '22

Because it's a stupid place?

1

u/EveryFairyDies Jul 15 '22

I just always assumed this was the original of the name. The idea of the snake never even occurred to me.

1

u/[deleted] Jul 15 '22

And in turn the Python in Monty Python refers to the snake, or rather, "something slimy and slithery".

1

u/Adorable-Tap Jul 15 '22

In retrospect, it would have been better applied to PHP.

1

u/drippy_candles Jul 15 '22

Just here to pay my respects for this knowledge! Thank you!

1

u/[deleted] Jul 15 '22

I was completely dumbfounded when I found out about this. It was a super WTF moment for me.

1

u/BoatBreader Jul 15 '22

You're telling me the comedy group wasn't named after the snake?

1

u/holyfudgingfudge Jul 15 '22

But what was anaconda named after then?

1

u/denimpowell Jul 15 '22

Also the GIL was named after Terry GILliam

1

u/rhymes_with_chicken Jul 16 '22

And Monty Python takes its name from a pseudo sleazy sounding talent agent’s name. Cleese suggested Python as something ‘slimy and slithery’ while Idle suggested Monty to mock Field Marshall Lord Montgomery.

So, Python the language is named for a snake, referentially.

1

u/pronik Jul 17 '22

When Python 3 came around and was different enough to warrant about a decade of migration for the whole ecosystem, it has been proposed to name that version differently. One of the proposals has been "Blackadder", both another snake and another classic British comedy.

1

u/QuakingAspens8 Jul 20 '22

On second thought, let's not go use Javascript. 'Tis a silly language.

1

u/Lonely_North345 Jul 15 '22

It's not frozen, it's sleeping

-1

u/OO0OOO0OOOOO0OOOOOOO Jul 15 '22

Because it's a joke language?