Commit Graph

5 Commits

Author SHA1 Message Date
William S Fulton edbbe014f9 [Python] Accept str in the varargs example typemaps
The varargs and libffi typemap examples in the manual now convert a Python str
with PyUnicode_AsUTF8 instead of requiring a bytes object, so bring the matching
example interface files into line.

The libffi runme no longer needs byte string literals for the printf format
string, the printf arguments or the execlp arguments.

Assisted-by: Claude Code (Opus 5)
2026-08-10 22:42:57 +01:00
Julien Schueller b89050101d Python: Avoid compatibility macros 2026-07-06 23:50:30 +01:00
William S Fulton b3ca22dc33 Fix Python examples to compile and run under Python 3 2013-05-26 23:02:13 +01:00
Marcelo Matus 54737ee9a9 - recover the proper catching exception mechanism for classes
(throw typemap).

- fix the examples with exception problems and warnings

- proper and consist treatment of basic types (short, unsigned char,...)

  now all are checked for range and sign. Before, this was depending of
  the use of parsing or no parsing, and/or the converter method, and/or
  the use of directors, etc.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-21 01:15:10 +00:00
Dave Beazley 12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00