Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • evolve evolve
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • mercurial
  • evolveevolve
  • Merge requests
  • !466

python-compat: adapt to Python 3.11 BC breakage with `random.sample`

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Raphaël Gomès requested to merge topic/stable/py3.11-compat into branch/stable Nov 19, 2022
  • Overview 0
  • Commits 1
  • Pipelines 2
  • Changes 1

As per https://docs.python.org/3/whatsnew/3.11.html#porting-to-python-3-11:

"The population parameter of random.sample() must be a sequence, and automatic conversion of sets to lists is no longer supported. Also, if the sample size is larger than the population size, a ValueError is raised"

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: topic/stable/py3.11-compat