I am writing a Python extension in C , and I'm trying to figure out how to dynamically build and return a Python list using my extension. I know how to create a list of a given size using Py_BuildValue . Is there a way to create a list with Py_BuildValue and then add items to this list? Is there any other and better alternative?
How about using it PyList_Append, just like (link topology management and more) would you use .appendin Python?
PyList_Append
.append
list API, .
Source: https://habr.com/ru/post/1725764/More articles:How to implement a personalized debugger visualizer in VS2008 in an array using the WeakReference method? - arraysStart and end sections using two controls - Asp.net mvc - user-interfaceПроблема Entity Framework 4.0 POCO и многих-ко-многим - entity-frameworkmod_rewrite send anything that doesn't match rewriting - .htaccessHow to use Rich Text Editor for XUL application - tinymce2D rendering with pixel lighting / normal map - directX - c ++Why can't I resize my view controller in Interface Builder? - iphoneVSTO, Outlook.exe.config и - .netMFC GetClientRect и MoveWindow не сохраняют размер? - visual-c++What type of file do you recommend to play a really small video? - c #All Articles