Skip to content

Instantly share code, notes, and snippets.

@jimratliff
jimratliff / Package_terminology_in_Python.md
Last active October 8, 2022 16:24
Discussion of conflicting uses of “package” when discussing Python and distribution of Python software.

Unpacking “package” terminology in Python

Introduction

“Package” is an overloaded term in the context of Python projects

In the context of Python projects, “package” is often used, confusingly, to refer to at least three non-equivalent entities:

  • A structure that organizes modules for importation or execution, often a directory containing a __init__.py file, that contains one or more Python modules.
  • The Python project itself
  • A file (such as a wheel (.whl) or a source archive) associated with a particular release and even a particular platform of a particular Python project. This file can be downloaded and installed to make the project’s code available to the user.

Leading Python organizations provide definitions that could and should prevent confusion, but even those organizations continue to use “package” in confusing ways

@jimratliff
jimratliff / Define_a_jdrsgame_game
Last active August 12, 2018 23:35
Template of arrays and values for defining a jdrsgame strategic-form game #latex #jdrsgame
\definejdrsgame{3}{4}
% Define the players' names
\renewcommand{\Rplayernm}{Ms.\ Row}
\renewcommand{\Cplayernm}{Mr.\ Column}
% Define Column's strategies
\readarray{ColumnStrategies}{A&B&C&D&E&F&G&H&I&J}
%\ColumnStrategies(1)={A}
%\ColumnStrategies(2)={B}
%\ColumnStrategies(3)={C}