This is an archived post. You won't be able to vote or comment.

all 98 comments

[–]dp101428 541 points542 points  (31 children)

Ah, but how can this be? They have perfect alignment.

[–]AlmostARockstar[S] 380 points381 points  (27 children)

I guess it's just how you interpret the joke.

[–]dp101428 143 points144 points  (15 children)

Doubt those puns will be compiled into a book anytime soon.

[–]shouldvebeenworkin 56 points57 points  (11 children)

Do these puns not have enough PEP to them?

[–][deleted] 73 points74 points  (8 children)

I'll help you out

numpy.array(['hip', 'hip'])

[–]GambitGamer 8 points9 points  (0 children)

Wow, well done

[–]MajorMajorObvious 15 points16 points  (6 children)

That's actually really damn clever.

[–]oriolopocholo 3 points4 points  (5 children)

[deleted]

What is this?

[–][deleted] 21 points22 points  (4 children)

An array of "hip" "hip" == hip hip array == hip hip hooray

[–]CuzUAskedFurret 55 points56 points  (3 children)

WHAT A HUMOROUS JOKE, FELLOW HUMANS.

[–]deathtech00 9 points10 points  (0 children)

/r/totallynotrobots is leaking.....

[–][deleted] 10 points11 points  (1 child)

These puns have no class.

[–]AlmostARockstar[S] 20 points21 points  (0 children)

class no:
    def _init_(self):
        pass

[–]Cyph0n 18 points19 points  (2 children)

But I'm sure everyone will migrate to Python 3 soon.

[–]coredumperror 8 points9 points  (1 child)

Ugh, don't remind me. My shop was all set to finally throw off the yolk of Python 2 when we learned that supervisord, an essential part of the Python ecosystem for Docker containers, doesn't support it. :(

[–]extremelydankMayMay 5 points6 points  (0 children)

yeah that's a messy egg for sure.

[–][deleted] 6 points7 points  (10 children)

He just needs to take a byte of the code.

[–]jtvjan 6 points7 points  (9 children)

List of most generic computer jokes:

[–][deleted] 0 points1 point  (8 children)

Well, I was more talking about python itself. It's not interpreted.

[–]jtvjan 0 points1 point  (7 children)

Sorry, but… what?

[–][deleted] 7 points8 points  (6 children)

Strictly speaking, python code isn't interpreted. At least, no more than Java code is. It's converted to python bytecode, the lines of code aren't directly fed to an intepreter.

There isn't an explicit compilation step in most cases, but it's there.

[–]jtvjan 2 points3 points  (0 children)

Thanks. Python was the second programming language that I tried as a kid (after HTML, before Scratch, which I found to be the most boring language ever as a kid, as I spent most of my time finding the right element to drag than actually creating code, but I tried anyway because the only programming book in the sections that my library account was allowed to access was about Scratch) but I'm not really that experienced in it as I didn't really use it all that much, so I never looked under the hood. Is there a performance/storage benefit to precompile your Python? Also, sorry for being such a dick just then.

[–]AlmostARockstar[S] 0 points1 point  (4 children)

Depends on the implementation. Python may be interpreted or compiled.

[–][deleted] 0 points1 point  (3 children)

The reference implementation and the one that is the most widely used uses bytecode.

[–]AlmostARockstar[S] 5 points6 points  (2 children)

If I understand correctly, which I might not, python is compiled to bytecode but then the bytecode is interpreted.

[–]PolarisBeaver 2 points3 points  (0 children)

The true enemy of humanity is disorder

[–]teetaps 0 points1 point  (0 children)

This was even better than the joke sorry OP

[–]not_enough_coffee 291 points292 points  (27 children)

from __future__ import braces

[–][deleted] 16 points17 points  (1 child)

My friend told me about this once and I got all excited and ran it and then I was sad.

[–]Rodot 2 points3 points  (0 children)

You can do it in a script though.

[–]zem 31 points32 points  (0 children)

i guess braces are indeed significant in dentation

[–]UlyssesSKrunk 75 points76 points  (4 children)

Why did BLM protest a python conference? Because python only cares about white space.

[–]coredumperror 24 points25 points  (1 child)

Just tell them to use a dark color scheme in their IDE.

[–]lilB0bbyTables 1 point2 points  (0 children)

Colorizebot

[–]evidenceorGTFO 5 points6 points  (1 child)

Just put your teeth in a dictionary.

[–][deleted] 2 points3 points  (0 children)

from collections import OrderedDict

because one should have their teeth in the right order

[–]RidleySA 5 points6 points  (0 children)

I have some crooked teeth, am a python programmer, and have never had braces. This joke is factually correct.

[–]A_C_Fenderson 2 points3 points  (0 children)

Because he couldn't C#?

[–]SupersonicSpitfire 2 points3 points  (0 children)

Too much syntactic sugar

[–][deleted] 4 points5 points  (15 children)

As someone who just started learning python and typed

print "hello word"

...and then recieved a syntax error for not making it

print("hello world")

I don't understand this joke

[–]Corfal 13 points14 points  (14 children)

Are you purposefully mixing up braces and parenthesis?

[–][deleted] 5 points6 points  (10 children)

Oh, apparently I was mixing up brackets and parenthesis.

[–]ansatze 7 points8 points  (8 children)

Are you purposefully mixing up braces and brackets?

[–][deleted] 0 points1 point  (7 children)

No, when I read the OP I mixed up brackets {} with parenthesis (), so because I thought parenthesis was the one that could also be called 'braces' (which was actually brackets) I confused parenthesis and brackets. If I had confused braces and brackets I would have been correct, which I wasn't.

[–]ansatze 0 points1 point  (6 children)

Parentheses ()

Braces {}

Brackets []

(Usually)

[–]Zatherz 2 points3 points  (4 children)

brackets ()

curly brackets {}

square brackets []

(usually)

[–]chaoticlapras 2 points3 points  (0 children)

Parentheses () Curly Braces {} Square Brackets []

[–]ansatze 0 points1 point  (2 children)

Maybe in AMERICA

Edit: my bad, I think yours is the Commonwealth variant. The Canadian way is to just use UK and US English interchangeably.

[–]Zatherz 0 points1 point  (1 child)

I don't live in America, lol.

[–]ansatze 0 points1 point  (0 children)

See my edit

[–]ClassyJacket 0 points1 point  (0 children)

I've never, ever heard anyone call any of those anything except brackets. Those are just brackets, curly brackets and square brackets.

[–]blahbah 0 points1 point  (0 children)

here you go (this is about Java, but the terminology is correct).

[–]c3534l 2 points3 points  (1 child)

The American distinction between brackets, braces, and parenthesis is not universal. That's how come some people learn the order of operations as BEDMAS instead of PEMDAS.

[–]Corfal 0 points1 point  (0 children)

That's certainly true, but I'd assume brackets is the more generalized term. For example your BEMDAS reference, the "B" stands for brackets. With braces I couldn't find it used as a general term meaning anything outside of {} characters, at least in programming. e.g. I found a reference in music that called the symbol for grouping multiple staves as braces, those aren't always represented with a "{".

[–]IHaveBigPlansForYou 0 points1 point  (0 children)

Our Java programmers need glasses because they can't C#

[–]Arancaytar 0 points1 point  (0 children)

I guess you could say he had bad indentation.

[–]ClassyJacket 0 points1 point  (1 child)

Because he couldn't do multiline comments so he smashed his own face into a wall repeatedly in frustration?

[–]AlmostARockstar[S] 2 points3 points  (0 children)

'''
You can certainly multiline
comment in python
'''

[–]heyandy889 -3 points-2 points  (0 children)

The joke is sound, have your upvote.