Menu

PyCXX Python-C++ Connection / News: Recent posts

PyCXX V7.1.7 release

Add support for building against python 3.11 alpha 4.

This is Version 7.1.6 with README updates

Posted by Barry Alan Scott 2022-02-13

PyCXX V7.1.5 release

Version: 7.1.5 (21-feb-2021)

Replace use of deprecated PyUnicode APIs with the supported version.

The class Py::String functions that used deprecated PyUnicode APIs
that have no replacements are not available for python 3.9 and later:

const Py_UNICODE *unicode_data() const;
unicodestring as_unicodestring() const;

Replace build-all.sh and build-all.cmd with build-all.py that can handle the build matrix.
Add limited API builds for all possible combinations.... read more

Posted by Barry Alan Scott 2021-02-21

PyCXX V7.1.4 release

  • Add support for more number methods, like matrix and the inplace versions.
  • Use IsInstance checking so that derived classes of builtin types can be used.
  • Update Docs with recent changes.
  • Add support for python 3.9 beta 1 changes.
Posted by Barry Alan Scott 2020-05-31

PyCXX V7.1.3 releases

Fix for https://sourceforge.net/p/cxx/bugs/43/
memory leak caused by wrong ref count on python3 Py::String objects.

Remove support for supportPrint() etc as the tp_print field is
being removed from python either in 3.8 or 3.9.

Posted by Barry Alan Scott 2019-07-08

PyCXX V7.1.2 releases

Version: 7.1.2 (4-Mar-2019)

Fix problem with compiling for Python 2 and
the _Py_PackageContext symbol.

Posted by Barry Alan Scott 2019-03-04

Version: 7.1.1 (18-Feb-2019)

Add exception errorType() and errorValue() functions to access the type and value of an exception.

Posted by Barry Alan Scott 2019-02-18

PyCXX V7.1.0 Released

**Version: 7.1.0 (24-August-2018)
**
Can now build with Py_LIMITED_API, requires Python 3.4 or later.

Changes to support Python 3.7

Posted by Barry Alan Scott 2018-08-26

PyCXX V7.0.3 released

Version: 7.0.3 (23-April-2017)

Update Py::Long to support long long consitently between Python2 and Python3.

Posted by Barry Alan Scott 2017-04-23

PyCXX V7.0.2 released

Version: 7.0.2 (16-April-2017)

Add Py::Char ord() method to return the long value of a character.

Fix String::size() that could return twice the actual length.
This affected as_ucs4string() which would return a string with
its second half as uninitialised memory.

Fix setup.py for the Demo code to build all the required C++
code.

Posted by Barry Alan Scott 2017-04-16

PyCXX V7.0.1 Released

Version: 7.0.1 (29-Aug-2016)

Add extra methods to Py::String that as needed on Windows to support full unicode range of code points.

On Windows Python defines Py_UNICODE as unsigned short, which is too small to hold all Unicode values.

PyCXX has added to the Py::String API to support creationg from Py_UCS4 strings and converting Py::String() into Py::ucs4string objects.

Fix validate for Bytes to use the correct check function.

Posted by Barry Alan Scott 2016-09-07

PyCXX V7.0.0 Released

Version 7.0.0 (15-Aug-2016)

Warning: This version fixes a number of problems that require source incompatible changes.

However by defining PYCXX_6_2_COMPATIBILITY the V6.2.x API is restored.
This is not recommended for new code.

The first version of python3 that is supported is 3.3.

A special thanks goes to Benjamin Webb, working at the US Army
Engineer Research and Development Center, who has contributed to
the design and testing of this release. 7.0.0 is better for his work.... read more

Posted by Barry Alan Scott 2016-08-17

PyCXX V6.2.8 Released

Version 6.2.8 (10-May-2016)

  • Fix crash when a member function is called via callMemberFunction() and that function raises an exception.
  • Found in comment on StackOverFlow. Fix memory size allocated for new objects. It used the wrong size calculation, but was big enough to avoid problems.
Posted by Barry Alan Scott 2016-05-11

PyCXX V6.2.7 Released

