[issue2921] enable embedding: declare/#define only py* symbols in #includes

2019-05-14 Thread STINNER Victor
STINNER Victor added the comment: Since this issue has been reported, a lot of work has been done to cleanup Python header files. In Python 3.8, we created Include/cpython/ and Include/internal/ subdirectories to clarify the intent and usage of header files. I close this issue. See

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2012-11-30 Thread Bruno Dupuis
Changes by Bruno Dupuis bdup...@lisael.org: -- nosy: +bruno.dupuis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2921 ___ ___ Python-bugs-list

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2010-11-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2921 ___ ___

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2010-08-09 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2921 ___ ___ Python-bugs-list

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2009-05-16 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Would this break existing code? Are the benefits worth it? -- nosy: +ajaksu2 priority: - normal versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2009-05-16 Thread Hallvard B Furuseth
Hallvard B Furuseth h.b.furus...@usit.uio.no added the comment: Daniel Diniz writes: Would this break existing code? Source code? Not if you use the PYTHON_NAMESPACE_ONLY trick. Old programs will receive all old definitions in addition to the new autoconf symbols, since they didn't #define

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2009-05-16 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Hallvard, There is ongoing discussion on separating public and private headers: http://groups.google.com/group/unladen-swallow/t/f3a89fc723411c49 Also see #2897, #4805, #5748 and #896330 for (sometimes slightly) related issues. --

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2008-05-20 Thread Hallvard B Furuseth
Hallvard B Furuseth [EMAIL PROTECTED] added the comment: Duh, I should of course have said defined(PY_HAVE_ACOSH) and not defined(HAVE_ACOSH), that was the whole point:-) And the puts() should print #define PY_HAVE_WHATEVER 1. Hopefully there are not too many #defines which would need to get

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2008-05-19 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth [EMAIL PROTECTED]: It can be cumbersome to embed Python in a program which also #includes a config.h from autoconf, because Python's and the program's autoconf macros may interfere with each other. Assuming it compiles at all, both could define the same

[issue2921] enable embedding: declare/#define only py* symbols in #includes

2008-05-19 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- components: +Interpreter Core -None __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2921 __ ___ Python-bugs-list