swig/Lib/python
Marcelo Matus 839f109a81 Better mapping of char[ANY] in python, including embedded
null chars, which are allowed in C++ and python, and proper
sizes:

  you can use a shorter string to assign a char[6]:

     x = "he\0l"  -> x := {'h','e',0,'l',0, 0}

  but you always get back in python the original size:

   x := {'h','i','0','0',0, 0} -> "hi\0\0\0\0"

Better mapping of (char*)0, now you get a None in the python
side, and using None, you get a (char*)0, just like
all the other C++ pointers. Before (char*)0 was mapped
into python as "", or as seg. faults.

Better mapping of "", which is not None nor (char*)0.

Added more tests using primitive types with simple templates.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-25 09:45:18 +00:00
..
cstring.i Fixed [ 651355 ] Syntax error with cstring.i 2003-02-07 22:13:11 +00:00
defarg.swg *** empty log message *** 2000-01-12 02:55:03 +00:00
director.swg Lateral change to add runtime "reprotection" at the python 2003-12-11 01:59:12 +00:00
embed.i Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 (symbol names): 2003-09-23 21:19:47 +00:00
embed15.i Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 (symbol names): 2003-09-23 21:19:47 +00:00
fragments.i The great merge 2002-11-30 22:01:28 +00:00
Makefile.in The great merge 2002-11-30 22:01:28 +00:00
precommon.swg Added pack/unpack functions 2003-12-08 18:07:36 +00:00
pyrun.swg Better mapping of char[ANY] in python, including embedded 2004-01-25 09:45:18 +00:00
python.swg Better mapping of char[ANY] in python, including embedded 2004-01-25 09:45:18 +00:00
pythonkw.swg added 'self' 2004-01-15 09:04:27 +00:00
std_common.i fix mixed type 2004-01-20 20:46:31 +00:00
std_complex.i small error fixes 2004-01-20 20:51:46 +00:00
std_deque.i The great merge 2002-11-30 22:01:28 +00:00
std_list.i Miscellaneous patches from users 2003-04-02 07:41:56 +00:00
std_map.i std::map ready for prime time (hopefully) 2003-03-11 15:38:02 +00:00
std_pair.i Fixed compilation problems, missing exception.i library. 2003-11-26 19:30:38 +00:00
std_string.i __DIRECTOR__ renamed Swig::Director 2003-09-22 20:13:42 +00:00
std_vector.i Char and unsigned-char specialization added 2003-11-19 08:38:27 +00:00
typemaps.i long long typemap mods for use with %apply 2003-03-06 23:28:01 +00:00