diff --git a/src/RestrictedPython/Utilities.py b/src/RestrictedPython/Utilities.py
index ad6a1eb..2abb2db 100644
--- a/src/RestrictedPython/Utilities.py
+++ b/src/RestrictedPython/Utilities.py
@@ -37,8 +37,8 @@ def same_type(arg1, *args):
     t = getattr(arg1, '__class__', type(arg1))
     for arg in args:
         if getattr(arg, '__class__', type(arg)) is not t:
-            return 0
-    return 1
+            return False
+    return True
 
 
 utility_builtins['same_type'] = same_type

`same_type` should return True resp. False
There is no need to return `1` resp. `0` since Python 2.3 we have `True` and `False`.
diff --git a/tests/builtins/test_utilities.py b/tests/builtins/test_utilities.py
index d6b0426..e35d1a6 100644
--- a/tests/builtins/test_utilities.py
+++ b/tests/builtins/test_utilities.py
@@ -76,7 +76,7 @@ def test_sametype_only_two_args_different():
 
     class Foo(object):
         pass
-    assert same_type(object(), Foo()) is 0
+    assert same_type(object(), Foo()) is False
 
 
 def test_sametype_only_multiple_args_same():
@@ -89,7 +89,7 @@ def test_sametype_only_multipe_args_one_different():
 
     class Foo(object):
         pass
-    assert same_type(object(), object(), Foo()) is 0
+    assert same_type(object(), object(), Foo()) is False
 
 
 def test_test_single_value_true():

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-mock
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
importlib-metadata==4.8.3
iniconfig==1.1.1
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
pytest-mock==3.6.1
-e git+https://github.com/zopefoundation/RestrictedPython.git@ecf62c5116663990c78795ab8b0969874e1bdb3c#egg=RestrictedPython
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: RestrictedPython
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - coverage==6.2
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/RestrictedPython

tests/builtins/test_utilities.py::test_sametype_only_two_args_different tests/builtins/test_utilities.py::test_sametype_only_multipe_args_one_different
tests/builtins/test_utilities.py::test_string_in_utility_builtins tests/builtins/test_utilities.py::test_math_in_utility_builtins tests/builtins/test_utilities.py::test_whrandom_in_utility_builtins tests/builtins/test_utilities.py::test_random_in_utility_builtins tests/builtins/test_utilities.py::test_set_in_utility_builtins tests/builtins/test_utilities.py::test_frozenset_in_utility_builtins tests/builtins/test_utilities.py::test_DateTime_in_utility_builtins_if_importable tests/builtins/test_utilities.py::test_same_type_in_utility_builtins tests/builtins/test_utilities.py::test_test_in_utility_builtins tests/builtins/test_utilities.py::test_reorder_in_utility_builtins tests/builtins/test_utilities.py::test_sametype_only_one_arg tests/builtins/test_utilities.py::test_sametype_only_two_args_same tests/builtins/test_utilities.py::test_sametype_only_multiple_args_same tests/builtins/test_utilities.py::test_test_single_value_true tests/builtins/test_utilities.py::test_test_single_value_False tests/builtins/test_utilities.py::test_test_even_values_first_true tests/builtins/test_utilities.py::test_test_even_values_not_first_true tests/builtins/test_utilities.py::test_test_odd_values_first_true tests/builtins/test_utilities.py::test_test_odd_values_not_first_true tests/builtins/test_utilities.py::test_test_odd_values_last_true tests/builtins/test_utilities.py::test_test_odd_values_last_false tests/builtins/test_utilities.py::test_reorder_with__None tests/builtins/test_utilities.py::test_reorder_with__not_None
src/RestrictedPython/Utilities.py
src/RestrictedPython/Utilities.py