A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-August/017066.html below:

[Python-Dev] PyObject_SetAttr - is it the only way types should set attributes?

[Python-Dev] PyObject_SetAttr - is it the only way types should set attributes? [Python-Dev] PyObject_SetAttr - is it the only way types should set attributes?Guido van Rossum guido@python.org
Wed, 15 Aug 2001 13:14:10 -0400
> C code can manipulate __dict__, too, right?  It's a pretty common
> idiom to get a module dictionary and use PyDict_SetItem().  

Yes -- always using the PyModule_GetDict() API.

> I'm also curious about the new type-class unification stuff.  Is it
> possible to modify a C object via something like a C struct and have
> that change be visible as a modified attrbute at the Python level?

Can you clarify this question?  I feel I should be qualified to answer
this but I don't understand the question...  Maybe an example would
help?

--Guido van Rossum (home page: http://www.python.org/~guido/)



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