Python Forum
interfacing C with Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
interfacing C with Python
#1
starting to read up on interfacing C with Python. the first impression i get is that a lot of effort is being made to make Python bend down to the way C does things. i'd rather work with a API subset where C code must be coded Python-aware. a C function called from a Python script would get arguments in the form Python works with, with perhaps a set of C macros or functions that helps the C code work with it. the C code would then have to build the value to be returned and call a function to actually give them to be returned (else a return from C just returns a None). is there anything that does a C interface like this? all my intentions for C will be Python aware, or i will do the calls to unaware code in C.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
interfacing C with Python - by Skaperen - Aug-09-2021, 12:25 AM
RE: interfacing C with Python - by Gribouillis - Aug-09-2021, 08:50 AM
RE: interfacing C with Python - by Skaperen - Aug-10-2021, 12:52 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020