Python features

W

waqer

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

Imperative, Object Oriented, Scriptig or Functional.
 
?

=?ISO-8859-1?Q?Andr=E9_Roberge?=

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/developerworks/linux/library/l-prog.html

google for "python" and "imperative"; 10th link:
http://www.everything2.com/index.pl?node=programming languages

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é
 
P

Peter Dembinski

On Sun, 08 May 2005 10:02:42 +0200, André Roberge

[...]
google for "python" and "functional"; first link:
http://www-106.ibm.com/developerworks/linux/library/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.
 
G

Gary D. Duzan

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
 
D

david.tolpin

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.
 
A

Andrew Dalke

Peter said:
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
(e-mail address removed)
 
F

Fredrik Lundh

Andrew said:
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>
 
E

Edvard Majakari

Fredrik Lundh said:
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!

$_ = '456476617264204d616a616b6172692c20612043687269737469616e20'; print
join('',map{chr hex}(split/(\w{2})/)),uc substr(crypt(60281449,'es'),2,4),"\n";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,239
Messages
2,571,199
Members
47,834
Latest member
KristianEn

Latest Threads

Top