Skip to content

Instantly share code, notes, and snippets.

@demorise
demorise / PyUtils.cpp
Created April 4, 2022 14:39 — forked from rjzak/PyUtils.cpp
Convert between Python list/tuples and C++ vectors
#include <Python.h> // Must be first
#include <vector>
#include <stdexcept>
#include "PyUtils.h"
using namespace std;
// =====
// LISTS
// =====