Version 6.2.7 (28-Apr-2016)

  • Fix missing ptr__Unicode_Type.
  • Fixes from learn0more@gmail.com make python2 also remember the m_module and add accessor functions.
  • Fix for indirection issues from Vivian De Smedt.
  • Update to work with latest Microsoft Visual C++ for python 2.7. All test run in Win32 and Win64.
  • PyCXX.html documention has been updated, especially with 2TO3 information.
  • Use delete[] for objects allocated with new[].
Posted by Barry Alan Scott 2016-04-28

PyCXX V6.2.6 Released

Version 6.2.6 (4-Jan-2015)

Fix various compiler warning.

Fix incorrect use of NULL.

Fix conversion from (const char *) to (char *) is deprecated warning.

Posted by Barry Alan Scott 2015-01-04

PyCXX V6.2.5 Released

Version 6.2.5 (18-August-2013)

  • Fix build issue with GCC 4.2.1 on FreeBSD and Mac OS X (stop python defining isspace as a macro).
  • Remove support for python 3.1 (API's are unstable).
  • Add Python 3.3 support.
  • Patch from Michael Droettboom to fix compilation issues.
  • Patch from Michael Droettboom to add buffer interface for python3.
Posted by Barry Alan Scott 2013-08-18

PyCXX V6.2.4 Released

Version 6.2.4 (3-March-2012)

* Fix problem compiling against clang compiler used with Mac OS X 10.7
* Fix segv when using getting the type() of extension objects
* Support PEP 3149
* Support Python 3.2
* For python 3.1 and onwards use the Capsule API - thanks to Michael Droettboom
* Fixed memory leak - thanks to Vivian De Smedt
* Improve setup_makefile.py to use distutils to find paths

Posted by Barry Alan Scott 2012-03-03

PyCXX V6.2.2 Released

Version 6.2.2 (26-Dec-2010)

* Fix problem compiling against Python 3.1.3

Posted by Barry Alan Scott 2010-12-26

PyCXX V6.2.1 Released

Version 6.2.1 (15-Aug-2010)

* Add support for NotImplementedError
* Remove String() and Byte() c'tors that are not allowed by ISO C++ and where ambiguous

Posted by Barry Alan Scott 2010-08-15

PyCXX V6.2.0 Released

Version 6.2.0 (9-May-2010)

* Fix problems with new style classes.
* Replace all example makefile and project files with setup_makefile.py script.
* Add APIs to make calling python functions easier. See TupleN(), callOnSelf(), self()

Posted by Barry Alan Scott 2010-05-09

PyCXX V6.1.1 Released

PyCXX Version 6.1.1 (26-Sep-2009)

* Supports Python 3 starting at Python 3.1 and Python 2.
* Code clean up to fix compiler warnings reported by gcc 4.2.1 on Mac OS X when building for Python 3.

PyCXX Project page: https://sourceforge.net/projects/cxx/

Posted by Barry Alan Scott 2009-09-26

PyCXX V5.3.6 Released

This release adds support for Python 2.5
and the PY_LONG_LONG type for Py::Int().

Posted by Barry Alan Scott 2006-10-21

PyCXX Converted to Subversion

I have converted PyCXX from CVS to Subversion.
This will make it a lot easier to work on the
source with the subversion tools.

Posted by Barry Alan Scott 2006-03-07

PyCXX V5.3.5 Released

The release addresses build issues when using GCC 4.0.
GCC 4.0 generates new warns some of which are valid and fixed
but others that are just wrong (if then else warning of not all paths
return a value) are worked around.

Added new example make file for Mac OS X fink.

Posted by Barry Alan Scott 2005-10-02

PyCXX V5.2.0 Release

This is a maintenance release fixing a number of bugs and adding some minor features.

Posted by Barry Alan Scott 2003-11-27

V5.1-rc2

PyCXX V5.1 rc2 has been released. This version supports Python 1.5.2, 2.0.1, 2.1.1 and 2.2 beta.
Two bugs have been fixed since rc1.

Posted by Barry Alan Scott 2001-11-10