how to determine for using c extension or not ?

Joel Goldstick joel.goldstick at gmail.com
Mon Aug 3 15:22:39 CEST 2015


On Mon, Aug 3, 2015 at 9:08 AM, umedoblock <umedoblock at gmail.com> wrote:
> Hello everyone.
>
> I use bisect module.
> bisect module developer give us c extension as _bisect.
>
> If Python3.3 use _bisect, _bisect override his functions in bisect.py.
>
> now, I use id() function to determine for using c extension or not.
>
>>>> import bisect
>>>> id(bisect.bisect)
> 139679893708880
>>>> import _bisect
>>>> id(_bisect.bisect)
> 139679893708880
>
> they return 139679893708880 as id.
> so i believe that i use c extension.
>
> My check is correct ? right ?
> or you have more good idea ?
> --
> https://mail.python.org/mailman/listinfo/python-list

I don't know the answer to your question, but repeating it will not
help you get an answer more quickly.  This is a voluntary mailing
list.  If someone can help you, you will probably see a response
within a few hours or a few days.

-- 
Joel Goldstick
http://joelgoldstick.com


More information about the Python-list mailing list