Sha

Other uses 523

Using 1940s-Era Encryption 523

Chapter 29: Writing Extension Modules 527

Extending and Embedding Overview 527

Writing a Simple Extension Module 528

Building and Linking 531

Converting Python Data to C 532

Unpacking normal arguments 532

Using special format characters 535

Unpacking keyword arguments 537

Unpacking zero arguments 538

Converting C Data to Python 538

Creating simple Python objects 539

Creating complex Python objects 540

Embedding the Interpreter 541

A simple example 541

Shutting down 541

Other setup functions 542

System information functions 542

Running Python Code from C 543

Using Extension Tools 546

Was this article helpful?

0 0

Post a comment