En Wed, 14 Nov 2007 20:49:35 -0300, Martin v. Löwis <[EMAIL PROTECTED]>
escribió:
>> Is there any rules/criteria to decide when to use Py_ssize_t, int, or
>> long? I've seen them somewhat mixed and don't know when exactly to use
>> Py_ssize_t.
>
> You should use Py_ssize_t when you are counting
> Is there any rules/criteria to decide when to use Py_ssize_t, int, or
> long? I've seen them somewhat mixed and don't know when exactly to use
> Py_ssize_t.
You should use Py_ssize_t when you are counting things, and when there
is no small limit (e.g. 66536) to the maximum number of things you c
En Wed, 14 Nov 2007 05:36:04 -0300, Martin v. Löwis <[EMAIL PROTECTED]>
escribió:
>> When writing a python c extension for needs to be compiled for
>> Windows, Linux, and the Mac,
>> what cross-platform differences need to be accounted for?#
>
> Not functions, no, but macros and typedefs. For
> When writing a python c extension for needs to be compiled for
> Windows, Linux, and the Mac,
> what cross-platform differences need to be accounted for?#
>From a Python point of view, it's primarily the difference in the
size of types. For example, long may vary across platforms, and
so chan
Hi All,
When writing a python c extension for needs to be compiled for
Windows, Linux, and the Mac,
what cross-platform differences need to be accounted for? Are there
functions in the python api to deal with the differences? For
example, byte ordering, how is that controlled?
Thank