Python 3.12.3 (main, Jan 17 2025, 18:03:48) [GCC 13.3.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.31.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from vcf import VCFReader
In [2]: reader = VCFReader()
/home/dlawrence/localwork/variantgrid/env/lib/python3.12/site-packages/vcf/parser.py:380: SyntaxWarning: invalid escape sequence '\['
self._alt_pattern = re.compile("[\[\]]")
/home/dlawrence/localwork/variantgrid/env/lib/python3.12/site-packages/vcf/parser.py:654: SyntaxWarning: invalid escape sequence '\['
remoteOrientation = re.search("\[", str) is not None
In 3.12 this now gives a visible warning: