FAQ
Hello,

I am attempting to fully-simulate an 'int' object with a custom object type.
It is part of a library I am creating for python futures and promises. Is
there anyway such that type(my_object) can return <type 'int'>? Or for that
matter, any other primitive? I do not care how dirty the solution might
possibly be; Could there be a way through the C API? Though I predict it
will cause a mess with the interpreter.

Thanks,

Ken Elkabany
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090206/86425f34/attachment.htm>

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 6 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedFeb 6, '09 at 11:03a
activeFeb 8, '09 at 1:20p
posts6
users5
websitepython.org

People

Translate

site design / logo © 2022 Grokbase