Argument helper for python program editor
AssigneeTexas Instruments Incorporated
InventorStephen Lindor Reid
Life of this patent
Estimating the term…
Abstract
A method for Python programming on a handheld device is provided that includes activating, by a Python program editor executing on the handheld device and responsive to programmer input, a first argument helper for a first parameter of a Python function, wherein the first argument helper includes first valid argument values for the first parameter, receiving, by the Python program editor, programmer selection of a first valid argument value of the first valid argument values, and displaying, by the Python program editor, the Python function with the first valid argument value in an editor screen.
Claims13
A method for Python programming on a handheld device, the method comprising:
- displaying, by a Python program editor in an editor screen, a Python function with a first indicator and a second indicator, wherein the first indicator indicates a first argument helper is available for activation for a first parameter of the Python function and the second indicator indicates a second argument helper for a second parameter of the Python function;
- activating, by the Python program editor executing on the handheld device and responsive to programmer input, the first argument helper for the first parameter of the Python function, wherein the first argument helper comprises first valid argument values for the first parameter;
- in response to the activating of the first argument helper, displaying, by the Python program editor, a first hint associated with a first valid argument value of the first valid argument values for the first parameter, wherein the first hint includes an explanation of the first valid argument value of the first valid argument values, wherein the explanation describes functionality associated with the first valid argument value of the first valid argument values;
- receiving, by the Python program editor, programmer selection of the first valid argument value of the first valid argument values;
- displaying, by the Python program editor, the Python function with the first valid argument value in the editor screen;
- prompting, by the Python program editor, an assignment of the Python function to a variable by placing an editor cursor at a beginning of a line that includes the Python function;
- and
- in response to the Python function including the assignment to the variable and no additional parameters are required for the Python function, placing, by the Python program editor, the editor cursor at an end of the line that includes the Python function.
A handheld device comprising:
- a non-transitory computer-readable medium storing software instructions for Python programming that are operable when executed to:
- display, by a Python program editor in an editor screen, a Python function with a first indicator and a second indicator, wherein the first indicator indicates a first argument helper is available for activation for a first parameter of the Python function and the second indicator indicates a second argument helper for a second parameter of the Python function;
- activate, by the Python program editor executing on the handheld device and responsive to programmer input, the first argument helper for the first parameter of the Python function, wherein the first argument helper comprises first valid argument values for the first parameter;
- in response to the activating of the first argument helper, display, by the Python program editor, a first hint associated with a first valid argument value of the first valid argument values for the first parameter, wherein the first hint includes an explanation of the first valid argument value of the first valid argument values, wherein the explanation describes functionality associated with the first valid argument value of the first valid argument values;
- receive, by the Python program editor, programmer selection of the first valid argument value of the first valid argument values;
- display, by the Python program editor, the Python function with the first valid argument value in the editor screen;
- in response to the Python function being unassigned to a variable, prompt, by the Python program editor, an assignment of the Python function to the variable by placing an editor cursor at a beginning of a line that includes the Python function;
- and
- in response to the Python function including the assignment to the variable and no additional parameters are required for the Python function, place, by the Python program editor, the editor cursor at an end of the line that includes the Python function;
- and
- at least one processor coupled to the non-transitory computer-readable medium to execute the software instructions.
Dependencies are inferred from the claim text.