Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Bruno Desthuilliers
Russ P. a écrit : On Jan 26, 1:07 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: No. I can change the *team's* code. Please *read*. team's ownership, ok ? Or do I have to spell it out loud ? TEAM'S OWNERSHIP. Uh. You get the message, now ? Team ownership doesn't

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Luis Zarrabeitia
On Tuesday 27 January 2009 04:39:02 am Bruno Desthuilliers wrote: Still not. But it's interesting to note that you consider everyone disagreeing with you as basically the same person. Hehe. At the beginning of this thread, I also thought that Russ P. and Paul Robin were the same person. I have

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Hendrik van Rooyen
Luis Zarrabeitia k@uh.cu wrote: 8 Hehe. At the beginning of this thread, I also thought that Russ P. and Paul Robin were the same person. I have serious problems with names. *nods in agreement, because the man's surname is Rubin, not Robin* :-) - Hendrik --

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Michele Simionato
On Jan 21, 2:11 am, Mark Wooding m...@distorted.org.uk wrote: CLOS is much more complex and dynamic than Python's object system; but it can be compiled very aggressively. I agree that CLOS is complex and that it can be compiled very aggressively, but I do not think that it is more dynamic

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Russ P.
On Jan 26, 6:09 am, Steve Holden st...@holdenweb.com wrote: Quite. Python is a language for consenting adults. It has perceived deficiencies for certain software engineering environments. Can we drop the subject now? This horse was flogged to death long ago, and it's pointless and cruel to

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Luis Zarrabeitia
On Tuesday 27 January 2009 02:13:50 pm Russ P. wrote: I suggested that maybe -- maybe! -- the versatility of Python could be enhanced with enforced data hiding. I was careful to say several times that I don't know if that can even be done in Python (with all its introspection and so forth).

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Russ P.
On Jan 27, 11:40 am, Luis Zarrabeitia ky...@uh.cu wrote: I think you still fail to see that what we are objecting is not that the original writer can optionally use the enforced data hiding (which, as someone pointed out before me, can be done with tools like pylint). The objection is about

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Mark Wooding
[No, my email address doesn't begin `m...@'. Fixed.] Michele Simionato michele.simion...@gmail.com writes: On Jan 21, 2:11 am, Mark Wooding m...@distorted.org.uk wrote: CLOS is much more complex and dynamic than Python's object system; but it can be compiled very aggressively. I agree

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Rhamphoryncus
On Jan 27, 12:13 pm, Russ P. russ.paie...@gmail.com wrote: On Jan 26, 6:09 am, Steve Holden st...@holdenweb.com wrote: Quite. Python is a language for consenting adults. It has perceived deficiencies for certain software engineering environments. Can we drop the subject now? This horse was

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Scott David Daniels
Paul Rubin wrote: Scott David Daniels scott.dani...@acm.org writes: But, the research on the language Self shows that even in the face of a language with more dynamism than Smalltalk (or Python), performance can be obtained using compiler technology I'd be interested in seeing any

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: If Python had a private keyword (or equivalent), for example, the user would only need to delete it wherever necessary to gain the desired access. And you obviously weren't listening when we said that having to make source code changes to upstream

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Luis Zarrabeitia
On Tuesday 27 January 2009 02:56:51 pm Russ P. wrote: On Jan 27, 11:40 am, Luis Zarrabeitia ky...@uh.cu wrote: I think you still fail to see that what we are objecting is not that the original writer can optionally use the enforced data hiding (which, as someone pointed out before me, can

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Michele Simionato
On Jan 27, 9:13 pm, Mark Wooding m...@distorted.org.uk wrote: I'm referring to a number of features:   * Redefinition of classes, yes.  Interactive development is very     frustrating without this.  Thanks for that link, by the way!   * CHANGE-CLASS to change the class of instances.  This is

Re: Does Python really follow its philosophy of Readability counts?

2009-01-26 Thread Bruno Desthuilliers
Russ P. a écrit : On Jan 23, 4:57 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Russ P. a écrit : As I said before, if you have the source code you can always change private attributes to public in a pinch if the language enforces encapsulation. And then have to

Re: Does Python really follow its philosophy of Readability counts?

2009-01-26 Thread Bruno Desthuilliers
Russ P. a écrit : On Jan 23, 6:36 pm, Luis Zarrabeitia ky...@uh.cu wrote: Makes *no* sense? There's *no* good reason *at all* for the original author to hide or protect internals? My bad, sorry. It makes sense... if the original author is an egotist who believes he must control how I use that

Re: Does Python really follow its philosophy of Readability counts?

2009-01-26 Thread Steve Holden
Bruno Desthuilliers wrote: Russ P. a écrit : On Jan 23, 6:36 pm, Luis Zarrabeitia ky...@uh.cu wrote: Makes *no* sense? There's *no* good reason *at all* for the original author to hide or protect internals? My bad, sorry. It makes sense... if the original author is an egotist who believes

Re: Does Python really follow its philosophy of Readability counts?

2009-01-26 Thread Paul Rubin
Steve Holden st...@holdenweb.com writes: Quite. Python is a language for consenting adults. Shouldn't such a language allow consenting adults to enter a BDSM scene without being moralized at, if that's what they want to do? ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Does Python really follow its philosophy of Readability counts?

2009-01-26 Thread Tim Rowe
2009/1/26 Paul Rubin http://phr.cx@nospam.invalid: Steve Holden st...@holdenweb.com writes: Quite. Python is a language for consenting adults. Shouldn't such a language allow consenting adults to enter a BDSM scene without being moralized at, if that's what they want to do? ;-) The language

Re: Does Python really follow its philosophy of Readability counts?

2009-01-26 Thread Steve Holden
Paul Rubin wrote: Steve Holden st...@holdenweb.com writes: Quite. Python is a language for consenting adults. Shouldn't such a language allow consenting adults to enter a BDSM scene without being moralized at, if that's what they want to do? ;-) Yes, but you know what moralizers are like

