Advertisement
Lucas_Malor

Create an "empty" tuple non-singleton

Dec 8th, 2019
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. >>> from ctypes import c_ssize_t, pythonapi, py_object
  2. >>> PyTuple_New = pythonapi.PyTuple_New
  3. >>> PyTuple_New.restype = py_object
  4. >>> a = PyTuple_New(c_ssize_t(1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement