Skip to content

3.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 31 Dec 19:50
Immutable release. Only release title and notes can be modified.
3f4c582

ℹ️ Note that python-minifier depends on the python interpreter for parsing source code,
and will output source code compatible with the version of the interpreter it is run with.

This means that if you minify code written for Python 3.11 using python-minifier running with Python 3.12,
the minified code may only run with Python 3.12.

Added

  • New --prefer-single-line option to use semicolons instead of newlines between top-level statements when there is no difference in output size. This doesn't make the output any smaller, but may be preferred.
  • Constant folding can now fold unary operators (e.g. -1, not True, ~0) in addition to binary operators.