This function returns True or False depending on the host platform. Examples: if check_impl_detail(): # only on CPython (default) if check_impl_detail(jython=True): # only on Jython if check_impl_detail(cpython=False): # everywhere except on CPy
(**guards)
| 1295 | # Use the following check to guard CPython's implementation-specific tests -- |
| 1296 | # or to run them only on the implementation(s) guarded by the arguments. |
| 1297 | def check_impl_detail(**guards): |
| 1298 | """This function returns True or False depending on the host platform. |
| 1299 | Examples: |
| 1300 | if check_impl_detail(): # only on CPython (default) |
| 1301 | if check_impl_detail(jython=True): # only on Jython |
| 1302 | if check_impl_detail(cpython=False): # everywhere except on CPython |
| 1303 | """ |
| 1304 | guards, default = _parse_guards(guards) |
| 1305 | return guards.get(sys.implementation.name, default) |
| 1306 | |
| 1307 | |
| 1308 | def no_tracing(func): |