Skip to content

[3.7] bpo-36492: Fix passing special keyword arguments to some functions. (GH-12637) - #12645

Merged
serhiy-storchaka merged 1 commit into
python:3.7from
serhiy-storchaka:backport-42a139e-3.7
Apr 1, 2019
Merged

[3.7] bpo-36492: Fix passing special keyword arguments to some functions. (GH-12637)#12645
serhiy-storchaka merged 1 commit into
python:3.7from
serhiy-storchaka:backport-42a139e-3.7

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Apr 1, 2019

Copy link
Copy Markdown
Member

The following arguments can be passed as keyword arguments for passing
to other function if the corresponding required argument is passed as
positional:

  • "func" in functools.partialmethod(), weakref.finalize(),
    profile.Profile.runcall(), cProfile.Profile.runcall(),
    bdb.Bdb.runcall(), trace.Trace.runfunc() and
    curses.wrapper().
  • "function" in unittest.addModuleCleanup() and
    unittest.TestCase.addCleanup().
  • "fn" in the submit() method of concurrent.futures.ThreadPoolExecutor
    and concurrent.futures.ProcessPoolExecutor.
  • "callback" in contextlib.ExitStack.callback(),
    contextlib.AsyncExitStack.callback() and
    contextlib.AsyncExitStack.push_async_callback().
  • "c" and "typeid" in the create() method of multiprocessing.managers.Server
    and multiprocessing.managers.SharedMemoryServer.
  • "obj" in weakref.finalize().

(cherry picked from commit 42a139e)

https://bugs.python.org/issue36492

…ons. (pythonGH-12637)

The following arguments can be passed as keyword arguments for passing
to other function if the corresponding required argument is passed as
positional:

- "func" in functools.partialmethod(), weakref.finalize(),
  profile.Profile.runcall(), cProfile.Profile.runcall(),
  bdb.Bdb.runcall(), trace.Trace.runfunc() and
  curses.wrapper().
- "function" in unittest.addModuleCleanup() and
  unittest.TestCase.addCleanup().
- "fn" in the submit() method of concurrent.futures.ThreadPoolExecutor
  and concurrent.futures.ProcessPoolExecutor.
- "callback" in contextlib.ExitStack.callback(),
  contextlib.AsyncExitStack.callback() and
  contextlib.AsyncExitStack.push_async_callback().
- "c" and "typeid" in the create() method of multiprocessing.managers.Server
  and multiprocessing.managers.SharedMemoryServer.
- "obj" in weakref.finalize().

(cherry picked from commit 42a139e)
@serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Apr 1, 2019
@serhiy-storchaka
serhiy-storchaka merged commit a37f356 into python:3.7 Apr 1, 2019
@serhiy-storchaka
serhiy-storchaka deleted the backport-42a139e-3.7 branch April 1, 2019 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants