memesearch
Python Tuple Confusion

Python Tuple Confusion

Download Find similar pictures
Text on the meme
>>> x = (1, 2, 3) >>> type(x) <type 'tuple'> >>> if x is tuple: ... print('x is tuple') ... else: ... print('x is not tuple, it is %s' % type(x)) x is not tuple, it is <type 'tuple'> >>> IS THIS A JAVASCRIPT?
What it means

A Python terminal shows a tuple being incorrectly compared with the tuple type, producing the contradictory output that it is not a tuple while displaying tuple as its type. A Python logo and confused anime-style character accompany the caption “IS THIS A JAVASCRIPT?”, joking about bizarre or misleading programming behavior and the confusion between Python and JavaScript. People send it as a reaction to strange code, language quirks, or inexplicable bugs. EN: A Python terminal shows a tuple being incorrectly compared with the tuple type, producing the contradictory output that it is not a tuple while displaying tuple as its type. A Python logo and confused anime-style character accompany the caption “IS THIS A JAVASCRIPT?”, joking about bizarre or misleading programming behavior and the confusion between Python and JavaScript. People send it as a reaction to strange code, language quirks, or inexplicable bugs.

Objects
Tags
Source
Template
programming code reaction meme
Type
image
Size
752×500 · 42.7 KiB
Mood
confused, absurd
Language
en
Added