John Zwinck
b2f53e1acf
exec/eval(): add overloads for char const*
...
Many times the caller may have a string created in C++,
so there is no need to wrap it in a Python object when
the only thing done with the object is extract<char*>.
2017-05-04 19:29:56 -04:00
Stefan Seefeld
99022d2eb8
Merge branch 'develop'
2015-06-30 18:09:40 -04:00
Andrey Semashev
eefc434bae
Use _Py_fopen instead of fopen
...
A followup fix for the previous commit 36f8f69411 .
2015-05-06 15:29:42 +03:00
Andrey Semashev
36f8f69411
Fix compilation with python 3.0-3.3
...
Backport commit 3e405b6fd5 to develop branch: Fix exec_file for Python 3 < 3.4. Also fix version check to actually fix compilation with python 3.4.
2015-05-06 15:06:29 +03:00
Stefan Seefeld
3e405b6fd5
Fix exec_file for Python 3 < 3.4.
2015-04-09 08:57:08 -04:00
Mikhail Matrosov
fe24ab9dd5
[ #8058 ] Close file handle before exec_file() routine returns.
2015-03-11 01:11:54 +03:00
Mikhail Matrosov
a911c17fd6
[ #11100 ] Fix binary incompatibilities with fopen() in exec_file() routine.
2015-03-11 01:11:54 +03:00
Ralf W. Grosse-Kunstleve
37b45d2baf
merging current boost/python and libs/python from trunk into release branch
...
[SVN r61033]
2010-04-04 05:19:57 +00:00
Ralf W. Grosse-Kunstleve
65e74ccf1e
boost/python/object_core.hpp: new .is_none() member function
...
[SVN r60625]
2010-03-15 22:00:30 +00:00
Ralf W. Grosse-Kunstleve
89100353db
boost/python, libs/python: all changes from trunk merged into branches/release
...
[SVN r56806]
2009-10-13 22:37:59 +00:00
Stefan Seefeld
ef2a02c396
Merged 2009 GSoC work from sandbox-branches/bhy/py3k branch back into trunk.
...
[SVN r56305]
2009-09-19 02:32:41 +00:00
Ralf W. Grosse-Kunstleve
d685a5e8c5
python library: sync with trunk to adopt recent exec.cpp fixes
...
[SVN r55642]
2009-08-18 01:08:46 +00:00
Ralf W. Grosse-Kunstleve
8d2ca93e98
libs/python/src/exec.cpp: bug fixes
...
Remark:
operator!() for boost::python::object invokes PyObject_IsTrue()
and is therefore not equivalent to "is None".
In this particular case !global or !local returns true for an
empty dict.
(Changes to libs/python/test/exec.cpp just helped in debugging.)
[SVN r55639]
2009-08-18 00:24:54 +00:00
Ralf W. Grosse-Kunstleve
e80224b1ad
boost/python, libs/python: all changes from trunk merged into branches/release (without any manual modifications)
...
Commands used:
svn merge https://svn.boost.org/svn/boost/branches/release/boost/python https://svn.boost.org/svn/boost/trunk/boost/python /net/chevy/raid1/rwgk/boost_release/merge_attempt/boost/boost/python
svn merge https://svn.boost.org/svn/boost/branches/release/libs/python https://svn.boost.org/svn/boost/trunk/libs/python /net/chevy/raid1/rwgk/boost_release/merge_attempt/boost/libs/python
svn, version 1.6.4 (r38063)
compiled Aug 17 2009, 13:31:03
[SVN r55629]
2009-08-17 21:01:18 +00:00
Stefan Seefeld
3c98a72153
Use appropriate default values for global and local dicts.
...
[SVN r53936]
2009-06-15 14:53:48 +00:00
Dave Abrahams
0d81eb6695
Boost.Python:
...
* Workarounds for many SunCC 5.9 bugs
* Suppression of many SunCC 5.9 warnings
* Improve the style of some test invocations in Jamfile
[SVN r41521]
2007-12-01 02:15:17 +00:00
Stefan Seefeld
b130c93af6
Backport new eval() function from HEAD.
...
[SVN r37693]
2007-05-15 13:43:52 +00:00
Stefan Seefeld
fe23d9885f
Add new eval() function.
...
[SVN r37560]
2007-05-02 13:11:20 +00:00
Stefan Seefeld
ca91dc828e
Fix symbol visibility.
...
[SVN r35754]
2006-10-27 21:19:47 +00:00
Stefan Seefeld
a74c8e3da3
Fix symbol visibility.
...
[SVN r35754]
2006-10-27 21:19:47 +00:00
Gennaro Prota
ecf70b05f2
(merge from head)
...
removed tabs (inspect tool)
[SVN r34721]
2006-07-24 22:21:39 +00:00
Gennaro Prota
f240e0bab6
removed tabs (inspect tool)
...
[SVN r34720]
2006-07-24 22:20:25 +00:00
Stefan Seefeld
126a3efb92
Add basic embedding support.
...
[SVN r30601]
2005-08-17 13:04:42 +00:00