Automatic keyword argument source change?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jorjun

    Automatic keyword argument source change?

    Anyone know of a Python source code utility PSU, to automatically add
    keyword arguments to method calls that don't have them? :

    BEFORE

    def get_total(books , binders, hinges):
    return (binders.total + hinges.total - books.cost)

    def print_total():
    print get_total(novel s, covers, brackets)

    AFTER

    .....

    def print_total():
    -- print get_total(novel s, covers, brackets)
    ++ print get_total(books =novels, binders=covers, hinges=brackets )

Working...