[C++-sig] Boost class to represent PyBytesObject ?

Alain O' Miniussi alain.miniussi at oca.eu
Thu Jun 11 09:28:44 EDT 2020


Hi,

The pickle API has changed between Python 2 and 3, moving from str (represented by the boost::python::str class) to bytes.
For serialization purpose, I need to represent the Python's bytes (PyBytesObject in C) type in C++. 
What would be the the best type to extract<waht?> to ?

Thank
  
----
Alain Miniussi
DSI, Pôles Calcul et Genie Log.
Observatoire de la Côte d'Azur
Tél. : +33492003009 (Mont-Gros)
       +33483618544 (Sophia Antipolis)
       +33609650665


More information about the Cplusplus-sig mailing list