[Pkg-mailman-hackers] Bug#1088312: hyperkitty: autopkgtest failure with Python 3.13

s3v c0llapsed at yahoo.it
Tue Dec 10 17:30:48 GMT 2024


Dear Maintainer,

I think the failure is a direct consequence of [1].
argparse module in Python 3.13 modified argument parsing from the command line.

foo.py script:

 import argparse

 parser = argparse.ArgumentParser()
 parser.add_argument('-v', '--verbosity', default=0, type=int, choices=[0, 1],)
 parser.print_help()


$> python3.12 foo.py
usage: foo.py [-h] [-v {0,1}]

options:
  -h, --help            show this help message and exit
  -v {0,1}, --verbosity {0,1}


$> python3.13 foo.py
usage: foo.py [-h] [-v {0,1}]

options:
  -h, --help            show this help message and exit
  -v, --verbosity {0,1}


Kind Regards

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082209



More information about the Pkg-mailman-hackers mailing list