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

Home Posts Topics Members FAQ

What is object()

hi,
i was reading library refrence manual. there i found
object() function. they says in library refrence that
"Return a new featureless object. object() is
a base for all new style classes. It has the methods
that are common to all instances of new style
classes."

My questions are whats the use of this function and
the object returned by it? and what are new style
classes?.

Thanks,
Hameed Khan

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

Jul 18 '05 #1
6 1894
In article <ma**************************************@python.o rg>,
Hameed Khan <ha*********@yahoo.com> wrote:

i was reading library refrence manual. there i found
object() function. they says in library refrence that
"Return a new featureless object. object() is
a base for all new style classes. It has the methods
that are common to all instances of new style
classes."
There's not much use for an instance of object. Don't worry about it.
My questions are whats the use of this function and
the object returned by it? and what are new style
classes?.


http://www.python.org/2.2.3/descrintro.html
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

A: No.
Q: Is top-posting okay?
Jul 18 '05 #2
"Aahz" <aa**@pythoncraft.com> wrote in message
news:bu**********@panix1.panix.com...
In article <ma**************************************@python.o rg>,
Hameed Khan <ha*********@yahoo.com> wrote:

i was reading library refrence manual. there i found
object() function. they says in library refrence that
"Return a new featureless object. object() is
a base for all new style classes. It has the methods
that are common to all instances of new style
classes."
There's not much use for an instance of object. Don't worry about it.


Unless, of course, you're using the __new__() method.

John Roth
--
Aahz (aa**@pythoncraft.com) <*>

http://www.pythoncraft.com/
Jul 18 '05 #3
In article <bu**********@panix1.panix.com>, aa**@pythoncraft.com (Aahz)
wrote:
i was reading library refrence manual. there i found
object() function. they says in library refrence that
"Return a new featureless object. object() is
a base for all new style classes. It has the methods
that are common to all instances of new style
classes."


There's not much use for an instance of object. Don't worry about it.


It can be useful when you want something that is guaranteed to be
different from all other objects and has no other purpose than existing
and being different.

Beyond that somewhat specialized use, object exists to be subclassed,
not instantiated directly.

--
David Eppstein http://www.ics.uci.edu/~eppstein/
Univ. of California, Irvine, School of Information & Computer Science
Jul 18 '05 #4
In article <10*************@news.supernews.com>,
John Roth <ne********@jhrothjr.com> wrote:
"Aahz" <aa**@pythoncraft.com> wrote in message
news:bu**********@panix1.panix.com...
In article <ma**************************************@python.o rg>,
Hameed Khan <ha*********@yahoo.com> wrote:

i was reading library refrence manual. there i found
object() function. they says in library refrence that
"Return a new featureless object. object() is
a base for all new style classes. It has the methods
that are common to all instances of new style
classes."


There's not much use for an instance of object. Don't worry about it.


Unless, of course, you're using the __new__() method.


"Not much" != "none" ;-)
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

A: No.
Q: Is top-posting okay?
Jul 18 '05 #5
Aahz wrote:
Unless, of course, you're using the __new__() method.


"Not much" != "none" ;-)


"Not much" >= "none" ;-)
Because none is not much ;-)

yours,
Gerrit.

--
211. If a woman of the free class lose her child by a blow, he shall
pay five shekels in money.
-- 1780 BC, Hammurabi, Code of Law
--
PrePEP: Builtin path type
http://people.nl.linux.org/~gerrit/c.../pep-xxxx.html
Asperger's Syndrome - a personal approach:
http://people.nl.linux.org/~gerrit/english/

Jul 18 '05 #6
Gerrit Holl <ge****@nl.linux.org> wrote in message news:<ma**************************************@pyt hon.org>...
Aahz wrote:
Unless, of course, you're using the __new__() method.


"Not much" != "none" ;-)


"Not much" >= "none" ;-)
Because none is not much ;-)


No, "Not much" < "none", because the comparison is case-sensitive.
However, it is True that "not much" >= "none" and "Not much" >= None
;-)
Jul 18 '05 #7

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

Similar topics

6
by: NewToDotNet | last post by:
I am getting "Object reference not set to an instance of an object. " when I attempt to open a C# windows service class in design view, although I was able to initially create the service and open...
1
by: Dan | last post by:
All, I am working on an application that allows users to track various items for various clients. For example Client A may have an object Box where Client B has an object Canister. When a user...
2
by: MFRASER | last post by:
How can I tell what object type is dropped onto my control? Here is a snippet of code. private void lvwTasks_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) { //I want to...
3
by: nemo | last post by:
Hi, My application works fine on the localhost but spits this error as soon as I put it on the server. I know this error occurs when an object has not been instantiated prior to a reference, but...
4
by: Luke Matuszewski | last post by:
Here are some questions that i am interested about and wanted to here an explanation/discussion: 1. (general) Is the objectness in JavaScript was supported from the very first version of it (in...
11
by: Kevin Prichard | last post by:
Hi all, I've recently been following the object-oriented techiques discussed here and have been testing them for use in a web application. There is problem that I'd like to discuss with you...
6
by: Clark Sann | last post by:
Can someone help me understand what object should be used as the lock object? I've seen some programs that use Monitor.Enter(Me). Then, in those same programs, they sometimes use another object. ...
4
by: marcosnogood | last post by:
Hello, I need to dynamically load an activex object because what object to load is based on certain conditions. Also I need to wait for the object to have initialized before moving on. What I...
2
by: newlearner | last post by:
hi all, what object to create in firefox to access a file in the client system. Looking forward ... Thanks in advance for the reply..
1
by: tshad | last post by:
I am use the MouseUp event to tell me which row in my DataGrid (EmailDataGrid) was selected - as follows: *********************************************************** Private Sub...
0
marktang
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,...
0
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
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
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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.