Commit graph

18,992 commits

Author SHA1 Message Date
Karl Wette
290e2d3a5c octave: update manual and CHANGES.current 2016-02-07 20:22:39 +01:00
Karl Wette
125329466d octave: map unary functions to __...___ Python-style unary members
- Only available in Octave 3.8.0 and higher
2016-02-07 20:22:39 +01:00
Karl Wette
000ab753df octave: recognize Python __float__ numeric conversion operator 2016-02-07 20:22:39 +01:00
Karl Wette
697a1b7c9d octrun.swg: simplify unary operator calls in dims() and string_value() 2016-02-07 20:22:39 +01:00
Karl Wette
0dd16f92ab octrun.swg: make dispatch_[unary|binary|index]_op() const-qualified 2016-02-07 20:22:39 +01:00
Karl Wette
b93b1871a9 octave: export function swig_octave_prereq() for easily testing Octave version 2016-02-07 20:22:39 +01:00
Karl Wette
9f82bcee2a octave: update manual; Octave operators are __python__ style 2016-02-07 20:22:39 +01:00
William S Fulton
7270da08f4 Merge pull request #585 from tamuratak/master
Fix typo in Ruby docs
2016-02-07 13:19:27 +00:00
William S Fulton
4bbb1c915a Merge branch 'pjohangustavsson-patch-1'
* pjohangustavsson-patch-1:
  Add C# -namespace symbol fix into CHANGES
  Update csharp.cxx
2016-02-06 09:08:36 +00:00
William S Fulton
0cf59ff442 Add C# -namespace symbol fix into CHANGES 2016-02-06 09:07:23 +00:00
Johan Gustavsson
1458326f4c Update csharp.cxx
When people use the -namespace option, they often intend for the input to swig to wrap a particular namespace in a single module. This option should also have an effect on how C++ wrapper function names are mangled, and not just the C# proxy code.
2016-02-06 08:59:50 +00:00
William S Fulton
bb01ed3286 Merge branch 'ahnolds-classic_python'
* ahnolds-classic_python:
  Updating changelog and marking -classic as passing CI
  Support checking names of old-style classic classes
  Don't claim to new-style support in classic mode
  Clean up setting _object
  Removing __swig_getmethods__ for static methods
  Support python(pre|ap)pend on static methods in classic mode
  Add support for static methods in classic mode
  When possible, use PyInt rather than PyLong
2016-02-06 08:01:08 +00:00
William S Fulton
5c758f6972 Merge branch 'ahnolds-pyunicode_wstrings'
* ahnolds-pyunicode_wstrings:
  Documentation on Python Bytes/Unicode distinction
  Tests for Python Bytes/Unicode distinction
  Add support for Python Bytes/Unicode distinction
2016-02-06 07:57:30 +00:00
William S Fulton
439f049115 Merge pull request #606 from ahnolds/ruby2.3
Travis uses rvm, use it to install ruby 2.3.0
2016-02-06 07:56:33 +00:00
Alec Cooper
b83aa57a54 Travis uses rvm, use it to install ruby 2.3.0 2016-02-05 22:00:41 -05:00
William S Fulton
d06f2c9e92 Ruby 2.3 Travis tests requires Ubuntu Trusty 2016-02-05 06:56:49 +00:00
Alec Cooper
ba40c4a256 Documentation on Python Bytes/Unicode distinction 2016-02-04 21:07:40 -05:00
Alec Cooper
17a4143dd0 Tests for Python Bytes/Unicode distinction 2016-02-04 21:07:40 -05:00
Alec Cooper
33edfa4a62 Add support for Python Bytes/Unicode distinction 2016-02-04 20:16:41 -05:00
Alec Cooper
e67b9d00a4 Updating changelog and marking -classic as passing CI 2016-02-04 15:29:13 -05:00
Alec Cooper
acbe04b548 Support checking names of old-style classic classes 2016-02-04 15:27:54 -05:00
Alec Cooper
506a5bc8e6 Don't claim to new-style support in classic mode 2016-02-04 15:27:54 -05:00
Alec Cooper
475d03f195 Clean up setting _object
Don't bother setting _object in modern mode since it isn't used
Catch __builtin__.Exception rather than AttributeError since the check for
object hasn't been through something that would raise an AttributeError since
3d8ddfc4 in 2008
2016-02-04 15:27:54 -05:00
Alec Cooper
866429d0f7 Removing __swig_getmethods__ for static methods
Static methods will always be found by normal attribute lookup, so there's no
need to check for them during __getattr__ (aka _swig_getattr_nondynamic)
2016-02-04 15:27:54 -05:00
Alec Cooper
b45164e098 Support python(pre|ap)pend on static methods in classic mode
Adding a test that covers this case to the python_append test-suite
Note: staticmethod function has been available since Python 2.2
2016-02-04 15:27:54 -05:00
Alec Cooper
d91064aa6a Add support for static methods in classic mode 2016-02-04 15:27:54 -05:00
Alec Cooper
2e1595a4d0 When possible, use PyInt rather than PyLong
This is especially important for the unsigned long typemap, which is used by
the size_t typemap, which is in turn used for lengths of std containers etc.
In Python2, len requires old-style classes' __len__ method return a PyIntObject
rather than a PyLongObject, so this supports that requirement.
2016-02-04 15:27:54 -05:00
William S Fulton
8dcbbe8b6c Merge branch 'travis-ruby2.3'
* travis-ruby2.3:
  Disable tests broken in python 2.4 and 2.5
  Remove Travis 'gem pristine --all'
  Fix Travis Ruby gem pristine warnings
  Improve Ruby configure detection when multiple versions installed
  Use set -e in Travis scripts to ensure the scripts fail on error
  Travis: ensure the requested language version is being tested
  Add ruby-2.3 testing to Travis
