Re: A Pragmatic Case for Static Typing

2013-09-02 Thread Russ P.
On Monday, September 2, 2013 1:10:34 AM UTC-7, Paul Rubin wrote: Russ P. writes: I just stumbled across this video and found it interesting: http://vimeo.com/72870631 My apologies if it has been posted here already. The slides for it are here, so I didn't bother watching the 1

A Pragmatic Case for Static Typing

2013-09-01 Thread Russ P.
I just stumbled across this video and found it interesting: http://vimeo.com/72870631 My apologies if it has been posted here already. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bools and explicitness [was Re: PyWart: The problem with print]

2013-06-06 Thread Russ P.
On Thursday, June 6, 2013 2:29:02 AM UTC-7, Steven D'Aprano wrote: On Thu, 06 Jun 2013 12:29:44 +1000, Chris Angelico wrote: On Thu, Jun 6, 2013 at 11:56 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 05 Jun 2013 14:59:31 -0700, Russ P. wrote

Re: Bools and explicitness [was Re: PyWart: The problem with print]

2013-06-05 Thread Russ P.
On Tuesday, June 4, 2013 8:44:11 AM UTC-7, Rick Johnson wrote: Yes, but the problem is not my approach, rather the lack of proper language design (my apologizes to the anointed one. ;-) If you don't like implicit conversion to Boolean, then maybe you should be using another language --