Re: Does Python really follow its philosophy of Readability counts?

2009-01-26 Thread Bruno Desthuilliers
Russ P. a écrit : (snip) You are trying to dictate that the library implementer not be allowed to use enforced access restriction. And, in the larger sense, you are trying to dictate that access restrictions not be enforced in Python. FWIW, it's actually *you* who are trying to dictate that

Re: Does Python really follow its philosophy of Readability counts?

2009-01-26 Thread Russ P.
On Jan 26, 1:07 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: No. I can change the *team's* code. Please *read*. team's ownership, ok ? Or do I have to spell it out loud ? TEAM'S OWNERSHIP. Uh. You get the message, now ? Team ownership doesn't necessarily mean

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Luis Zarrabeitia
Quoting Russ P. russ.paie...@gmail.com: On Jan 24, 9:54 pm, Luis Zarrabeitia ky...@uh.cu wrote: Quoting Russ P. russ.paie...@gmail.com: It is. For starters, I'd lose the information of this attribute was intended to be internal and I'm accessing it anyway. Not really. When you get a

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: Calling a one-word change a fork is quite a stretch, I'd say. I wouldn't. I've forked a project P if I've made a different version of it which isn't going to be reflected upstream. Now I've got to maintain my fork, merging in changes from upstream as

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: Imagine a person who repairs computers. He is really annoyed that he constantly has to remove the cover to get at the guts of the computer. So he insists that computers cases should be made without covers. Poor analogy. He gets fed up that the computers

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Russ P.
On Jan 25, 10:04 am, Mark Wooding m...@distorted.org.uk wrote: Russ P. russ.paie...@gmail.com writes: Calling a one-word change a fork is quite a stretch, I'd say. I wouldn't.  I've forked a project P if I've made a different version of it which isn't going to be reflected upstream.  Now

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Fri, 23 Jan 2009 21:36:59 -0500, Luis Zarrabeitia wrote: It makes sense... if the original author is an egotist who believes he must control how I use that library. Then I guess Guido must be such an egotist, because there's

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Russ P.
On Jan 25, 10:04 am, Mark Wooding m...@distorted.org.uk wrote: But what if I want an automatic check to verify that I am using it as the author intended? Is that unreasonable? You mean that you can't /tell/ whether you typed mumble._seekrit? You're very strange.  It's kind of hard to do by

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Steven D'Aprano
On Sun, 25 Jan 2009 12:01:16 -0800, Russ P. wrote: On Jan 25, 10:04 am, Mark Wooding m...@distorted.org.uk wrote: But what if I want an automatic check to verify that I am using it as the author intended? Is that unreasonable? You mean that you can't /tell/ whether you typed

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Steven D'Aprano
On Mon, 26 Jan 2009 00:59:48 +, Steven D'Aprano wrote: How is this scenario different from an API change where public_method() gets changed to method()? Sorry, that's a poor example, since you were talking about attributes rather than methods. Must stop posting before coffee *wink*

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Paul Rubin
Steven D'Aprano st...@remove-this-cybersource.com.au writes: How is this scenario different from an API change where self.some_attribute gets changed to self.attribute? That would be a backward incompatible change to a published interface, something that should not be done without a good

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Steven D'Aprano
On Sun, 25 Jan 2009 17:15:47 -0800, Paul Rubin wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: How is this scenario different from an API change where self.some_attribute gets changed to self.attribute? That would be a backward incompatible change to a published

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Paul Rubin
Steven D'Aprano st...@remove-this-cybersource.com.au writes: We're not talking specifically about Python standard library changes, we're talking about any project which may have more entertaining *cough* policies regarding API changes. Oh, yes, I see what you mean. That's a problem even in

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: On Jan 25, 10:04 am, Mark Wooding m...@distorted.org.uk wrote: But what if you type mumble._seekrit in several places, then the library implementer decides to give in to your nagging and makes it public by changing it to mumble.seekrit. There's a

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Russ P.
On Jan 25, 5:31 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: It seems to me that Russ' latest objection to _private names is not specific to _private names. The same problem: You will get no warning at all. You will just be inadvertently creating a new private attribute

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: [snip stuff I don't disagree with] That makes renaming and refactoring riskier in general in Python than in statically typed languages with enforced access restrictions. More care and attention to detail is needed to do it right in Python. In fact, I

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Russ P.
On Jan 25, 7:56 pm, Mark Wooding m...@distorted.org.uk wrote: Russ P. russ.paie...@gmail.com writes: [snip stuff I don't disagree with] That makes renaming and refactoring riskier in general in Python than in statically typed languages with enforced access restrictions. More care and

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Hendrik van Rooyen
Paul Rubin http://phr...@nospam.invalid wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: We're not talking specifically about Python standard library changes, we're talking about any project which may have more entertaining *cough* policies regarding API changes.

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Steven D'Aprano
On Fri, 23 Jan 2009 21:36:59 -0500, Luis Zarrabeitia wrote: Quoting Steven D'Aprano st...@remove-this-cybersource.com.au: On Fri, 23 Jan 2009 13:07:55 -0500, Luis Zarrabeitia wrote: It should be in _our_ power as the team of all participant coders on _our_ project to decide if we should

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Luis Zarrabeitia
Quoting Russ P. russ.paie...@gmail.com: On Jan 23, 6:36 pm, Luis Zarrabeitia ky...@uh.cu wrote: Makes *no* sense? There's *no* good reason *at all* for the original author to hide or protect internals? My bad, sorry. It makes sense... if the original author is an egotist who

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Tim Rowe
2009/1/24 Rhodri James rho...@wildebst.demon.co.uk: My experience with medium-sized organisations (50-100 people) is that either you talk to Fred directly, or it doesn't happen. In particular the more people (especially PHBs) that get involved, the slower the change will come and the less

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Luis Zarrabeitia
Quoting Steven D'Aprano st...@remove-this-cybersource.com.au: On Fri, 23 Jan 2009 21:36:59 -0500, Luis Zarrabeitia wrote: Quoting Steven D'Aprano st...@remove-this-cybersource.com.au: Makes *no* sense? There's *no* good reason *at all* for the original author to hide or protect

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Russ P.
On Jan 24, 4:17 pm, Luis Zarrabeitia ky...@uh.cu wrote: Quoting Russ P. russ.paie...@gmail.com: On Jan 23, 6:36 pm, Luis Zarrabeitia ky...@uh.cu wrote: Makes *no* sense? There's *no* good reason *at all* for the original author to hide or protect internals? My bad, sorry. It

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Russ P.
On Jan 24, 5:09 pm, Luis Zarrabeitia ky...@uh.cu wrote: I didn't say at all. Those were your words, not mine. I said that it makes no sense that the power lies on _you_ instead of on _my team_. And, when I said that, I recall we were talking about the python language, not C. Once again, if

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Rhodri James
On Sun, 25 Jan 2009 00:31:14 -, Tim Rowe digi...@gmail.com wrote: 2009/1/24 Rhodri James rho...@wildebst.demon.co.uk: My experience with medium-sized organisations (50-100 people) is that either you talk to Fred directly, or it doesn't happen. In particular the more people (especially

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Luis Zarrabeitia
Quoting Russ P. russ.paie...@gmail.com: Once again, if you have the source code for the library (and the right to modify it), how does the power lie with the library implementer rather than you the user? You say you don't want to fork the library. Let's stipulate for the sake of argument

Re: Does Python really follow its philosophy of Readability counts?

2009-01-24 Thread Russ P.
On Jan 24, 9:54 pm, Luis Zarrabeitia ky...@uh.cu wrote: Quoting Russ P. russ.paie...@gmail.com: Once again, if you have the source code for the library (and the right to modify it), how does the power lie with the library implementer rather than you the user? You say you don't want to

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : On Thu, 22 Jan 2009 19:10:05 +, Mark Wooding wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 22 Jan 2009 15:12:31 +0100, Bruno Desthuilliers wrote: Steven D'Aprano a écrit : But if you have free access to attributes, then

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Bruno Desthuilliers
Russ P. a écrit : On Jan 21, 4:04 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Russ P. a écrit : (snip) Your mistake for being a moron. But it seems to happen regularly, doesn't it. How much more of my time are you going to waste, loser? Calling people names is

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Russ P.
On Jan 23, 1:54 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Steven D'Aprano a écrit : On Thu, 22 Jan 2009 19:10:05 +, Mark Wooding wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 22 Jan 2009 15:12:31 +0100, Bruno

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Russ P.
On Jan 22, 9:22 pm, Russ P. russ.paie...@gmail.com wrote: code. You can play around with the internals all you want in your own little world, but as when you are working with a team, you need to adhere to the interfaces they define (if any). The word as should not be there: ... but when you

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Antoon Pardon
On 2009-01-16, Luis Zarrabeitia ky...@uh.cu wrote: Quoting Russ P. russ.paie...@gmail.com: On Jan 15, 12:21 pm, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr wrote: Once again, the important point is that there's a *clear* distinction between interface and implementation,

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Steven D'Aprano
On Fri, 23 Jan 2009 10:54:53 +0100, Bruno Desthuilliers wrote: In context, I had just mentioned that lists' internals were inaccessible from Python code. I neglected to give an example at the time, but a good example is the current length of the list. Consider the experience of Microsoft and

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 22 Jan 2009 19:10:05 +, Mark Wooding wrote: Well, your claim /was/ just wrong. But if you want to play dumb: the interface is what's documented as being the interface. But you miss my point. Evidently. We're told

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Bruno Desthuilliers
Russ P. a écrit : (snip) I am curious about something. Have you ever needed to access a private attribute (i.e., one named with a leading underscore) in Python code that you did not have the source code for? For that matter, have you ever even used a library written in Python without having

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Russ P.
On Jan 23, 4:30 am, Mark Wooding m...@distorted.org.uk wrote: Suppose that you write a Python library module and release it.  I find that it's /almost/ the right thing for some program of mine, but it doesn't quite work properly unless I hack about like so... perfect!  I'm a happy bunny;

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Steven D'Aprano
On Fri, 23 Jan 2009 13:57:52 +0100, Bruno Desthuilliers wrote: As I said before, if you have the source code you can always change private attributes to public in a pinch if the language enforces encapsulation. And then have to maintain a fork. No, thanks. If you're messing with the

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Russ P.
On Jan 23, 4:57 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Russ P. a écrit : As I said before, if you have the source code you can always change private attributes to public in a pinch if the language enforces encapsulation. And then have to maintain a

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Steven D'Aprano
On Fri, 23 Jan 2009 05:42:38 -0800, Russ P. wrote: My my my. If you don't trust your programmers, then indeed, don't use Python. What can I say (and what do I care ?). But once again, relying on the language's access restriction to manage *security* is, well, kind of funny, you know ? Are

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Steve Holden
Bruno Desthuilliers wrote: Russ P. a écrit : [...] Mr. D'Aprano gave an excellent example of a large banking program. Without enforced encapsulation, anyone on the development team has access to the entire program and could potentially sneak in fraudulent code much more easily than if

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Divya Prakash
Hello thats excellant !! On 1/23/09, Russ P. russ.paie...@gmail.com wrote: On Jan 23, 4:57 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Russ P. a écrit : As I said before, if you have the source code you can always change private attributes to public in

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Tim Rowe
2009/1/22 Scott David Daniels scott.dani...@acm.org: Having once been a more type-A, I labored for a couple of years trying to build a restricted language that provably terminated for work on an object-oriented database research. I was careful to say that it was the /use/ of the language that

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Russ P.
On Jan 23, 6:21 am, Steve Holden st...@holdenweb.com wrote: I have to say that I thought the example was somewhat bogus. Any development team that is even slightly concerned about the possibility of logic bombs in the code will try to mitigate that possibility by the use of code inspections.

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Luis Zarrabeitia
On Friday 23 January 2009 06:31:50 am Antoon Pardon wrote: On 2009-01-16, Luis Zarrabeitia ky...@uh.cu wrote: Quoting Russ P. russ.paie...@gmail.com: If you *shouldn't* mess with the implementation, then what is wrong with enforcing that shouldn't in the language itself? Because, as a

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: OK, fine, you can change the code of another member of the team. Are you going to check with him first, or just do it? The point is that changing an interface requires agreement of the team members who use that interface, whether on the calling or the

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: You've built something full of user serviceable parts. You've insisted, publicly and loudly, that the ability to modify those parts is absolutely essential, you've rejected every effort to lock down those internals, and then when

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: Was this library module released in source form? If so, then why would you care that it has enforced access restrictions? You can just take them out, then do whatever you would have done had they not been there to start with. I don't see how that is

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Mark Wooding
Steve Holden st...@holdenweb.com writes: Annotations *have* made it into 3.0, so it's possible that the might become usable. Remember, they'll always be optional, so those who don't want to use them won't lose anything at all. There's a problem here. An interface has two sides. Access

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Fri, 23 Jan 2009 13:57:52 +0100, Bruno Desthuilliers wrote: Why on earth couldn't I change the code of another member of my team if that code needs changes ? The code is the whole team's ownership. That's a model that works well

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Paul Rubin
Mark Wooding m...@distorted.org.uk writes: Now we come on to Fred. If Fred's across the room from me then we're back to the water-cooler. If he's on a different continent, and I know he'll be affected, I'll probably email him. If I've never heard of him at all, well, he might just lose when

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Steven D'Aprano
On Fri, 23 Jan 2009 20:09:48 +, Mark Wooding wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Fri, 23 Jan 2009 13:57:52 +0100, Bruno Desthuilliers wrote: Why on earth couldn't I change the code of another member of my team if that code needs changes ? The code is

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Steven D'Aprano
On Fri, 23 Jan 2009 13:07:55 -0500, Luis Zarrabeitia wrote: It should be in _our_ power as the team of all participant coders on _our_ project to decide if we should mess with the internals or not. What makes no sense is that it should be in the original author's power to decide, if he is

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: I did? Where did I make that assumption? I inferred it from the juxtaposition, apparently in error. Sorry. What I said was that the model The code is the whole team's ownership doesn't work well for large projects. *One* reason

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Aaron Brady
On Jan 23, 7:01 pm, Mark Wooding m...@distorted.org.uk wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: I did? Where did I make that assumption? I inferred it from the juxtaposition, apparently in error.  Sorry. What I said was that the model The code is the whole team's

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: Let's be specific here. The list implementation in CPython is an array with a hidden field storing the current length. If this hidden field was exposed to Python code, you could set it to a value much larger than the actual size

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Steve Holden
Mark Wooding wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: I did? Where did I make that assumption? I inferred it from the juxtaposition, apparently in error. Sorry. What I said was that the model The code is the whole team's ownership doesn't work well for large

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Rhodri James
On Fri, 23 Jan 2009 21:28:22 -, Paul Rubin http://phr.cx@nospam.invalid wrote: Mark Wooding m...@distorted.org.uk writes: Now we come on to Fred. If Fred's across the room from me then we're back to the water-cooler. If he's on a different continent, and I know he'll be affected, I'll

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Luis Zarrabeitia
Quoting Steven D'Aprano st...@remove-this-cybersource.com.au: On Fri, 23 Jan 2009 13:07:55 -0500, Luis Zarrabeitia wrote: It should be in _our_ power as the team of all participant coders on _our_ project to decide if we should mess with the internals or not. What makes no sense is

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Paul Rubin
Rhodri James rho...@wildebst.demon.co.uk writes: My experience with medium-sized organisations (50-100 people) is that either you talk to Fred directly, or it doesn't happen. In particular the more people (especially PHBs) that get involved, the slower the change will come and the less like

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Rhodri James
On Sat, 24 Jan 2009 03:18:05 -, Paul Rubin http://phr.cx@nospam.invalid wrote: It is, to some extent, also part of the PHB's job to filter the traffic and protect both Fred and you from making too many interruptions for each other. This is especially important if you're the type of

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Steven D'Aprano
On Sat, 24 Jan 2009 01:41:35 +, Mark Wooding wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: ... As I see it, you have two coherent positions. On the one hand, you could be like Mark Wooding, and say that Yes you want to risk buffer overflows by messing with the

Re: Does Python really follow its philosophy of Readability counts?

2009-01-23 Thread Russ P.
On Jan 23, 6:36 pm, Luis Zarrabeitia ky...@uh.cu wrote: Makes *no* sense? There's *no* good reason *at all* for the original author to hide or protect internals? My bad, sorry. It makes sense... if the original author is an egotist who believes he must control how I use that library. If

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Steven D'Aprano
On Wed, 21 Jan 2009 01:02:37 -0800, Aaron Brady wrote: class Parrot: ...     _private = 'spam' ... p = Parrot() p._private = 'ham'  # allowed by default from protection import lock lock(p)._private p._private = 'spam' Traceback (most recent call last):   File stdin, line 1, in

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Steven D'Aprano
On Wed, 21 Jan 2009 12:55:42 -0500, Luis Zarrabeitia wrote: Btw, the correctness of a program (on a turing-complete language) cannot be statically proven. Ask Turing about it. The correctness of *all* *arbitrary* programs cannot be proven. That doesn't mean that no programs can be proven.

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Paul Rubin
Tim Rowe digi...@gmail.com writes: Programs done in Ada are, by objective measures, more reliable than those done in C and C++ (the very best released C++ programs are about as good as the worst released Ada programs), although I've always wondered how much of that is because of language

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : On Wed, 21 Jan 2009 12:54:31 +0100, Bruno Desthuilliers wrote: Russ P. a écrit : (snip) In any case, I have suggested that Python should perhaps get a new keyword, private or priv. And quite a few people - most of them using Python daily - answered they didn't wan't

Formal specification and proof (was : Does Python really follow its philosophy of Readability counts?)

2009-01-22 Thread Ricardo Aráoz
Mark Wooding wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: No it's not. It's *practical*. There are domains where *by law* code needs to meet all sorts of strict standards to prove safety and security, and Python *simply cannot meet those standards*.

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Bruno Desthuilliers
Paul Rubin a écrit : Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid writes: In my limited experience with Haskell (statically typed but very high level), dynamic and static were not meant to concern typing here (or at least not only typing). I'm not sure what you mean by

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Tim Rowe
Btw, the correctness of a program (on a turing-complete language) cannot be statically proven. Ask Turing about it. For the most safety critical of programmes, for which static proof is required, restrictions are placed on the use of the language that effectively mean that it is not

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Steven D'Aprano
On Thu, 22 Jan 2009 10:33:26 +0100, Bruno Desthuilliers wrote: Steven D'Aprano a écrit : On Wed, 21 Jan 2009 12:54:31 +0100, Bruno Desthuilliers wrote: Russ P. a écrit : (snip) In any case, I have suggested that Python should perhaps get a new keyword, private or priv. And quite a few

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : On Thu, 22 Jan 2009 10:33:26 +0100, Bruno Desthuilliers wrote: Steven D'Aprano a écrit : On Wed, 21 Jan 2009 12:54:31 +0100, Bruno Desthuilliers wrote: Russ P. a écrit : (snip) In any case, I have suggested that Python should perhaps get a new keyword, private or

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Mark Wooding
Paul Rubin http://phr...@nospam.invalid writes: Also, the application area matters. There is a difference between programming for one's own enjoyment or to do a personal task, and writing programs whose reliability or lack of it can affect other people's lives. I've never done any

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Steven D'Aprano
On Thu, 22 Jan 2009 15:12:31 +0100, Bruno Desthuilliers wrote: Steven D'Aprano a écrit : On Thu, 22 Jan 2009 10:33:26 +0100, Bruno Desthuilliers wrote: Steven D'Aprano a écrit : On Wed, 21 Jan 2009 12:54:31 +0100, Bruno Desthuilliers wrote: Russ P. a écrit : (snip) In any case, I have

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Mark Wooding
Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Thu, 22 Jan 2009 15:12:31 +0100, Bruno Desthuilliers wrote: Steven D'Aprano a écrit : But if you have free access to attributes, then *everything* is interface. Nope. How could anyone fail to be convinced by an argument that

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Scott David Daniels
Tim Rowe wrote: Btw, the correctness of a program (on a turing-complete language) cannot be statically proven. Ask Turing about it. For the most safety critical of programmes, for which static proof is required, restrictions are placed on the use of the language that effectively mean that it

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Mark Wooding
Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid writes: Paul Rubin a écrit : I'd say that Python's FP characteristics are an important part of its expressiveness. Indeed - but they do not make Python a functional language[1]. Python is based on objects, not on functions,

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Luis Zarrabeitia
On Thursday 22 January 2009 08:32:51 am Steven D'Aprano wrote: And now I have accidentally broken the spam() method, due to a name clash. True, that's bad. I wish that were 'fixed'. Besides, double-underscore names are a PITA to work with: Isn't that example the point of having self.__private

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Ricardo Aráoz
Paul Rubin wrote: Mark Wooding m...@distorted.org.uk writes: Some people (let's call them `type A programmers') have decided that they want to be assisted with writing correct programs... Other people (`type B programmers') don't like having their (apparently? possibly?) correct programs

Re: Formal specification and proof (was : Does Python really follow its philosophy of Readability counts?)

2009-01-22 Thread James Mills
On Thu, Jan 22, 2009 at 8:42 PM, Ricardo Aráoz ricar...@gmail.com wrote: (...) What I've seen engineers do when they need extra safety is to put in place independently developed and operated redundant systems, at least three, and the system will do whatever two of the independent systems agree

Re: Formal specification and proof (was : Does Python really follow its philosophy of Readability counts?)

2009-01-22 Thread Paul Rubin
James Mills prolo...@shortcircuit.net.au writes: Ricardo's point is very well put and Safety Critical systems that specify requirements, tangible and quantifiable requirements are what makes a system safe and gives assurance - not the language or the platform os the os or the environment.

Re: Does Python really follow its philosophy of Readability counts?

2009-01-22 Thread Paul Rubin
Scott David Daniels scott.dani...@acm.org writes: Having once been a more type-A, I labored for a couple of years trying to build a restricted language that provably terminated for work on an object-oriented database research. I finally gave it up as a bad idea, because, in practice, we don't

  1   2   3   4   5   >