Skip to content

Commit

Permalink
Document some language facilities available in our py3.6 baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarshall committed Jul 23, 2024
1 parent 3ffae05 commit 0ad4778
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/developer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ directories:
:file:`import.py` about importing.


Python language level
=====================

Pysam currently requires Python 3.6 as a minimum language level.
For example, this means that the following comparatively recent
language features and library functions are available for use:

* f-strings
* ``raise ... from None``
* :meth:`str.startswith`, :meth:`str.endswith`, :meth:`str.rstrip`, etc

However in particular the the following should not be used in
pysam source code or infrastructure scripts:

* :meth:`str.removeprefix`, :meth:`str.removesuffix` (new in 3.9)
* walrus ``:=`` operator (new in 3.8)


Importing new versions of htslib and samtools
=============================================

Expand Down

0 comments on commit 0ad4778

Please sign in to comment.