Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > test if PyObject * points to real python object

Reply
Thread Tools

test if PyObject * points to real python object

 
 
David McNab
Guest
Posts: n/a
 
      06-19-2004
Hi,

With the Python/C API, how do i test if a given PyObject * actually
points to a real/valid python object?

--
Cheers
David

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      06-21-2004
David McNab wrote:
> With the Python/C API, how do i test if a given PyObject * actually
> points to a real/valid python object?


As opposed to being a NULL pointer? o != NULL

As opposed to being a stray pointer, to garbage memory? You can't.

Regards,
Martin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ object in PyObject*? Richard Python 1 03-15-2011 03:39 PM
Python C API (PyObject_CallMethod clear object) googler.1.webmaster@spamgourmet.com Python 4 01-26-2009 05:30 PM
what are PyObject *globals and PyObject *locals ? Olivier Sessink Python 0 02-24-2005 02:06 PM
Getting C++ object from PyObject * Nikolai Kirsebom Python 1 09-28-2003 06:46 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments