[issue29689] Asyncio-namespace helpers for async_generators

2017-03-01 Thread Scott Russ
Changes by Scott Russ <sc...@linuxjihad.com>: -- nosy: +Scott Russ ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29689> ___ _

Re: More list building

2016-05-11 Thread louis . a . russ
On Wednesday, May 11, 2016 at 1:22:09 PM UTC-4, DFS wrote: > Have: > p1 = ['Now', 'the', 'for', 'good'] > p2 = ['is', 'time', 'all', 'men'] > > want > [('Now','is','the','time'), ('for','all','good','men')] > > This works: > > p = [] > for i in xrange(0,len(p1),2): >

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

[issue18358] update links to Apple Style Guide

2013-07-04 Thread Russ Webber
Russ Webber added the comment: So it is. Sorry, should have searched first. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18358 ___ ___ Python

Idea for key parameter in all() builting, would it be feasible?

2013-06-19 Thread russ . pobox
I was mucking around, trying to code a prime sieve in one line. I don't know about filters and bit shifting and stuff like that but I thought I could do it with builtins, albeit a very long one line. This is the part of my stupid trick in question that got me wondering about a key parameter for

Re: Idea for key parameter in all() builting, would it be feasible?

2013-06-19 Thread russ . pobox
All you need is the iterator version of map(). In Python 3, that's the normal map(); in Python 2, use this: from itertools import imap all(imap(lambda x: bool(x), xrange(10**9))) False It's roughly instant, like you would expect. ChrisA This probably isn't the way to post a reply on your own

Re: My son wants me to teach him Python

2013-06-13 Thread russ . pobox
I couldn't read every post here so don't know if this has been suggested, or if there is perhaps a better suggestion which I haven't read in this thread, but in as far as I've read I feel the need to recommend: learnpythonthehardway.org Knowing a little JavaScript and even allot of HTML doesn't

Re: Reply to post 'Tryign to add a valkue to a set'

2013-06-11 Thread russ . pobox
Just try this in the interpreter and see. for key, value in sorted(months.items(), key=lambda x:x[1]): print %s %s % (value, key) -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple program question.

2013-06-11 Thread russ . pobox
input() is a function which returns a string. You can assign this return value to a variable. That's what variables are for. option = input() Now you can use the variable named option in place of all those calls to input(). i.e: ...instead of.. if input() == 'parry': # etc ...do

Re: Reply to post 'Tryign to add a valkue to a set'

2013-06-10 Thread russ . pobox
for key, value in sorted(months.items(), key=lambda x:x[1]): print('\toption value%s%s/option'\n % (value, key)) Explanation: - - - - - - dict.items is a method associated with dicts just like dict.keys or dict.values, and returns a list of (key, value) pairs. sorted and some other

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: English Idiom in Unix: Directory Recursively

2011-05-19 Thread Thomas A. Russ
Pascal J. Bourguignon p...@informatimago.com writes: t...@sevak.isi.edu (Thomas A. Russ) writes: This will only work if there is a backpointer to the parent. No, you don't need backpointers; some cases have been mentionned in the other answer, but in general: (defun parent (tree

Re: English Idiom in Unix: Directory Recursively

2011-05-19 Thread Thomas A. Russ
that are inherently recursive and for which there is no natural iterative algorithm. -- Thomas A. Russ, USC/Information Sciences Institute -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Thomas A. Russ
stack in the iterative code. To my mind that isn't really an iterative algorithm anymore if it ends up simulating the call stack. Tree walks are the canonical example of what can't be done in an iterative fashion without the addition of an explicitly managed stack -- Thomas A. Russ, USC

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Thomas A. Russ
Hans Georg Schaathun h...@schaathun.net writes: [Followup-To: header set to comp.lang.python.] On 17 May 2011 23:42:20 -0700, Thomas A. Russ t...@sevak.isi.edu wrote: : Tree walks are the canonical example of what can't be done in an : iterative fashion without the addition

Re: Strong typing vs. strong testing

2010-10-12 Thread Thomas A. Russ
to treat percent (%) as a dimensionless unit with a conversion factor of 1/100. -- Thomas A. Russ, USC/Information Sciences Institute -- http://mail.python.org/mailman/listinfo/python-list

Re: Strong typing vs. strong testing

2010-10-12 Thread Thomas A. Russ
BartC b...@freeuk.com writes: Thomas A. Russ t...@sevak.isi.edu wrote in message news:ymi1v7vgyp8@blackcat.isi.edu... torb...@diku.dk (Torben ZÆgidius Mogensen) writes: Trigonometric functions do take arguments of particular units: radians or (less often) degrees, with conversion

Re: Strong typing vs. strong testing

2010-09-29 Thread Thomas A. Russ
units (m/s, s, m). -- Thomas A. Russ, USC/Information Sciences Institute -- http://mail.python.org/mailman/listinfo/python-list

Re: Strong typing vs. strong testing

2010-09-29 Thread Thomas A. Russ
RG rnospa...@flownet.com writes: More power to you. What are you doing here on cll then? This thread is massively cross-posted. -- Thomas A. Russ, USC/Information Sciences Institute -- http://mail.python.org/mailman/listinfo/python-list

Re: Strong typing vs. strong testing

2010-09-28 Thread Thomas A. Russ
and my extension to it as part of the Loom system: http://www.isi.edu/isd/LOOM/documentation/loom4.0-release-notes.html#Units -- Thomas A. Russ, USC/Information Sciences Institute -- http://mail.python.org/mailman/listinfo/python-list

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

IDLE Config Problems

2009-07-29 Thread Russ Davis
be interfering with the idle config. Thanks Russ Russell Davis PP, AICP, GISP GIS Administrator State of New Jersey Pinelands Commission Office of Land Use and Technology GIS Laboratory Po Box 7 New Lisbon, NJ 08064 Phone 609-894-7300 Fax 609-894-7330 russ.da...@njpines.state.nj.us -- http

[issue1559298] test_popen fails on Windows if installed to Program Files

2009-07-03 Thread Russ Gibson
Russ Gibson ru...@rnstech.com added the comment: What is needed is separate quoting for the command and the argument. Right now, test_popen only surrounds the entire command line with quotes: c:\Program Files\Python2.6\Python.exe -u c:\Documents and Settings\Russ Gibson\cgi-bin\cgi.py

[issue1475] test_popen fails when the directory contains a space

2009-07-03 Thread Russ Gibson
Russ Gibson ru...@rnstech.com added the comment: (Same comment I added to 1559298:) What is needed is separate quoting for the command and the argument. Right now, test_popen only surrounds the entire command line with quotes: c:\Program Files\Python2.6\Python.exe -u c:\Documents and Settings

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

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-02-05 Thread Russ Cox
Russ Cox r...@swtch.com added the comment: Named Unicode characters eg \N{LATIN CAPITAL LETTER A} These descriptions are not as stable as, say, Unicode code point values or language names. Are you sure it is a good idea to depend on them not being adjusted in the future? It's certainly nice

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.
their ground. I'm very much of the second opinion; it was Russ who did the sudden volte face and declared that it was trivial to circumvent. Whoa! Hold on a minute here. Your failure to understand a simple idea does not constitute a sudden volte (whatever that is) on my part. Let me try to explain again

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

  1   2   3   4   5   >