py-backwards
py-backwards copied to clipboard
move runtime helpers into separate package
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(...)
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.
that module itself would be compiled with py_backwards, but all the transformers that require runtime helpers would have to be disabled.