473,382 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

interesting take on python OO

http://www.evolt.org/article/OO_prog...on_way/18/449/

-----
The last article gives you the absolute basics of using Python. This
time, we'll do the OO side of Python. Yes, Python: a true object-
oriented language with classes, inheritance and all.

Ok, my OO background comes from the usual suspects of OO language, C+
+, Java and Object Pascal (Delphi). So I have this preconceived idea
about what Python OO should be. When I discover how OO is implemented
in Python, my first reaction was: "What the <expletiveis this
s#~! ?" My idealism about OO is offended by what Python does with
object and classes. It offers a new perspective on what can be done
with classes and object. Over time Python has grown on me, and now I
can really appreciate what it can do. So if you have the same reaction
as mine, keep reading. It will grow on you as well.
----

lol

May 31 '07 #1
3 1091
7stud a écrit :
http://www.evolt.org/article/OO_prog...on_way/18/449/

-----
The last article gives you the absolute basics of using Python. This
time, we'll do the OO side of Python. Yes, Python: a true object-
oriented language with classes, inheritance and all.

Ok, my OO background comes from the usual suspects of OO language, C+
+, Java and Object Pascal (Delphi). So I have this preconceived idea
about what Python OO should be. When I discover how OO is implemented
in Python, my first reaction was: "What the <expletiveis this
s#~! ?" My idealism about OO is offended by what Python does with
object and classes. It offers a new perspective on what can be done
with classes and object. Over time Python has grown on me, and now I
can really appreciate what it can do. So if you have the same reaction
as mine, keep reading. It will grow on you as well.
----

lol
<aol />

FWIW, I still don't get why people insist on believing that C++ and Java
have anything to do with OO !-)

(and yes, it's friday...)
Jun 1 '07 #2
On 2007-06-01, Bruno Desthuilliers <br********************@wtf.websiteburo.oops.comwr ote:
>
FWIW, I still don't get why people insist on believing that C++ and Java
have anything to do with OO !-)

(and yes, it's friday...)
Good marketing.

Albert
Jun 1 '07 #3
7stud wrote:
http://www.evolt.org/article/OO_prog...on_way/18/449/

lol
I would have to agree. I could spend time talking about how bad that
article was, but instead I will offer useful advice for the new Python
programmer.

For new users of Python and/or object-oriented programming, stick with
the Python Tutorial included with the Python distribution, and/or check
out http://www.ibiblio.org/obp/thinkCS/python/english/ . There are some
pieces that were obviously translated directly from Java, but it has a
lot of good stuff.
- Josiah
Jun 2 '07 #4

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

Similar topics

8
by: Bruno R. Dias | last post by:
Perhaps it would be interesting to program a virtual machine simulating an ancient computer (such as the pdp-7). Then, it would be rather interesting to code for it (porting gcc to it maybe?). I...
15
by: Nick Coghlan | last post by:
Thought some folks here might find this one interesting. No great revelations, just a fairly sensible piece on writing readable code :) The whole article:...
3
by: Johnny Lee | last post by:
Hi, Look at the follow command in python command line, See what's interesting?:) >>> class A: i = 0 >>> a = A() >>> b = A() >>> a.i = 1 >>> print a.i, b.i
0
by: vasudevram | last post by:
Saw a possibly interesting Python PDF library - pyPDF. For merging/splitting PDFs and related operations. It's at http://pybrary.net/pyPdf/ HTH Vasudev ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
40
by: nufuhsus | last post by:
Hello all, First let me appologise if this has been answered but I could not find an acurate answer to this interesting problem. If the following is true: C:\Python25\rg.py>python Python...
1
by: lilaz | last post by:
interesting python module with file find, grep and in-place search/substitute capabilities: scriptutil module intro
0
by: Gary Herron | last post by:
BEES INC wrote: Much simpler this way. This produces the number of whole start and the number of half stars: v = ... calculate the average ... whole = int(v+0.25) half =...
2
by: Nick Keighley | last post by:
On 20 Jun, 10:29, onkar.n.maha...@gmail.com wrote: no C is statically compiled. By the time it executes everything must be there and types are fixed. Dynamically linked libraries can...
7
by: Mensanator | last post by:
Beacuse in 2.6, Python apparently has fixed a discrepency that existed in previous versions. In the IDLE that comes with 2.5, typing "as", to wit "import random as ran", the words "import" and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.