|
Re: bug while wrapping const char arrays without an explicitly defined size: msg#00170programming.swig
David Beazley wrote: Oren Miller writes: Most of the PyObject API functions don't check for NULL pointers, and if you pass one, python crashes. Also, internally python uses 'int' for size, which means if you have a very large binary string python can't handle it. The extra SWIG_XXX methods check for null when needed and return you a plain pointer (not a python string) if the array size is larger than INT_MAX. -- Dave _______________________________________________ Swig maillist - Swig@xxxxxxxxxxxxxxx http://mailman.cs.uchicago.edu/mailman/listinfo/swig |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: bug while wrapping const char arrays without an explicitly defined size: 00170, Oren Miller |
|---|---|
| Next by Date: | Re: bug while wrapping const char arrays without an explicitly defined size: 00170, David Beazley |
| Previous by Thread: | bug while wrapping const char arrays without an explicitly defined sizei: 00170, David Beazley |
| Next by Thread: | Re: bug while wrapping const char arrays without an explicitly defined size: 00170, David Beazley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |