Skip to content
DevMeme
2390 of 7590
Bugs Post #2657 · source on Telegram

Append Says Two Arguments Given

Description

The top of the meme shows a pink-highlighted code/error strip with `fragments.append(x,y)` and the message "TypeError: append() takes 2 arguments (2 given)." Below it is a wide-eyed cartoon character at a computer, wearing an orange mask and a shirt that says "Yes." The humor comes from the error appearing to complain even though the displayed count says the expected and supplied argument totals match. In practical Python terms, it points at the familiar confusion around `append` taking one item, so a coordinate pair should usually be passed as a tuple like `append((x, y))` rather than as two separate arguments.

Comments

4
Anonymous ★ Top Pick Nothing says dynamic language ergonomics like an arity error that passes its own equality check.
  1. Anonymous ★ Top Pick

    Nothing says dynamic language ergonomics like an arity error that passes its own equality check.

  2. @Arilas 5y

    IndexOutOfRangeException: Invalid kernelIndex (0) passed, must be non-negative less than 0. Unity

  3. @anysound 5y

    Does builtin exceptions really have this bug with methods?

  4. Deleted Account 5y

    😆😆🤣🤣

Use J and K for navigation