2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00
Victor Stinner a218babc8d Fix enum_type_object type on Python 3.11
The enum_type_object type inherits from PyLong_Type which is not tracked
by the GC. Instances doesn't have to be tracked by the GC: remove the
Py_TPFLAGS_HAVE_GC flag.

The Python C API documentation says:

    "To create a container type, the tp_flags field of the type object
    must include the Py_TPFLAGS_HAVE_GC and provide an implementation of
    the tp_traverse handler."

https://docs.python.org/dev/c-api/gcsupport.html

The new exception was introduced in Python 3.11 by:
https://github.com/python/cpython/issues/88429
2022-04-26 09:42:26 -04:00
2021-01-04 00:21:07 -05:00
2016-10-23 21:34:16 -04:00
2022-03-19 13:06:49 -04:00
2021-06-04 03:10:21 +03:00
2020-08-07 14:04:30 -04:00
2021-01-04 00:21:07 -05:00
2006-01-31 03:26:46 +00:00

logo

Synopsis

Join the chat at https://gitter.im/boostorg/python

Welcome to Boost.Python, a C++ library which enables seamless interoperability between C++ and the Python programming language. The library includes support for:

  • References and Pointers
  • Globally Registered Type Coercions
  • Automatic Cross-Module Type Conversions
  • Efficient Function Overloading
  • C++ to Python Exception Translation
  • Default Arguments
  • Keyword Arguments
  • Manipulating Python objects in C++
  • Exporting C++ Iterators as Python Iterators
  • Documentation Strings

See the Boost.Python documentation for details.

Hint : Check out the development version of the documentation to see work in progress.

Building Test Ubuntu Test OSX Test Windows

While Boost.Python is part of the Boost C++ Libraries super-project, and thus can be compiled as part of Boost, it can also be compiled and installed stand-alone, i.e. against a pre-installed Boost package.

Prerequisites

Build

Run

faber

to build the library.

Test

Run

faber test.report

to run the tests.

Build docs

Run

faber doc.html

to build the documentation.

Description
Mirrored via gitea-mirror
Readme 23 MiB
Languages
C++ 87.7%
Python 11.6%
CMake 0.3%
C 0.3%