Commit Graph

9 Commits

Author SHA1 Message Date
Adrien Boulanger
7a272ebf03 U305-023: Defensive code for the GIL
Trying to ensure/release the GIL when there is no interpreter will
raise an exception.

Change-Id: I4f85bfbfdd799b906848d2038b52825c4c709e54
2021-03-19 12:34:13 +01:00
Vadim Godunko
f83e315dfb T109-039 Protect calls to Python C API.
Change-Id: I96bd6fb7a4c7c5340b5c0f8d82ecb34ff682540e
2021-02-23 11:04:09 +03:00
Nicolas Roche
3b0c95c789 Revert addition of Python 3.x in python subdirectory
Python 3.x support will be located in python3

Part of S821-014

Change-Id: Ied856be8d18d1017015cd1f2d555c62519c89012
2020-02-07 10:26:11 +01:00
Nicolas Boulenguez
df6adc1367 python3 compatibility: integer types
Document that python3 removes PyInt functions.
Provide PyLong functions, available in all versions.
Add missing python3 PyInt_FromSize_t wrapper when python3 is in use.

Part of S821-014

Change-Id: I4f7cbe196be3b9f84f3d199f10f3740a844edf79
2020-02-07 10:26:06 +01:00
Nicolas Boulenguez
f7a390af96 python3 compatibility: string types
PyUnicode_FromString and _AsEncodedString are available as macros
since python2.6.

Part of S821-014

Change-Id: I89d35e530e146cc4251dbf877f37def003629dc8
2020-02-07 10:26:01 +01:00
Nicolas Boulenguez
533a2c3a96 python3 compatibility: PyObject structure members.
These macros are required for Python3, and available since python2.6.

Part of S821-014

Change-Id: I72dc83e6c9ba78e0586b4f3fcce86461093864b4
2020-02-07 10:25:58 +01:00
Nicolas Boulenguez
f47dbd0271 python3 compatibility: file interface
Document that python3 removes PyFile_FromString,
but provide a wrapper if python3 is in use.

Part of S821-014

Change-Id: I2aeeef23be667810a39004d028f16c60889e9656
2020-02-07 10:25:54 +01:00
Vadim Godunko
4b555a9c55 S306-049 Extend binding for PyFrameObject and PyCodeObject.
To be able to use them to process backtrace information.

Change-Id: I74f1e46338151267ffe632aa6520e7ff64df8cf2
2019-03-11 17:59:23 +03:00
Vasiliy Fofanov
a3cd16cb24 Initial version of gnatcoll-bindings module.
Part of major reorganization of gnatcoll for better modularity and
maintainability.

Change-Id: I24defa7165e4158987b147849882f4295a453da3
TN: P909-033
2017-10-29 15:53:38 +01:00