Nuitka
The Python compiler
Loading...
Searching...
No Matches
sets.h
1// Copyright 2026, 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
13// Part of "Nuitka", an optimizing Python compiler that is compatible and
14// integrates with CPython, but also works on its own.
15//
16// Licensed under the GNU Affero General Public License, Version 3 (the "License");
17// you may not use this file except in compliance with the License.
18// You may obtain a copy of the License at
19//
20// http://www.gnu.org/licenses/agpl.txt
21//
22// Unless required by applicable law or agreed to in writing, software
23// distributed under the License is distributed on an "AS IS" BASIS,
24// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25// See the License for the specific language governing permissions and
26// limitations under the License.