Talk:Python (programming language)/Archive 1

message: From what I read, Python has inheritance but no access control (public, private,...). Can someone ellaborate on OOP in Python? -- Error
:Python has inheritance, including multiple inheritance. It has limited support for private variables using name mangling. See the "Classes" section of the tutorial for details.
:From the tutorial: As is true for modules, classes in Python do not put an absolute barrier between definition and user, but rather rely on the politeness of the user not to "break into the definition."
:OOP doctrines such as the use of accessor methods to read data members are not enforced in Python. Just as Python offers functional programming constructs but does not attempt to demand referential transparency (contra Scheme), it offers (and extensively uses!) its object system but does not demand OOP behavior (contra Java). --FOo 04:58, 2 Sep 2003 (UTC)
thread_title: Inheritance

message: Now this is a beautifully written page with very high technical value. I am afraid though that there is 
a little bit of personal oppinion in the philosophy section (and that seems almost normal :)
By judging the comments my point of view was confirmed. For what seems to be the technical influence between Perl and Python there is IMHO more than enough evidence to claim a relationship.
When it comes to the point of view of the users I think it might be a good idea to outline that there are two groups of people, myself being part of the second one, and I would love if this second group could be mentioned in this article. My idea would be to write something as follows: 
"It is interesting to notice that given the aforementioned similarities [between Perl and Python] there are some who consider them very much different in style and quality. Some others like both languages for their qualities and would rather prefer to see the two languages evolve together".
But great work, really great work.
Robert Dober robert.dober@free.fr 195.167.202.147 16:39, 1 Jun 2004 (UTC)
thread_title:  Are there enough users who like both to mention them in this article? 

message: Hi, Pythoners. Over at object oriented programming, I wrote the following:
 Python and Ruby are relatively recent languages that were built from the ground up with OOP...
I have recently read some conflicting statements about object based functionality only being added in version 2.2. Over at python.org, I was't able to find anything that specifically mentioned whether or not object orientation was in the language from the beginning. Would anyone know? Thanks. AdmN 21:16, 26 Aug 2004 (UTC)
replies: text: AFAIK, Python was object oriented from the start, or at least from very early on. However, types (int, str, etc) and user classes were separate things (e.g. you couldn't make a class that inherited from int) until 2.2. Fredrik | talk 21:26, 26 Aug 2004 (UTC)
thread_title:  Python History 

message: Shouldn't be Parrot, the common framework for Python and Perl be mentioned ? 
Maybe it's an attempt of Perl to devour Python, maybe it's just a joke... However, it received attention of several important programmers.  For instance, Perl creator.
Hgfernan 22:38, 4 Sep 2004 (UTC)
thread_title:  What about Parrot ? 

message: It is possible that my last edit didn't improve the article in all respects. Comments would be welcome.
Three lines were removed; I'll motivate why here:
* A comparison between C++ and Python with a lengthy example.
**The above article is unencyclopedic. I'm going to list it on VfD.
*** Followup: after vfd discussion I moved Python vs C Plus Plus example to Talk:Python programming language/Python vs C Plus Plus example, and talk:Python vs C Plus Plus example to Talk:Python programming language/Talk:Python vs C Plus Plus example. Hth, Wile E. Heresiarch 05:22, 1 Oct 2004 (UTC)
thread_title:  Adventurous editing 

message: I think it's about time that we move this page to Python. 9 out of Google's top 10 hits for the word "python" is to the language and the other one is for Monty Python. The real life snake just isn't interesting enough. Eric B. and Rakim 07:07, 12 Jan 2005 (UTC)
replies: text: Do C first. Nobody does a Google search for some boring letter. :) --FOo 15:21, 12 Jan 2005 (UTC)
replies: text: Wow! That's really cool. Searching for the other letters are also interesting. It seems like Google does something with the results so you get very strange results when searching for single letter stuff. Eric B. and Rakim 17:38, 13 Jan 2005 (UTC)

text: Needless to say, Google and the web have a bias because they're dominated by a technical elite forming a tiny portion of the world's population. You could argue this doesn't matter, because these people are also our audience, but I offer a stronger objection: that generically-named articles should be on generic topics that anyone can understand, if possible. Even if the Water language were as popular as C, most people would be a lot more familiar with the wet stuff. Deco 04:08, 13 Jan 2005 (UTC)
replies: text: I can refute the "technical elite" argument right now, I think more about the other arguments later. Do a book search in a library or book store, search for Python. You will have hard time finding any living snakes. So it is not only Google and the www that has a bias and is part of a technical elite. It's the book publishers and librarians too. AND: "Python is the common name for the Boidae Family of nonvenomous constricting snakes—specifically the subfamily Pythonidae." <- biological elite. :) Eric B. and Rakim 17:38, 13 Jan 2005 (UTC)
thread_title:  Python wants Python 

message: This looks simpler:
 def add_and_print_maker(x):
     def temp(y):
         print x, "+", y, "=", x+y
     return temp
Than:
 def add_and_print_maker(x):
     def temp(y):
         print "%d + %d = %d" % (x, y, x+y)
     return temp
* A valid point. But they operate differently. Your simpler example will properly function with strings (catenation, not addition), but the example as listed will throw an error. The comparison of the two functions is worth keeping around, as well as a discussion of their differences - does the formatted print statement run faster or slower than the catenated one? John Elder 19:08, 7 Jun 2005 (UTC)
thread_title:  Printing example