473,493 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Modifying PyObject.ob_type

I've got some fixed-size types with identical object layout defind in C.
The only differences are: Which methods they have, the name, and some
are subtypes of others.

Can I modify the ob_type of their instances, to switch between which of
these types an object has?

--
Hallvard
May 8 '06 #1
0 950

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1243
by: elho | last post by:
I called a own python type 'PyType' with a c function and returned it into my python programm - there it fault. It is said that the object has a NULL-Pointer when I try to debug it? Here are the...
1
1910
by: Allen | last post by:
I have the PyObject pointers, and want to set different type of values to them. For example, INT8 nValue1 = 0; INT16 nValue2 = 1; FLOAT32 fValue = 1.0f; PyObject* var1 <= nValue1
0
1576
by: Borse, Ganesh | last post by:
Hi, My following code is failing with an error of "isSizeSmall not function or callable" //--------------------------------------------------- char szExpr; memset(szExpr,'\0',sizeof(szExpr));...
1
5530
by: chris | last post by:
I want to check the type of an object, right now I am doing strcmp( object->ob_type->tp_name, "MyClass") Which seems slow, is there a way I can find the pointer to the global PyTypeObject for...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6873
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7367
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1400
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.