Nuitka
The Python compiler
Loading...
Searching...
No Matches
sets.h
1// Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
2
3#ifndef __NUITKA_SETS_H__
4#define __NUITKA_SETS_H__
5
6// This is not Python headers before 3.10, but we use it in our assertions.
7#if PYTHON_VERSION < 0x3a0
8#define PySet_CheckExact(op) (Py_TYPE(op) == &PySet_Type)
9#endif
10
11#endif
12// Part of "Nuitka", an optimizing Python compiler that is compatible and
13// integrates with CPython, but also works on its own.
14//
15// Licensed under the Apache License, Version 2.0 (the "License");
16// you may not use this file except in compliance with the License.
17// You may obtain a copy of the License at
18//
19// http://www.apache.org/licenses/LICENSE-2.0
20//
21// Unless required by applicable law or agreed to in writing, software
22// distributed under the License is distributed on an "AS IS" BASIS,
23// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24// See the License for the specific language governing permissions and
25// limitations under the License.