Re: Not fully OO ?

2008-09-30 Thread Bruno Desthuilliers
Lawrence D'Oliveiro a écrit : In message [EMAIL PROTECTED], James Mills wrote: On Fri, Sep 26, 2008 at 8:20 AM, Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: Object orientation IS procedural. Correction: OOP is Imperative. No, procedural. Nope, imperative !-) The functional unit is

Re: Not fully OO ?

2008-09-28 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], James Mills wrote: On Fri, Sep 26, 2008 at 8:20 AM, Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: Object orientation IS procedural. Correction: OOP is Imperative. No, procedural. The functional unit is called an expression, the encapsulation of which is

Re: Not fully OO ?

2008-09-28 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Aaron Castironpi Brady wrote: I understand that formal proof systems, as well as automated theorem provers, have been difficult to develop. The basic problem is: having proved that a program satisfies certain formally-specified criteria, how do you prove that

Re: Not fully OO ?

2008-09-28 Thread Bruno Desthuilliers
Tim Rowe a écrit : 2008/9/26 Bruno Desthuilliers [EMAIL PROTECTED]: Not to start a troll, but from what I've seen of C# so far I do find this a bit surprising and really suspect more of a library issue than a language one. Care to tell more about the problem and solution ? (NB : I wouldn't

Re: Not fully OO ?

2008-09-28 Thread Tim Rowe
2008/9/28 Aaron Castironpi Brady [EMAIL PROTECTED]: Before I tried wxFormBuilder, I imagined that C# would be vastly faster to develop than Python, for anything requiring any non-trivial graphical interface. I've done extensive VB, so I can attest to that personally. It is not. I'm

Re: Not fully OO ?

2008-09-28 Thread Patrick Mullen
On Fri, Sep 26, 2008 at 1:11 PM, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Steven D'Aprano a écrit : On Fri, 26 Sep 2008 17:00:59 +0200, Bruno Desthuilliers wrote: Patrick Mullen a écrit : Depending on the scale of the website I am making, how much I care about editing it in the future,

Re: Not fully OO ?

2008-09-28 Thread Aaron Castironpi Brady
On Sep 28, 4:41 pm, Tim Rowe [EMAIL PROTECTED] wrote: 2008/9/28 Aaron Castironpi Brady [EMAIL PROTECTED]: Before I tried wxFormBuilder, I imagined that C# would be vastly faster to develop than Python, for anything requiring any non-trivial graphical interface.  I've done extensive VB, so

Re: Not fully OO ?

2008-09-27 Thread Tim Rowe
2008/9/27 Aaron Castironpi Brady [EMAIL PROTECTED]: No way. It's *zero* instead of one, if so, because the only thing C# has is a bunch of handcuffs and implicit 'self'. You have a line like: You don't follow what I said, and from your tone I get the feeling you don't *want* to follow what

Re: Not fully OO ?

2008-09-27 Thread Aaron Castironpi Brady
On Sep 27, 6:55 pm, Tim Rowe [EMAIL PROTECTED] wrote: 2008/9/27 Aaron Castironpi Brady [EMAIL PROTECTED]: No way.  It's *zero* instead of one, if so, because the only thing C# has is a bunch of handcuffs and implicit 'self'.  You have a line like: You don't follow what I said, and from

Re: Not fully OO ?

2008-09-26 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Aaron Castironpi Brady wrote: Wikipedia puts it decently: mainly for OO programming, but with some procedural elements. Procedural is the opposite of functional, not object-oriented. -- http://mail.python.org/mailman/listinfo/python-list

Re: Not fully OO ?

2008-09-26 Thread Bruno Desthuilliers
Lawrence D'Oliveiro a écrit : In message [EMAIL PROTECTED], Aaron Castironpi Brady wrote: Wikipedia puts it decently: mainly for OO programming, but with some procedural elements. Procedural is the opposite of functional, not object-oriented. AFAIK, the opposite if functional is

Re: Not fully OO ?

2008-09-26 Thread Steven D'Aprano
On Fri, 26 Sep 2008 09:58:39 +0200, Bruno Desthuilliers wrote: Procedural is the opposite of functional, not object-oriented. AFAIK, the opposite if functional is imperative, not procedural. But let's not waste too much time on terminology arguments... We're not wasting time on terminology

Re: Not fully OO ?

2008-09-26 Thread Tino Wildenhain
Hi, Tim Rowe wrote: 2008/9/23 Craig Allen [EMAIL PROTECTED]: So python may turn out to be pure OO ... The question I usually ask is Does this language help me get the job done? Python often does. That's all that really matters, isn't it? Well then it still depends on the perception of

Re: Not fully OO ?

2008-09-26 Thread Patrick Mullen
Depending on the scale of the website I am making, how much I care about editing it in the future, and how much I just want to get something up, I will occasionally use php. And I am a self confessed php hater :) But it's generally the fastest way I know to get something up. So even terrible

Re: Not fully OO ?

2008-09-26 Thread Bruno Desthuilliers
Patrick Mullen a écrit : Depending on the scale of the website I am making, how much I care about editing it in the future, and how much I just want to get something up, I will occasionally use php. And I am a self confessed php hater :) But it's generally the fastest way I know to get

Re: Not fully OO ?

2008-09-26 Thread Steven D'Aprano
On Fri, 26 Sep 2008 17:00:59 +0200, Bruno Desthuilliers wrote: Patrick Mullen a écrit : Depending on the scale of the website I am making, how much I care about editing it in the future, and how much I just want to get something up, I will occasionally use php. And I am a self confessed php

Re: Not fully OO ?

2008-09-26 Thread Tim Rowe
2008/9/26 Tino Wildenhain [EMAIL PROTECTED]: The question I usually ask is Does this language help me get the job done? Python often does. That's all that really matters, isn't it? Well then it still depends on the perception of job done. For example PHP programmers would bet their soul that

Re: Not fully OO ?

2008-09-26 Thread Aaron Castironpi Brady
On Sep 26, 11:48 am, Tim Rowe [EMAIL PROTECTED] wrote: 2008/9/26 Tino Wildenhain [EMAIL PROTECTED]: The question I usually ask is Does this language help me get the job done? Python often does. That's all that really matters, isn't it? Well then it still depends on the perception of job

Re: Not fully OO ?

2008-09-26 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : On Fri, 26 Sep 2008 09:58:39 +0200, Bruno Desthuilliers wrote: Procedural is the opposite of functional, not object-oriented. AFAIK, the opposite if functional is imperative, not procedural. But let's not waste too much time on terminology arguments... We're not

Re: Not fully OO ?

2008-09-26 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : On Fri, 26 Sep 2008 17:00:59 +0200, Bruno Desthuilliers wrote: Patrick Mullen a écrit : Depending on the scale of the website I am making, how much I care about editing it in the future, and how much I just want to get something up, I will occasionally use php. And

Re: Not fully OO ?

2008-09-26 Thread Bruno Desthuilliers
Tim Rowe a écrit : 2008/9/26 Tino Wildenhain [EMAIL PROTECTED]: The question I usually ask is Does this language help me get the job done? Python often does. That's all that really matters, isn't it? Well then it still depends on the perception of job done. For example PHP programmers would

Re: Not fully OO ?

2008-09-26 Thread Aaron Castironpi Brady
On Sep 26, 11:48 am, Tim Rowe [EMAIL PROTECTED] wrote: 2008/9/26 Tino Wildenhain [EMAIL PROTECTED]: The question I usually ask is Does this language help me get the job done? Python often does. That's all that really matters, isn't it? Well then it still depends on the perception of job

Re: Not fully OO ?

2008-09-26 Thread Tim Rowe
2008/9/26 Bruno Desthuilliers [EMAIL PROTECTED]: Not to start a troll, but from what I've seen of C# so far I do find this a bit surprising and really suspect more of a library issue than a language one. Care to tell more about the problem and solution ? (NB : I wouldn't even asked if you

Re: Not fully OO ?

2008-09-26 Thread Tim Rowe
2008/9/26 Aaron Castironpi Brady [EMAIL PROTECTED]: If you have wxFormBuilder and the win32 library, it's pretty fast. Speed has never been an issue for me with Python. For my masters degree I did a project that involved a lot of number crunching, and in my proposal I wrote that I'd use Python

Re: Not fully OO ?

