Changeset 1820:2a6cad87b143


Ignore:
Timestamp:
Jun 18, 2019, 10:34:06 PM (4 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Improve `Call` constructor API

- Put `result` after `args` and `kwargs` because we first pass
  the arguments and then get a result.

- Make all arguments but `method_name` keyword-only arguments
  to avoid confusion.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/scripted_session.py

    r1817 r1820  
    1111class Call:
    1212
    13     def __init__(self, method_name, result=None, args=None, kwargs=None):
     13    def __init__(self, method_name, *, args=None, kwargs=None, result=None):
    1414        self.method_name = method_name
    1515        self.result = result
Note: See TracChangeset for help on using the changeset viewer.