• Serhiy Storchaka's avatar
    bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) · 42a139ed
    Serhiy Storchaka yazdı
    Deprecated passing the following arguments as keyword arguments:
    
    - "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().
    
    Also allowed to pass arbitrary keyword arguments (even "self" and "func")
    if the above arguments are passed as positional argument.
    42a139ed
Adı
Son kayıt (commit)
Son güncelleme
..
2.0.rst Loading commit data...
2.1.rst Loading commit data...
2.2.rst Loading commit data...
2.3.rst Loading commit data...
2.4.rst Loading commit data...
2.5.rst Loading commit data...
2.6.rst Loading commit data...
2.7.rst Loading commit data...
3.0.rst Loading commit data...
3.1.rst Loading commit data...
3.2.rst Loading commit data...
3.3.rst Loading commit data...
3.4.rst Loading commit data...
3.5.rst Loading commit data...
3.6.rst Loading commit data...
3.7.rst Loading commit data...
3.8.rst Loading commit data...
changelog.rst Loading commit data...
index.rst Loading commit data...