typo in the documentation or am I stupid?

T

Tommy.Ryding

In the embedding Python manual at Python.org an example is presented
that uses the function:
PyDict_GetAttrString. Is it possible that this is a typo?

I have searched the source code and I can't find it, I have also used
google and I only get 4 hits.

In for example Programming Python another function with similar name is
described: PyObject_GetAttrString. Could that be the one that fit into
the example?

Hopefully someone knows the answer to my question ;)

//Tommy

Link to the spot at Python.org:
http://docs.python.org/ext/pure-embedding.html
 
F

Fredrik Lundh

(e-mail address removed) wrote_
In the embedding Python manual at Python.org an example is presented
that uses the function:
PyDict_GetAttrString. Is it possible that this is a typo?

according to this checkin message ("fix stupid typo"), the answer is yes:

http://mail.python.org/pipermail/python-checkins/2005-October/047291.html

on the other hand, since the target is a module object, PyObject_GetAttrString
might be a better choice (no time to dig into this right now).

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top