Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 675
    • Issues 675
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPyPyPy
  • pypypypy
  • Merge requests
  • !294

don't capture "func" as a positional argument

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Bitbucket Importer requested to merge bitbucket/merged-pr-294 into branch/default Jan 02, 2015
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created originally on Bitbucket by Digenis (Nikolaos-Digenis Karagiannis)

Was already merged in Bitbucket before import, marked as merged by the import user

A problem with the signature of partial:

#!python

def __init__(self, func, *args, **keywords):

When creating a partial of a function that expects a keyword argument named "func" the keyword was treated as a duplicate of what used to be the positional argument "func" resulting in a type error

#!python

TypeError: __init__() got multiple values for keyword argument 'func'
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bitbucket/merged-pr-294