|
by: Simon Burton |
last post by:
In today's experiment, I was wondering if I could make the comparison
operators (<,<=,>=,>) work on classes (types) according to inheritance.
The idea is, for example, classes lower in the class...
|
by: T. Kaufmann |
last post by:
Hi there,
A simple but important question:
How can I initialize a super class (like dict) correctly in my subclass constructor?
A sample:
class MyClass(dict):
def __init__(self):
|
by: Gregory Bond |
last post by:
I'm building a class hierarchy that needs to keep as a class variable a
reference to a (non-member) function, so that different subclasses can
use different generator functions. But it seems...
|
by: Michael Maes |
last post by:
Hello,
I have a BaseClass and many Classes which all inherit (directly) from the BaseClass.
One of the functions in the BaseClass is to (de)serialize the (inherited) Class to/from disk.
...
|
by: ziman137 |
last post by:
Hi all,
I have a question here. What is the rationale behind ISO C++ for
Static Member Definition?
* ISO C++ forbids in-class definition/initialization of non-constant
static member...
|
|
by: Tamagafk |
last post by:
error_reporting(E_ALL);
class cls{
var $val;
function cls(){
$this->$val = 999;
}
}
$c = new cls;
With error_reporting set to E_ALL PHP floods me with notifications that
|
by: =?utf-8?B?5Lq66KiA6JC95pel5piv5aSp5rav77yM5pyb5p6B |
last post by:
I define the class like this:
class AAA:
counter = 0
def __init__(self):
pass
def counter_increase():
AAA.counter += 1
print "couter now :", AAA.counter
But how could I call the function...
|
by: Nathan Harmston |
last post by:
HI,
I posted this to sqlalchemy but didnt get a response, so I was
wondering if anyone on python-list could help me.
I m currently trying to build an api for a database and I really like
the...
|
by: tesvit |
last post by:
Hi there,
I am working on a class library that should incpect a given class,
make a delegate to a get Property and use it later on.
Here is the code snippet:
public delegate int...
|
by: King |
last post by:
I am new to python and getting into classes. Here I am trying to
create subtype of built in types with some additional attributes and
function. 'Attributes' is the main class and holds all the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
|
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,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
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 ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|