Re: Bools and explicitness [was Re: PyWart: The problem with print]

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 12:15:57 AM UTC-7, Chris Angelico wrote: On Wed, Jun 5, 2013 at 4:11 PM, Russ P. wrote: On Tuesday, June 4, 2013 8:44:11 AM UTC-7, Rick Johnson wrote: Yes, but the problem is not my approach, rather the lack of proper language design (my apologizes

Re: Bools and explicitness [was Re: PyWart: The problem with print]

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 1:59:01 AM UTC-7, Mark Lawrence wrote: On 05/06/2013 07:11, Russ P. wrote: But then, what would you expect of a language that allows you to write x = 1 x = Hello It's all loosey goosey -- which is fine for many applications but certainly

Re: Bools and explicitness [was Re: PyWart: The problem with print]

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 9:59:07 AM UTC-7, Chris Angelico wrote: On Thu, Jun 6, 2013 at 2:15 AM, Russ P. wrote: On Wednesday, June 5, 2013 1:59:01 AM UTC-7, Mark Lawrence wrote: I want to launch this rocket with an expensive satellite on top. I know it's safe as the code

Re: Bools and explicitness [was Re: PyWart: The problem with print]

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 4:18:13 PM UTC-7, Michael Torrie wrote: On 06/05/2013 12:11 AM, Russ P. wrote: But then, what would you expect of a language that allows you to write x = 1 x = Hello It's all loosey goosey -- which is fine for many applications

Re: Bools and explicitness [was Re: PyWart: The problem with print]

2013-06-05 Thread Russ P.
On Wednesday, June 5, 2013 7:29:44 PM UTC-7, Chris Angelico wrote: On Thu, Jun 6, 2013 at 11:56 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 05 Jun 2013 14:59:31 -0700, Russ P. wrote: As for Python, my experience with it is that, as your application grows

Re: Controlling number of zeros of exponent in scientific notation

2013-03-06 Thread Russ P.
One possibility is to form the string as usual, split on the e, format each part separately, then rejoin with an e. On Tuesday, March 5, 2013 12:09:10 PM UTC-8, fa...@squashclub.org wrote: Instead of: 1.8e-04 I need: 1.8e-004 So two zeros before the 4, instead of the

Re: numpy (matrix solver) - python vs. matlab

2012-05-03 Thread Russ P.
On May 3, 10:30 am, someone newsbo...@gmail.com wrote: On 05/02/2012 11:45 PM, Russ P. wrote: On May 2, 1:29 pm, someonenewsbo...@gmail.com  wrote: If your data starts off with only 1 or 2 digits of accuracy, as in your example, then the result is meaningless -- the accuracy will be 2-2

Re: numpy (matrix solver) - python vs. matlab

2012-05-03 Thread Russ P.
empirical. Still, a condition number of 1e6 would bother me, but maybe that's just me. --Russ P. On May 3, 3:21 pm, someone newsbo...@gmail.com wrote: On 05/03/2012 07:55 PM, Russ P. wrote: On May 3, 10:30 am, someonenewsbo...@gmail.com  wrote: On 05/02/2012 11:45 PM, Russ P. wrote: For any

Re: numpy (matrix solver) - python vs. matlab

2012-05-03 Thread Russ P.
On May 3, 4:59 pm, someone newsbo...@gmail.com wrote: On 05/04/2012 12:58 AM, Russ P. wrote: Yeah, I realized that I should rephrase my previous statement to something like this: For any *empirical* engineering or scientific work, I'd say that a condition number of 1e6 is likely

Re: numpy (matrix solver) - python vs. matlab

2012-05-02 Thread Russ P.
On May 1, 11:03 pm, someone newsbo...@gmail.com wrote: On 05/02/2012 01:38 AM, Russ P. wrote: On May 1, 4:05 pm, Paul Rubinno.em...@nospam.invalid  wrote: someonenewsbo...@gmail.com  writes: Actually I know some... I just didn't think so much about, before writing the question

Re: numpy (matrix solver) - python vs. matlab

2012-05-02 Thread Russ P.
On May 2, 1:29 pm, someone newsbo...@gmail.com wrote: If your data starts off with only 1 or 2 digits of accuracy, as in your example, then the result is meaningless -- the accuracy will be 2-2 digits, or 0 -- *no* digits in the answer can be trusted to be accurate. I just solved a FEM

Re: numpy (matrix solver) - python vs. matlab

2012-05-01 Thread Russ P.
On Apr 29, 5:17 pm, someone newsbo...@gmail.com wrote: On 04/30/2012 12:39 AM, Kiuhnm wrote: So Matlab at least warns about Matrix is close to singular or badly scaled, which python (and I guess most other languages) does not... A is not just close to singular: it's singular! Ok. When

Re: numpy (matrix solver) - python vs. matlab

2012-05-01 Thread Russ P.
On May 1, 11:52 am, someone newsbo...@gmail.com wrote: On 04/30/2012 03:35 AM, Nasser M. Abbasi wrote: On 04/29/2012 07:59 PM, someone wrote: I do not use python much myself, but a quick google showed that pyhton scipy has API for linalg, so use, which is from the documentation, the

Re: numpy (matrix solver) - python vs. matlab

2012-05-01 Thread Russ P.
On May 1, 4:05 pm, Paul Rubin no.em...@nospam.invalid wrote: someone newsbo...@gmail.com writes: Actually I know some... I just didn't think so much about, before writing the question this as I should, I know theres also something like singular value decomposition that I think can help

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-07 Thread Russ P.
On Mar 6, 7:25 pm, rusi rustompm...@gmail.com wrote: On Mar 6, 6:11 am, Xah Lee xah...@gmail.com wrote: some additional info i thought is relevant. are int, float, long, double, side-effects of computer engineering? It is a bit naive for computer scientists to club integers and reals as

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-06 Thread Russ P.
On Mar 5, 10:34 pm, Xah Lee xah...@gmail.com wrote: On Mar 5, 9:26 pm, Tim Roberts t...@probo.com wrote: Xah Lee xah...@gmail.com wrote: some additional info i thought is relevant. are int, float, long, double, side-effects of computer engineering? Of course they are.  Such concepts

Re: killing a script

2011-08-29 Thread Russ P.
On Aug 28, 8:16 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 28, 2011 at 8:08 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 7:51 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB pyt

killing a script

2011-08-28 Thread Russ P.
running. If I hit Control-C repeatedly, I eventually get lucky and kill the top-level script. Is there a simple way to ensure that the first Control-C will kill the whole darn thing, i.e, the top-level script? Thanks. --Russ P. -- http://mail.python.org/mailman/listinfo/python-list

Re: killing a script

2011-08-28 Thread Russ P.
On Aug 28, 6:52 pm, MRAB pyt...@mrabarnett.plus.com wrote: On 29/08/2011 02:15, Russ P. wrote: I have a Python (2.6.x) script on Linux that loops through many directories and does processing for each. That processing includes several os.system calls for each directory (some to other Python

Re: killing a script

2011-08-28 Thread Russ P.
On Aug 28, 7:51 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB pyt...@mrabarnett.plus.com wrote: You could look at the return value of os.system, which may tell you the exit status of the process

Re: killing a script

2011-08-28 Thread Russ P.
On Aug 28, 8:16 pm, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 28, 2011 at 8:08 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 7:51 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Aug 29, 2011 at 12:41 PM, Russ P. russ.paie...@gmail.com wrote: On Aug 28, 6:52 pm, MRAB pyt

Re: Python why questions

2010-08-23 Thread Russ P.
On Aug 23, 7:46 pm, alex23 wuwe...@gmail.com wrote: Russ P. russ.paie...@gmail.com wrote: However, I've switched from Python to Scala, so I really don't care. Really? Your endless whining in this thread would seem to indicate otherwise. Yes, I guess I care some, but not much. I still use

Re: Python why questions

2010-08-22 Thread Russ P.
On Aug 21, 1:33 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 20 Aug 2010 11:01:42 -0700, Russ P. wrote: Most programmers probably never use vectors and matrices, so they don't care about the inconsistency with standard mathematical notation. Perhaps you should

Re: Python why questions

2010-08-22 Thread Russ P.
On Aug 22, 12:47 am, Chris Rebert c...@rebertia.com wrote: On Sun, Aug 22, 2010 at 12:23 AM, Russ P. russ.paie...@gmail.com wrote: On Aug 21, 1:33 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 20 Aug 2010 11:01:42 -0700, Russ P. wrote: Most programmers probably

Re: Python why questions

2010-08-20 Thread Russ P.
On Aug 20, 1:23 am, Martin Braun martin.br...@kit.edu wrote: I find this thread extremely interesting, but what surprised me that everyone seems to agree that mathematics is 1-based, but we Pythoneers should stick to zero-based. I disagree. To make sure I'm not going crazy, I took the top

Re: Python why questions

2010-08-20 Thread Russ P.
On Aug 20, 11:19 am, geremy condra debat...@gmail.com wrote: Not sure what you read, but for me (mostly number theory, numerical analysis, and abstract algebra) zero-based indexing is quite common. My background is in aerospace control engineering. I am certainly not familiar with the

Re: Python why questions

2010-08-19 Thread Russ P.
On Aug 19, 9:07 am, J.B. Brown jbbr...@sunflower.kuicr.kyoto- u.ac.jp wrote: 2010/8/9 MRAB pyt...@mrabarnett.plus.com: Default User wrote: Not to prolong a good food fight, but IIRC, many years ago in QBasic, one could choose OPTION BASE 0 or OPTION BASE 1 When I wrote my own

Re: Python why questions

2010-08-19 Thread Russ P.
On Aug 19, 11:04 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Tue, 17 Aug 2010 19:15:54 -0700, Russ P. wrote: The convention of starting with zero may have had some slight performance advantage in the early days of computing, but the huge potential for error

Re: Python why questions

2010-08-19 Thread Russ P.
I just checked, and Mathematica uses one-based indexing. Apparently they want their notation to look mathematical. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python why questions

2010-08-19 Thread Russ P.
On Aug 19, 11:42 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Thu, 19 Aug 2010 11:03:53 -0700, Russ P. wrote: For those who insist that zero-based indexing is a good idea, why you suppose mathematical vector/matrix notation has never used that convention? I have

Re: Python why questions

2010-08-19 Thread Russ P.
Yes, apparently Basic uses one-based indexing too. As for Ada, apparently, the programmer needs to explicitly define the index range for every array. Weird. But I get the impression that one- based indexing is used much more than zero-based indexing. --

Re: Python why questions

2010-08-19 Thread Russ P.
On Aug 19, 12:13 pm, Steven D'Aprano st...@remove- While businesses are conservative in which languages they choose, language designers are not conservative in the design features they come up with. That there has been a gradual (although as yet incomplete) convergence towards zero-based

Re: Python why questions

2010-08-18 Thread Russ P.
On Aug 18, 2:01 pm, AK andrei@gmail.com wrote: On 08/17/2010 10:15 PM, Russ P. wrote: On Aug 7, 5:54 am, D'Arcy J.M. Cainda...@druid.net  wrote: Would said beginner also be surprised that a newborn baby is zero years old or would it be more natural to call them a one year old?  Zero

Re: Python why questions

2010-08-18 Thread Russ P.
On Aug 18, 7:58 pm, Steven D'Aprano steve-REMOVE- t...@cybersource.com.au wrote: On Wed, 18 Aug 2010 14:47:08 -0700, Russ P. wrote: Is the top team in the league the number 1 team -- or the number 0 team? I have yet to hear anyone call the best team the number 0 team! Why is the top team

Re: Python why questions

2010-08-17 Thread Russ P.
On Aug 7, 5:54 am, D'Arcy J.M. Cain da...@druid.net wrote: Would said beginner also be surprised that a newborn baby is zero years old or would it be more natural to call them a one year old?  Zero based counting is perfectly natural. You're confusing continuous and discrete variables. Time

Re: Usability, the Soul of Python

2010-03-30 Thread Russ P.
According to Wikipedia, this is called the Whitesmith style: for(i = 99; i 0; ++i) { printf(%d slabs of spam in my mail!\n, i); printf(%d slabs of spam,\n, i); printf(Send one to abuse and Just Hit Delete,\n); printf(%d slabs of spam in my mail!\n\n, i + 1); } I

Re: (a==b) ? 'Yes' : 'No'

2010-03-30 Thread Russ P.
On Mar 30, 10:08 am, John Nagle na...@animats.com wrote: Chris Rebert wrote: On Tue, Mar 30, 2010 at 8:40 AM, gentlestone tibor.b...@hotmail.com wrote: Hi, how can I write the popular C/JAVA syntax in Python? Java example:    return (a==b) ? 'Yes' : 'No' My first idea is:    return

Re: New syntax for blocks

2009-11-17 Thread Russ P.
On Nov 17, 7:28 am, Jonathan Saxton jsax...@appsecinc.com wrote: On Thu, 12 Nov 2009 21:27:31 +0100, Bruno Desthuilliers wrote: Congratulations, you just reinvented one of the most infamous source of bugs in C, C++, Java, PHP, javascript and quite a few other languages. Believe it or not,

Re: Psyco on 64-bit machines

2009-11-14 Thread Russ P.
On Nov 14, 10:15 am, Diez B. Roggisch de...@nospam.web.de wrote: Russ P. schrieb: I have a Python program that runs too slow for some inputs. I would like to speed it up without rewriting any code. Psyco seemed like exactly what I need, until I saw that it only works on a 32-bit

Re: Psyco on 64-bit machines

2009-11-14 Thread Russ P.
On Nov 12, 12:06 pm, Russ P. russ.paie...@gmail.com wrote: I have a Python program that runs too slow for some inputs. I would like to speed it up without rewriting any code. Psyco seemed like exactly what I need, until I saw that it only works on a 32-bit architecture. I work

Re: Psyco on 64-bit machines

2009-11-13 Thread Russ P.
On Nov 12, 12:06 pm, Russ P. russ.paie...@gmail.com wrote: I have a Python program that runs too slow for some inputs. I would like to speed it up without rewriting any code. Psyco seemed like exactly what I need, until I saw that it only works on a 32-bit architecture. I work

Psyco on 64-bit machines

2009-11-12 Thread Russ P.
I have a Python program that runs too slow for some inputs. I would like to speed it up without rewriting any code. Psyco seemed like exactly what I need, until I saw that it only works on a 32-bit architecture. I work in an environment of Sun Ultras that are all 64- bit. However, the Psyco docs

Re: The rap against while True: loops

2009-10-16 Thread Russ P.
On Oct 10, 1:15 pm, kj no.em...@please.post wrote: I'm coaching a group of biologists on basic Python scripting.  One of my charges mentioned that he had come across the advice never to use loops beginning with while True.  Of course, that's one way to start an infinite loop, but this seems

Is Psyco good for Python 2.6.1?

2009-07-02 Thread Russ P.
I need to speed up some Python code, and I discovered Psyco. However, the Psyco web page has not been updated since December 2007. Before I go to the trouble of installing it, does anyone know if it is still good for Python 2.6.1? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Why am I getting [10263 refs]?

2009-03-24 Thread Russ P.
I am running 2.5.2 on Red Hat 5. I am getting many printouts of reference counts, such as [10263 refs] I do not recall ever seeing this until recently. Why am I getting this? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: is python Object oriented??

2009-02-04 Thread Russ P.
On Feb 4, 5:35 am, Luis Zarrabeitia ky...@uh.cu wrote: Quoting Russ P. russ.paie...@gmail.com: Imagine you own a company, and you decide to lease an office building. Would you expect the office doors to have locks on them? Oh, you would? Why? You mean you don't trust your co-workers? What

Re: is python Object oriented??

2009-02-03 Thread Russ P.
On Feb 3, 12:45 am, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: Another extreme position is that enforced data hiding is useless, that there is *never* any need for it *at all*, and therefore Python doesn't need it, there's no reason except stupid PHB's belief in cargo-cult

Re: is python Object oriented??

2009-02-03 Thread Russ P.
On Feb 3, 4:05 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: On Tue, 03 Feb 2009 08:45:23 -, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: I find this extreme position is rather incoherent. If I may paraphrase the argument as I see it: Enforced data hiding is

Re: is python Object oriented??

2009-02-03 Thread Russ P.
On Feb 3, 4:14 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: On Tue, 03 Feb 2009 05:37:57 -, Russ P. russ.paie...@gmail.com wrote: On Feb 2, 7:48 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: On Tue, 03 Feb 2009 02:16:01 -, Russ P. russ.paie...@gmail.com wrote: Here

Re: is python Object oriented??

2009-02-03 Thread Russ P.
On Feb 3, 7:49 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: On Wed, 04 Feb 2009 01:13:32 -, Russ P. russ.paie...@gmail.com wrote: On Feb 3, 4:05 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: I'm very much of the second opinion; it was Russ who did the sudden   volte face

Re: is python Object oriented??

2009-02-02 Thread Russ P.
On Feb 2, 9:02 am, thmpsn@gmail.com wrote: On Feb 2, 2:55 am, Stephen Hansen apt.shan...@gmail.com wrote: This is proven by your statement above, whereby you are driving a user away, simply because the language, in one small aspect, does not give him what he wants, and the tenor

Re: is python Object oriented??

2009-02-02 Thread Russ P.
On Feb 2, 2:46 pm, Tim Rowe digi...@gmail.com wrote: 2009/2/2 Russ P. russ.paie...@gmail.com: Are we supposed to believe that the designers of C++, Java, Ada, and Scala are all idiots? No, we're supposed to believe that the designers of C++, Java, Ada, and Scala are all designers

Re: is python Object oriented??

2009-02-02 Thread Russ P.
On Feb 2, 4:35 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: This really, really, *really* isn't a tangent. It's the heart of the matter. You are advocating a change that doesn't fit with Python's consenting adults approach to programming. It's trivial to enforce hiding using static

Re: is python Object oriented??

2009-02-02 Thread Russ P.
On Feb 2, 7:48 pm, Rhodri James rho...@wildebst.demon.co.uk wrote: On Tue, 03 Feb 2009 02:16:01 -, Russ P. russ.paie...@gmail.com wrote: Here we go again. If you have access to the source code (as you nearly always do with Python code), then breaking the language-enforced data hiding

Re: what IDE is the best to write python?

2009-02-02 Thread Russ P.
On Feb 2, 9:09 pm, a...@pythoncraft.com (Aahz) wrote: You favor bleeding eyes? If I am going to bleed anywhere, I'd actually prefer it be somewhere other than the eyes. Well, maybe not the gonads either. That's a tough call. In any case, I use xemacs, and I've always liked color highlighting.

Re: Function Application is not Currying

2009-01-28 Thread Russ P.
On Jan 28, 1:32 pm, Xah Lee xah...@gmail.com wrote: Function Application is not Currying Xah Lee, 2009-01-28 In Jon Harrop's book Ocaml for Scientist athttp://www.ffconsultancy.com/products/ocaml_for_scientists/chapter1.html It says:     Currying     A curried function is a function

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

Re: I'm a python addict !

2009-01-24 Thread Russ P.
On Jan 24, 4:03 pm, Robert Kern robert.k...@gmail.com wrote: On 2009-01-23 22:25, Aahz wrote: In articlemailman.7865.1232765899.3487.python-l...@python.org, Linuxguy123linuxguy...@gmail.com  wrote: I just started using python last week and I'm addicted. Welcome!  Just be aware that

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

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

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

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 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: I'm a python addict !

2009-01-23 Thread Russ P.
On Jan 23, 6:58 pm, Linuxguy123 linuxguy...@gmail.com wrote: I will never write another Perl or Bash script again. I still use bash for orchestrating the execution of a series of other scripts and/or programs (including python programs). I know you can do that in python, but I find bash simpler

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

2009-01-22 Thread Russ P.
On Jan 22, 6:30 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: 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 :

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

2009-01-22 Thread Russ P.
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 certainly

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

2009-01-21 Thread Russ P.
On Jan 21, 9:34 am, Luis Zarrabeitia ky...@uh.cu wrote: But you keep failing to explay why do you need it to be _part of the standard_ library (or whatever). Technically, it doesn't need to be. But if someone proposes using particular language for a major safety-critical project, the critical

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

2009-01-20 Thread Russ P.
On Jan 20, 5:33 am, Luis Zarrabeitia ky...@uh.cu wrote: On Tuesday 20 January 2009 05:00:34 am Paul Rubin wrote: Luis Zarrabeitia ky...@uh.cu writes: No wonder you can't get Bruno's point. For the second, static checks to prevent accidents, you have pylint. For the first, not only you

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

2009-01-20 Thread Russ P.
On Jan 20, 5:16 pm, Mark Wooding m...@distorted.org.uk wrote: Russ P. russ.paie...@gmail.com writes: Rather than waste more time replying to your post, Let me just refer you to an excellent post that you may have missed earlier in this thread by Mr. D'Aprano: I've responded to that now

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

2009-01-20 Thread Russ P.
On Jan 20, 6:47 pm, alex23 wuwe...@gmail.com wrote: (And that's not even commenting on the whole I have no skill in this area and only second-hand knowledge that it's possible but it's *obvious* to me that it's trivial and *someone else* should easily be able to do the work for me! nature of

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

2009-01-20 Thread Russ P.
Rather than waste more time replying to your post, Let me just refer you to an excellent post that you may have missed earlier in this thread by Mr. D'Aprano: http://groups.google.com/group/comp.lang.python/msg/d684d43b64a6e35a -- http://mail.python.org/mailman/listinfo/python-list

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

2009-01-20 Thread Russ P.
On Jan 20, 8:26 pm, alex23 wuwe...@gmail.com wrote: On Jan 21, 1:18 pm, Russ P. russ.paie...@gmail.com wrote: Since when is no one is allowed to suggest a potential improvement to a product unless they are willing to implement it themselves? Imagine what the world would be like

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

2009-01-20 Thread Russ P.
On Jan 20, 9:00 pm, alex23 wuwe...@gmail.com wrote: On Jan 21, 2:50 pm, Russ P. russ.paie...@gmail.com wrote: If pylint can check for private access violations, then in principle someone could just add a run-time flag that would run pylint as a preliminary step to running python. Heck, I

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

2009-01-20 Thread Russ P.
On Jan 20, 9:07 pm, James Mills prolo...@shortcircuit.net.au wrote: On Wed, Jan 21, 2009 at 2:50 PM, Russ P. russ.paie...@gmail.com wrote: My mistake for using trivial instead, I didn't realise it would trip up your pedantry. Your mistake for being a moron. But it seems to happen regularly

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

2009-01-20 Thread Russ P.
On Jan 20, 10:02 pm, alex23 wuwe...@gmail.com wrote: Can I comprehend that you don't even have an immediate need and are instead actively engaging in online onanism? Absolutely. So anyone thinking beyond an immediate need is engaging in online onanism? Let's see. How long ago did the Python

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

2009-01-20 Thread Russ P.
On Jan 20, 10:18 pm, James Mills prolo...@shortcircuit.net.au wrote: I never did say that python -is- suitable for all applications or that all languages are suitable for all purposes. But you did make some rather outlandish statements. I had written this: I suggest you call Boeing and tell

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

2009-01-20 Thread Russ P.
On Jan 20, 10:24 pm, alex23 wuwe...@gmail.com wrote: On Jan 21, 3:20 pm, Russ P. russ.paie...@gmail.com wrote: But I doubt it will ever come to pass, because it is clear that much of the Python community has no clue about what is required for large- scale, safety-critical software

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

2009-01-20 Thread Russ P.
On Jan 20, 10:56 pm, Paul Rubin http://phr...@nospam.invalid wrote: Also, attribute protection is just a tiny aspect.  The high assurance community really wants as much static verification as it can possibly get.  Python doesn't really lend itself to that. Which is why I was hoping that

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

2009-01-20 Thread Russ P.
On Jan 20, 11:03 pm, James Mills prolo...@shortcircuit.net.au wrote: Then -don't- use python. Use some other boring language. (!...@#$!@#) --JamesMills You're emailing me again. Please don't do that. It's bad enough to get death threats in a newsgroup -- I don't need them in my inbox too.

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

2009-01-20 Thread Russ P.
On Jan 20, 11:16 pm, alex23 wuwe...@gmail.com wrote: I think this is the main issue we disagree on. I'm happier for Python to remain lightweight where such features can be easily added on demand through external libraries. I see no reason why a library couldn't be as well-engineered a

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

2009-01-19 Thread Russ P.
On Jan 19, 7:13 am, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: I must be missing the point : if it's a public attribute, it doesn't need a property ? I guess we use the same words for different things here. Yes, you are missing more than one point. Scala

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

2009-01-19 Thread Russ P.
On Jan 19, 5:09 pm, Luis Zarrabeitia ky...@uh.cu wrote: Russ, I think _you_ are missing the point. If the attribute is already public, why does it need properties? Why would a programmer go to the trouble of adding them manually, just to get one level of indirection for an already public

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

2009-01-19 Thread Russ P.
On Jan 19, 6:24 pm, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Mon, 19 Jan 2009 18:07:50 -0800, Russ P. wrote: On Jan 19, 5:09 pm, Luis Zarrabeitia ky...@uh.cu wrote: Russ, I think _you_ are missing the point. If the attribute is already public, why does it need

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

2009-01-19 Thread Russ P.
On Jan 19, 6:24 pm, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Mon, 19 Jan 2009 18:07:50 -0800, Russ P. wrote: On Jan 19, 5:09 pm, Luis Zarrabeitia ky...@uh.cu wrote: Russ, I think _you_ are missing the point. If the attribute is already public, why does it need

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

2009-01-19 Thread Russ P.
On Jan 19, 6:24 pm, James Mills prolo...@shortcircuit.net.au wrote: Python programmers tend to not have a need for properties. Quite honestly they are a waste of time. They come from traditional OO approaches to software design (and mostly from the Java world). With statements like that,

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

2009-01-19 Thread Russ P.
On Jan 19, 7:44 pm, david.l...@preisshare.net wrote: Because frankly, that's how I read Russ' explanation for what Scala is doing. Have I missed something? coz he gets paid per line of code it's a mindless way of getting paid more for the same functionality... Well, I *thought* I

  1   2   3   >