5eb928356a
I've added shadow versions of many operators that didn't have one. And, I've changed the behavior of various binary operators with more or fewer than 2 arguments to make the shadow and real versions more consistent and to make the behavior more logical in either case. For details, see the additions to NEWS and the new file tests/native_tests/operators.hy, which simultaneously tests shadow and real operators. Although there are a lot of changes, I've put them all in one commit because they're interdependent.
26 lines
1005 B
Python
26 lines
1005 B
Python
|
|
import hy # noqa
|
|
from hy._compat import PY3
|
|
from .native_tests.cons import * # noqa
|
|
from .native_tests.defclass import * # noqa
|
|
from .native_tests.mathematics import * # noqa
|
|
from .native_tests.native_macros import * # noqa
|
|
from .native_tests.quote import * # noqa
|
|
from .native_tests.language import * # noqa
|
|
from .native_tests.unless import * # noqa
|
|
from .native_tests.when import * # noqa
|
|
from .native_tests.with_decorator import * # noqa
|
|
from .native_tests.core import * # noqa
|
|
from .native_tests.reader_macros import * # noqa
|
|
from .native_tests.operators import * # noqa
|
|
from .native_tests.with_test import * # noqa
|
|
from .native_tests.extra.anaphoric import * # noqa
|
|
from .native_tests.contrib.loop import * # noqa
|
|
from .native_tests.contrib.walk import * # noqa
|
|
from .native_tests.contrib.multi import * # noqa
|
|
from .native_tests.contrib.sequences import * # noqa
|
|
from .native_tests.contrib.hy_repr import * # noqa
|
|
|
|
if PY3:
|
|
from .native_tests.py3_only_tests import * # noqa
|