2008-09-26 Thread Aaron Castironpi Brady
On Sep 26, 6:40 pm, Tim Rowe [EMAIL PROTECTED] wrote: 2008/9/26 Aaron Castironpi Brady [EMAIL PROTECTED]: If you have wxFormBuilder and the win32 library, it's pretty fast. Speed has never been an issue for me with Python. For my masters degree I did a project that involved a lot of number

Re: Not fully OO ?

2008-09-26 Thread Tim Rowe
2008/9/27 Aaron Castironpi Brady [EMAIL PROTECTED]: But I, and I imagine I'm not the only one, would love to know the example that C# developed faster than Python. I suppose the fact that the line of wx specification that has two identifiers where C# has one is more of a drain on programmer

Re: Not fully OO ?

2008-09-26 Thread Aaron Castironpi Brady
On Sep 26, 8:10 pm, Tim Rowe [EMAIL PROTECTED] wrote: 2008/9/27 Aaron Castironpi Brady [EMAIL PROTECTED]: But I, and I imagine I'm not the only one, would love to know the example that C# developed faster than Python.  I suppose the fact that the line of wx specification that has two

Re: Not fully OO ?

2008-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Craig Allen wrote: It is clearly possible to write procedural code... that is, Python does not force object oriented syntax or concepts on you ... Object orientation IS procedural. -- http://mail.python.org/mailman/listinfo/python-list

Re: Not fully OO ?

2008-09-25 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], candide wrote: ... Python supports OOP and classes to an extent, but is not a full OOP language. Python allows you to use OO-style constructs, but doesn't force you to have inheritance and subclasses if you don't want to. Duck typing is usually a much more

Re: Not fully OO ?

2008-09-25 Thread James Mills
On Fri, Sep 26, 2008 at 8:20 AM, Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: Object orientation IS procedural. Correction: OOP is Imperative. --JamesMills -- -- -- Problems are solved by method -- http://mail.python.org/mailman/listinfo/python-list

Re: Not fully OO ?

2008-09-23 Thread Tim Rowe
2008/9/23 Craig Allen [EMAIL PROTECTED]: So python may turn out to be pure OO I think that's the sort of thing the pedants would hang that hats on, too. Python isn't *pure* OO, in that it lets the programmers do non-OO if they want to, but it is *fully* OO in that it includes everything

Re: Not fully OO ?

2008-09-23 Thread Craig Allen
if they want to, but it is *fully* OO in that it includes everything required to do OO. But maybe the original blogger meant by fully OO what I mean by Pure OO? it seems to me this is what was meant... pure OO, AND forced to use it. My personal feeling is that python is multiparadigmed

Re: Not fully OO ?

2008-09-22 Thread Ricardo Aráoz
Kay Schluehr wrote: On 20 Sep., 23:07, Aaron \Castironpi\ Brady [EMAIL PROTECTED] wrote: On Sep 20, 3:22 pm, Kay Schluehr [EMAIL PROTECTED] wrote: On 20 Sep., 18:33, Bruno Desthuilliers [EMAIL PROTECTED] wrote: The following definitions are AFAIK the only commonly accepted definitions

Re: Not fully OO ?

2008-09-22 Thread Craig Allen
It is clear to me that Python is a multiparadigmed object oriented language. It is clearly possible to write procedural code... that is, Python does not force object oriented syntax or concepts on you and insist you define everything in such a structure. Is the OO it allows full OO, I think so,

Re: Not fully OO ?

2008-09-21 Thread MVP
Hi! Everything ... are an object. It's true ; but a language built around the objects, and OOP, are two different concepts. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Not fully OO ?

2008-09-21 Thread M�ta-MCI (MVP)
Bonjour ! AMHA, ceux qui ont écrit ce texte ont une mauvaise idée de ce que sont les variables en Python. Ils ont sans doute trop en tête les notions des variables en C ou en Basic, et ne se sont pas penchés sur les spécificités de Python. @-salutations -- Michel Claveau --

Re: Not fully OO ?

2008-09-21 Thread Martin v. Löwis
Christian Heimes wrote: Kay Schluehr wrote: Actually it is simply wrong in the mentioned case [...] It's not wrong. You have found a simple optimization. Lot's of compilers for lots of languages optimize code by code folding. I don't think he meant that Python is wrong somehow, but that

