On Mon, Dec 1, 2014 at 5:48 PM, Francis Giraldeau < francis.giraldeau at gmail.com> wrote: > - On the C-API side: I did a horrible and silly function show_type() to > run every Py*_Check() to determine the type of a PyObject *. What would be > the sane way to do that? Questions like this are better asked on a users' forum, but you can get the type name from a python object as follows: Py_TYPE(obj)->tp_name -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20141201/b7ac6c1a/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4