473,466 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Python features

To which degree python language support features of following langauage
categories?

Imperative, Object Oriented, Scriptig or Functional.

Jul 19 '05 #1
8 1494
wa***@yahoo.com wrote:
To which degree python language support features of following langauage
categories?

Imperative, Object Oriented, Scriptig or Functional.


Sounds like a homework assignment to me.... How about your do some
research on your own, like the following:

google for "python" and "functional"; first link:
http://www-106.ibm.com/developerwork...ry/l-prog.html

google for "python" and "imperative"; 10th link:
http://www.everything2.com/index.pl?...ng%20languages

Quoting from that link:
There are three main types of programming languages.

* Imperative
* Functional
* Declarative

Imperative programming languages are the most commonly used languages.
Examples of this type of language are C, C++, Ada, Fortran, Algol, Java,
Python, Perl, and so on. Programming in an imperative language is
generally easier than in functional or declarative languages since it
involves a more linear process of solving problems. These languages have
been evolving more and more toward the object-oriented paradigm.

====
etc.

Python is Object Oriented and is described most often as scripting
language. (search left as an exercise).

Time required to find these links: about two minutes!

Total time spent by the thousands of people that will read your message
and this reply: say 1 minute * 1200 person / 60 (minutes/hour) = 20
person-hour....

André

Jul 19 '05 #2
On Sun, 08 May 2005 10:02:42 +0200, André Roberge
<an***********@gmail.com> wrote:

[...]
google for "python" and "functional"; first link:
http://www-106.ibm.com/developerwork...ry/l-prog.html
[...]
Imperative programming languages are the most commonly used languages.
Examples of this type of language are C, C++, Ada, Fortran, Algol, Java,
Python, Perl, and so on.


How about lambda construction? Isn't Python imperative language that
includes some functional mixins?

I mean -- can you say Python is fully imperative language?

If you want to redirect me to Google, don't bother. IMO ninety percent
of writings found on WWW is just a garbage.

--
http://www.peter.dembinski.prv.pl
Jul 19 '05 #3
In article <op***************@hector.domek>,
Peter Dembinski <pd***@gazeta.pl> wrote:


On Sun, 08 May 2005 10:02:42 +0200, André Roberge
<an***********@gmail.com> wrote:
Imperative programming languages are the most commonly used languages.
Examples of this type of language are C, C++, Ada, Fortran, Algol, Java,
Python, Perl, and so on.


How about lambda construction? Isn't Python imperative language that
includes some functional mixins?

I mean -- can you say Python is fully imperative language?


I don't know that "fully imperative" is necessarily meaningful.
We could say that Python supports statements which don't rebind a
variable to a value, but that doesn't seem helpful. You can do
things without side effects in Python, and you can use things in
a functional style like map, but the overall language more closely
reflects an imperative style, so we call it an imperative language.

Gary Duzan
BBN Technologies
Jul 19 '05 #4
> There are three main types of programming languages.

* Imperative
* Functional
* Declarative


animals are divided into:

* those that belong to the Emperor,
* embalmed ones,
* those that are trained,
* suckling pigs,
* mermaids,
* fabulous ones,
* stray dogs,
* those included in the present classification,
* those that tremble as if they were mad,
* innumerable ones,
* those drawn with a very fine camelhair brush,
* others,
* those that have just broken a flower vase,
* those that from a long way off look like flies.

Jul 19 '05 #5
Quoting from that link:
There are three main types of programming languages.

* Imperative
* Functional
* Declarative


Aren't functional languages a subset of declarative?

(c.f. http://en.wikipedia.org/wiki/Declarative_programming)

Jul 19 '05 #6
Peter Dembinski wrote:
If you want to redirect me to Google, don't bother. IMO ninety percent
of writings found on WWW is just a garbage.


Sturgeon's law: Ninety percent of everything is crap.
Andrew
da***@dalkescientific.com

Jul 19 '05 #7
Andrew Dalke wrote:
Peter Dembinski wrote:
If you want to redirect me to Google, don't bother. IMO ninety percent
of writings found on WWW is just a garbage.


Sturgeon's law: Ninety percent of everything is crap.


does that apply to sturgeon's law itself?

(fwiw, this is of course why google displays 10 results on the
first page. according to the law, one of them is always exactly
what you want).

</F>

Jul 19 '05 #8
"Fredrik Lundh" <fr*****@pythonware.com> writes:
does that apply to sturgeon's law itself?

(fwiw, this is of course why google displays 10 results on the
first page. according to the law, one of them is always exactly
what you want).


+ 1 QOTW :-)

--
# Edvard Majakari Software Engineer
# PGP PUBLIC KEY available Soli Deo Gloria!

$_ = '456476617264204d616a616b6172692c20612043687269737 469616e20'; print
join('',map{chr hex}(split/(\w{2})/)),uc substr(crypt(60281449,'es'),2,4),"\n";
Jul 19 '05 #9

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

Similar topics

54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
68
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
99
by: Shi Mu | last post by:
Got confused by the following code: >>> a >>> b >>> c {1: , ], 2: ]} >>> c.append(b.sort()) >>> c {1: , ], 2: , None]}
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
206
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
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...
0
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
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.