Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

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.

like image 560
Ivor Zhou Avatar asked Nov 01 '25 20:11

Ivor Zhou


1 Answers

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

like image 129
Jon Kiparsky Avatar answered Nov 04 '25 11:11

Jon Kiparsky