Название: Extending & Embedding Python Using C Автор: Mike James Издательство: I/O Press Год: 2023 Страниц: 265 Язык: английский Формат: pdf (true), epub Размер: 10.1 MB
Writing a C extension for Python is good for fun and profit!
The fun part is that adding Python to C gives you so much more power and a deeper understanding of how Python works. The internals of Python are worth knowing about because they suggest new approaches to other problems. As well as being interesting, it is also a valuable skill.
Extending & Embedding Python Using C tells you everything you need to know about the C API, which is what you use to create an extension. It is essentially the Python runtime and so exploring it tells you a lot about Python. You don’t need to be an expert Python programmer to create an extension, but it helps. As you are going to be writing mostly C code, programming in C is a more important skill for this task. While you don’t have to be a C expert, you do need to be reasonably competent and C aficionados will enjoy finding out about some of the clever techniques in use in the C API.
Extending Python is a way of bringing any C-based application or library to a much wider audience. Converting Python functions into C functions is also a way of speeding things up. Moreover, you can provide access to hardware or system features that are usually inaccessible by creating an extension. The final chapter explains how to convert the skills you have gained in creating a Python extension to embed Python in a C program. This is a less common requirement, but it has some interesting advantages and possibilities and once you know how to create a Python extension it is easy.
Beginning Python: From Novice to Professional Название: Beginning Python: From Novice to Professional Автор: Magnus Lie Hetland Издательство: Apress Год: 2006 Формат: PDF Страниц: 640 Для сайта:...
Python Developer’s Handbook Название: Python Developer’s Handbook Автор: Andre Dos Santos Lessa Издательство: Sams Publishing Год: 2002 Формат: PDF Страниц: 1481 Размер: 14,95...
Python 3 Programming: From Beginer to Expert Название: Python 3 Programming: From Beginer to Expert Автор: Nicholas Samuel Издательство: Independently published Год: 2017 Страниц: 168 Формат:...
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.