Re: Not fully OO ?

2008-09-21 Thread Fredrik Lundh
Martin v. Löwis wrote: I don't think he meant that Python is wrong somehow, but that the OO babble of what happens for 2+2 is wrong. The babble said that, when the code is executed, an __add__ message is sent to the 2 object, with another 2 object as the parameter. That statement is incorrect:

Not fully OO ?

2008-09-20 Thread candide
Excerpt quoted from http://www.astro.ufl.edu/~warner/prog/python.html : About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes to an extent, but is not a full OOP language. Thanks for any comment. --

Re: Not fully OO ?

2008-09-20 Thread James Mills
This is wrong. Python _is_ a full OOP language. Everything form modules, functions to basic data types are an object. --JamesMills On Sat, Sep 20, 2008 at 7:23 PM, candide [EMAIL PROTECTED] wrote: Excerpt quoted from http://www.astro.ufl.edu/~warner/prog/python.html : About Python: Python is

Re: Not fully OO ?

2008-09-20 Thread Kay Schluehr
On 20 Sep., 11:23, candide [EMAIL PROTECTED] wrote: Excerpt quoted fromhttp://www.astro.ufl.edu/~warner/prog/python.html: About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes to an extent, but is not a full OOP

Re: Not fully OO ?

2008-09-20 Thread Fredrik Lundh
Kay Schluehr wrote: Answer: if you want to define an entity it has to be defined inside a class. If you want to access an entity you have to use the dot operator. Therefore Java is OO but Python is not. you're satirising the quoted author's cargo-cultish view of object orientation, right?

Re: Not fully OO ?

2008-09-20 Thread Carl Banks
On Sep 20, 2:23 am, candide [EMAIL PROTECTED] wrote: Excerpt quoted fromhttp://www.astro.ufl.edu/~warner/prog/python.html: About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes to an extent, but is not a full OOP

Re: Not fully OO ?

2008-09-20 Thread Colin J. Williams
candide wrote: Excerpt quoted from http://www.astro.ufl.edu/~warner/prog/python.html : About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes to an extent, but is not a full OOP language. Thanks for any comment.

Re: Not fully OO ?

2008-09-20 Thread Fredrik Lundh
Colin J. Williams wrote: foreach: for x in array: statements Loops over the array given by array. On each iteration, the value of the current element is assigned to x and the internal array pointer is advanced by one. This could be a useful addition to Python. for-in could be a useful

Re: Not fully OO ?

2008-09-20 Thread Martin v. Löwis
for-in could be a useful addition to Python? looks like Guido's used his time machine again, then, since it's been around since the pre-1.0 days: http://www.python.org/doc/ref/for.html He somehow must have misinterpreted http://www.astro.ufl.edu/~warner/prog/python.html which has the

Re: Not fully OO ?

2008-09-20 Thread Duncan Booth
candide [EMAIL PROTECTED] wrote: Excerpt quoted from http://www.astro.ufl.edu/~warner/prog/python.html : About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes to an extent, but is not a full OOP language. Thanks

Re: Not fully OO ?

2008-09-20 Thread Steven D'Aprano
On Sat, 20 Sep 2008 13:13:08 +, Duncan Booth wrote: This is a good indication that the author doesn't know much about OOP. I think you can drop the last two words :) Actually that's unfair -- it looks like he knows quite a bit about the metallicity of quasers, but he's just parroting a

Re: Not fully OO ?

2008-09-20 Thread Kay Schluehr
On 20 Sep., 12:14, Fredrik Lundh [EMAIL PROTECTED] wrote: Kay Schluehr wrote: Answer: if you want to define an entity it has to be defined inside a class. If you want to access an entity you have to use the dot operator. Therefore Java is OO but Python is not. you're satirising the quoted

Re: Not fully OO ?

2008-09-20 Thread Eduardo O. Padoan
On Sat, Sep 20, 2008 at 11:26 AM, Kay Schluehr [EMAIL PROTECTED] wrote: On 20 Sep., 12:14, Fredrik Lundh [EMAIL PROTECTED] wrote: Kay Schluehr wrote: Answer: if you want to define an entity it has to be defined inside a class. If you want to access an entity you have to use the dot

