Ivor Zhou
Ivor Zhou

Reputation: 1273

Why the Python 2, 3 compatibility package is named `six`?

Six provides simple utilities for wrapping over differences between Python 2 and Python 3. It is intended to support codebases that work on both Python 2 and 3 without modification. six consists of only one Python file, so it is painless to copy into a project.

I was always wondering why it is named six.

Upvotes: 4

Views: 1520

Answers (1)

Jon Kiparsky
Jon Kiparsky

Reputation: 7753

The name, “six”, comes from the fact that 2*3 equals 6. Why not addition? Multiplication is more powerful, and, anyway, “five” has already been snatched away by the (admittedly now moribund) Zope Five project.

Source

Upvotes: 14

Related Questions