2016-02-04 18:58:14 +00:00
William S Fulton
26d0b7f5b9 Disable tests broken in python 2.4 and 2.5
These tests were added in 2f8a7b82 and fc8e7654 in #572 and #573
but a change from a few months ago meant that the requested version of
Python was not actually being used during testing when these were added.
2016-02-04 08:36:58 +00:00
William S Fulton
b5b89c1294 Remove Travis 'gem pristine --all'
We'll have to live with the gem warnings
2016-02-04 08:36:26 +00:00
William S Fulton
a37fcb8f82 Fix Travis Ruby gem pristine warnings
Suppresses these for each example/test-suite:
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7
Ignoring nokogiri-1.6.6.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.6.2
2016-02-04 08:35:41 +00:00
William S Fulton
271ef9ab5c Improve Ruby configure detection when multiple versions installed 2016-02-04 08:35:41 +00:00
William S Fulton
dbdef93a0c Use set -e in Travis scripts to ensure the scripts fail on error 2016-02-04 08:35:07 +00:00
William S Fulton
97c138dbd8 Travis: ensure the requested language version is being tested
The various Python versions were not being tested
2016-02-04 08:32:30 +00:00
William S Fulton
42c140053e Add ruby-2.3 testing to Travis 2016-02-04 08:09:28 +00:00
Olly Betts
33c17b6d5e configure.ac: Stop probing for Python versions < 2.0 2016-02-03 12:06:05 +13:00
William S Fulton
2817e02e35 Merge branch 'ahnolds-clean_osx_go'
* ahnolds-clean_osx_go:
  Go test-suite should now work on OSX
  Don't write empty swigargs structs
  Fail if nocgo version fails
  Handle weak linking on OSX

Conflicts:
	CHANGES.current
2016-01-28 20:03:54 +00:00
Ian Lance Taylor
15b75a74c5 [Go] Ensure structs are properly packed between gc and GCC/clang.
From https://github.com/swig/swig/pull/262.
2016-01-27 15:51:13 -08:00
Olly Betts
344d10935e Whitespace cleanup 2016-01-27 19:05:03 +13:00
Olly Betts
33da19d2ea Fix comment typo 2016-01-27 19:04:18 +13:00
Olly Betts
72691e5a49 Clean up Python embed.i
Remove duplicate (aside from comment formatting) embed15.i.

Remove references to Python 1.5.

Tested and remarkably still works with Python 2.7, so update
documentation and comments to reflect that.
2016-01-27 19:01:49 +13:00
Olly Betts
bfe3adbd0a Remove lingering code for compatibility with Python < 1.6 2016-01-27 15:17:36 +13:00
William S Fulton
55f303d286 Merge pull request #584 from benmwebb/master
(Python) Qualify use of "__builtin__.Exception" class.
2016-01-23 23:24:34 +00:00
Alec Cooper
3a9f26045e Go test-suite should now work on OSX 2016-01-23 16:19:04 -05:00
Alec Cooper
1e7d3d1eb8 Don't write empty swigargs structs 2016-01-23 16:17:33 -05:00
Alec Cooper
14178be139 Fail if nocgo version fails 2016-01-23 16:17:33 -05:00
Alec Cooper
bec00500d6 Handle weak linking on OSX
If symbol is not defined at link time (even if it's weak/weak_import), the
linker must explicitly be told that's ok.
2016-01-23 16:16:00 -05:00
Takashi Tamura
d7f5215eb5 fix typo 2016-01-12 19:52:40 +09:00
Ben Webb
2a5bbb6018 Qualify use of "__builtin__.Exception" class.
It is possible that the module we're wrapping defines an Exception
class. This will confuse code that uses an unqualified "Exception"
class (e.g. "try: ... except Exception") since it now won't match
the Python builtin Exception. Fix this by explicitly using
the class from the __builtin__ module ("builtins" in Python 3).
2016-01-11 21:43:10 -08:00
Olly Betts
584b328239 Fix minor memory leak in Python module docstring handling
Noted in #582 by aurelj.
2016-01-12 13:49:55 +13:00