Up to [cvs.NetBSD.org] / pkgsrc / lang / python311
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
lang/python*: Use libreadline unconditionally. libedit breaks some applications. Maybe we can fix it later but for now let's just go back to using libreadline unconditionally like we did before. PKGREVISION++ because this materially affects the build product -- it built before this change but didn't work right for some applications. (No change to platforms without libedit -- which is most non-NetBSD platforms, probably -- but we don't have per-platform PKGREVISION, so gotta bump it for everyone.) No change to 2.7, 3.9, or 3.10 because they already use libreadline unconditionally; respecting READLINE_TYPE is a new change in >=3.11 since April which broke applications. ok jperkin PR pkg/58875: python: terminal colours broke in some applications
python311: Clean up recent readline addition. Now pkglint clean, no functional change.
Add option "readline" enabled by default. Either --with-readline=editline or --with-readline are added to CONFIGURE_ARGS depending on READLINE_TYPE.
python311 py311-html-docs: added version 3.11.0 Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite. See Faster CPython for details. New syntax features: PEP 654: Exception Groups and except* New built-in features: PEP 678: Exceptions can be enriched with notes New standard library modules: PEP 680: tomllib — Support for parsing TOML in the Standard Library Interpreter improvements: PEP 657: Fine-grained error locations in tracebacks New -P command line option and PYTHONSAFEPATH environment variable to disable automatically prepending potentially unsafe paths to sys.path New typing features: PEP 646: Variadic generics PEP 655: Marking individual TypedDict items as required or not-required PEP 673: Self type PEP 675: Arbitrary literal string type PEP 681: Data class transforms Important deprecations, removals and restrictions: PEP 594: Many legacy standard library modules have been deprecated and will be removed in Python 3.13 PEP 624: Py_UNICODE encoder APIs have been removed PEP 670: Macros converted to static inline functions