Re: Not fully OO ?

2008-09-20 Thread Thomas G. Willis
On Sep 20, 5:23 am, candide [EMAIL PROTECTED] wrote: Excerpt quoted fromhttp://www.astro.ufl.edu/~warner/prog/python.html: About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes to an extent, but is not a full OOP

Re: Not fully OO ?

2008-09-20 Thread Colin J. Williams
Fredrik Lundh wrote: Colin J. Williams wrote: foreach: for x in array: statements Loops over the array given by array. On each iteration, the value of the current element is assigned to x and the internal array pointer is advanced by one. This could be a useful addition to Python.

Re: Not fully OO ?

2008-09-20 Thread Aaron Castironpi Brady
On Sep 20, 5:14 am, Fredrik Lundh [EMAIL PROTECTED] wrote: Kay Schluehr wrote: Answer: if you want to define an entity it has to be defined inside a class. If you want to access an entity you have to use the dot operator. Therefore Java is OO but Python is not. you're satirising the

Re: Not fully OO ?

2008-09-20 Thread Paul Boddie
On 20 Sep, 19:42, Aaron \Castironpi\ Brady [EMAIL PROTECTED] wrote: Wikipedia puts it decently: mainly for OO programming, but with some procedural elements. ducks When it comes to Python and object-oriented programming, you can't leave out the ducks. ;-) Paul --

Re: Not fully OO ?

2008-09-20 Thread Bruno Desthuilliers
candide a écrit : Excerpt quoted from http://www.astro.ufl.edu/~warner/prog/python.html : About Python: Python is a high level scripting language with object oriented features. (...) Python supports OOP and classes to an extent, but is not a full OOP language. Thanks for any comment.

Re: Not fully OO ?

2008-09-20 Thread Kay Schluehr
On 20 Sep., 18:33, Bruno Desthuilliers [EMAIL PROTECTED] wrote: The following definitions are AFAIK the only commonly accepted definitions about OO: 1/ an object is defined by identity, state and behaviour 2/ objects interacts by sending messages each other 3/ an OO program is made of

Re: Not fully OO ?

2008-09-20 Thread Aaron Castironpi Brady
On Sep 20, 3:22 pm, Kay Schluehr [EMAIL PROTECTED] wrote: On 20 Sep., 18:33, Bruno Desthuilliers [EMAIL PROTECTED] wrote: The following definitions are AFAIK the only commonly accepted definitions about OO: 1/ an object is defined by identity, state and behaviour 2/ objects interacts

Re: Not fully OO ?

2008-09-20 Thread Christian Heimes
Kay Schluehr wrote: Actually it is simply wrong in the mentioned case and here is the proof: def foo(): return 2+2 import dis dis.dis(foo) 2 0 LOAD_CONST 2 (4) 3 RETURN_VALUE OO is a heuristic method used to understand the semantics of a

Re: Not fully OO ?

2008-09-20 Thread Aaron Castironpi Brady
On Sep 20, 8:06 pm, Christian Heimes [EMAIL PROTECTED] wrote: Kay Schluehr wrote: Actually it is simply wrong in the mentioned case and here is the proof: def foo():     return 2+2 import dis dis.dis(foo)   2           0 LOAD_CONST               2 (4)               3

Re: Not fully OO ?

2008-09-20 Thread Aahz
In article [EMAIL PROTECTED], Thomas G. Willis [EMAIL PROTECTED] wrote: On Sep 20, 5:23=A0am, candide [EMAIL PROTECTED] wrote: Excerpt quoted fromhttp://www.astro.ufl.edu/~warner/prog/python.html: About Python: Python is a high level scripting language with object oriented features. (...)

Re: Not fully OO ?

2008-09-20 Thread Kay Schluehr
On 20 Sep., 23:07, Aaron \Castironpi\ Brady [EMAIL PROTECTED] wrote: On Sep 20, 3:22 pm, Kay Schluehr [EMAIL PROTECTED] wrote: On 20 Sep., 18:33, Bruno Desthuilliers [EMAIL PROTECTED] wrote: The following definitions are AFAIK the only commonly accepted definitions about OO: 1/