2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00
Moritz Wanzenböck ed4776b59c Add missing return statement in numpy import
This adds a missing return statement in the python3 specific
import logic of boost.python.numpy.

For python3 wrap_import_array() needs to return a pointer value.
The import_array() macro only returns NULL in case of error. The
missing return statement is UB, so the compiler can assume it does
not happen. This means the compiler can assume the error branch
is always taken, so import_array must always fail.
2018-07-11 16:40:19 -04:00
2018-03-07 15:09:02 -05:00
2016-10-23 21:34:16 -04:00
2015-08-05 07:14:37 -04:00
2018-03-09 13:08:07 -05:00
2018-04-08 18:21:22 -04:00
2018-04-17 20:41:17 -04:00
2018-03-07 15:09:02 -05:00
2018-03-15 15:29:06 -04:00
2018-05-03 10:19:01 -04: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 Build Status Build status

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 22 MiB
Languages
C++ 87.7%
Python 11.6%
CMake 0.3%
C 0.3%