py-backwards icon indicating copy to clipboard operation
py-backwards copied to clipboard

move runtime helpers into separate package

Open graingert opened this issue 8 years ago • 2 comments

def _py_backwards_merge_dicts(dicts):
    result = {}
    for dict_ in dicts:
        result.update(dict_)
    return result

_py_backwards_merge_dicts(...)

could be

import py_backwards_some_module_name as _py_backwards

 _py_backwards.merge_dicts(...)

graingert avatar Jun 05 '17 17:06 graingert

It can't be part of py_backwards package, because it's not possible to install py_backwards on python < 3.3.

I think it would be better to have something like py_backwards_runtime or py_backwards_polyfill.

nvbn avatar Jun 06 '17 08:06 nvbn

that module itself would be compiled with py_backwards, but all the transformers that require runtime helpers would have to be disabled.

graingert avatar Jun 06 '17 09:06 graingert