Re: code review

2012-07-01 Thread Chris Angelico
On Sun, Jul 1, 2012 at 4:54 PM, Steven D'Aprano wrote: > Not in English-speaking countries with a culture of writing chained > comparisons in mathematics and allowing them in natural language: > > "Rock is beaten by Paper, is beaten by Scissors". I would write that as: Rock is beaten by Paper, a

Re: Re: code review

2012-07-01 Thread Thomas 'PointedEars' Lahn
Evan Driscoll wrote: > On 6/30/2012 19:37, Chris Angelico wrote: >> On Sun, Jul 1, 2012 at 10:08 AM, Ben Finney >> wrote: >>> I know of no programming language that >>> would give a newcomer to Python that expectation. So where is the norm >>> you're referring to? >> >> C, SQL, REXX, and many ot

Re: code review

2012-07-01 Thread Thomas 'PointedEars' Lahn
Evan Driscoll wrote: > On 6/30/2012 23:45, Evan Driscoll wrote: >> You may also >> want to put Java in there as well, as < is effectively not commutative >> in that language. (I didn't try C#.) > > I guess you could actually put Lua and Ruby into the roughly same > category as Java too. > > But

Re: code review

2012-07-01 Thread Ben Finney
Chris Angelico writes: > On Sun, Jul 1, 2012 at 10:08 AM, Ben Finney > wrote: > > Thomas Jollans writes: > > > >> My sole point, really, is that "normally", one would expect these two > >> expressions to be equivalent: > >> > >> a < b < c > >> (a < b) < c > > > > What norm gives you that expec

Re: code review

2012-07-01 Thread Thomas Jollans
On 07/01/2012 04:06 AM, Steven D'Aprano wrote: > On Sun, 01 Jul 2012 00:05:26 +0200, Thomas Jollans wrote: > >> As soon as you read it as a ternary operator, > > Well that's your problem. Why are you reading it as a ternary operator? > It isn't one. It is a pair of chained binary operator. > >

Re: code review

2012-07-01 Thread Thomas Jollans
On 07/01/2012 09:28 AM, Ben Finney wrote: > Chris Angelico writes: > >> On Sun, Jul 1, 2012 at 10:08 AM, Ben Finney >> wrote: >>> Thomas Jollans writes: >>> My sole point, really, is that "normally", one would expect these two expressions to be equivalent: a < b < c (a

Re: code review

2012-07-01 Thread Devin Jeanpierre
On Sun, Jul 1, 2012 at 3:28 AM, Ben Finney wrote: > Chris Angelico writes: >> C, SQL, REXX, and many other languages. > > So, languages without strong typing then. In that case, I revise my > statement: I know of no programming language with strong typing that > would give a newcomer to Python th

Re: changes made to my python coded com servers are not taking effect

2012-07-01 Thread Alister
On Sun, 01 Jul 2012 02:13:23 -0700, Panceisto wrote: > I assume the old code keeps running in some process somewhere. How to > fix this? stop & restart the servers after making the changes -- Smoking is the leading cause of statistics. -- http://mail.python.org/mailman/listinfo/python-list

Re: code review

2012-07-01 Thread Alister
On Sat, 30 Jun 2012 23:45:25 -0500, Evan Driscoll wrote: > On 6/30/2012 19:37, Chris Angelico wrote: >> On Sun, Jul 1, 2012 at 10:08 AM, Ben Finney >> wrote: >>> I know of no programming language that would give a newcomer to Python >>> that expectation. So where is the norm you're referring to?

Re: code review

2012-07-01 Thread Terry Reedy
On 7/1/2012 2:54 AM, Steven D'Aprano wrote: So no, Python has always included chained comparisons, and yes, it is shameful that a language would force you to unlearn standard notation in favour of a foolish consistency with other operators. Comparisons aren't special because they return bools. T

Re: [ANN] IPython 0.13 is officially out!

2012-07-01 Thread Leo
On 2012-07-01 01:55 +0800, Fernando Perez wrote: > - ~6 months of work. > - 373 pull requests merged. > - 742 issues closed (non-pull requests). > - contributions from 62 authors. > - 1760 commits. > - a diff of 114226 lines. Thank you for the hard work. Leo -- http://mail.python.org/mailman/lis

Fwd: Python-list Digest, Vol 106, Issue 1

2012-07-01 Thread Fabian Doerfler
(a2 + b2 = c2) = (e < | > P a P b P c) Beschreibt eine Disonanz in Genese. -- Weitergeleitete Nachricht -- Von: Datum: 30.06.2012 23:09 Betreff: Python-list Digest, Vol 106, Issue 1 An: Send Python-list mailing list submissions to python-list@python.org To subscribe or

Re: how to use tkinter in python3.2?

2012-07-01 Thread Serhiy Storchaka
On 01.07.12 07:25, contro opinion wrote: i have installed tk ,how to use tkinker in python3.2? You must install tk-dev (or whatever it's called on your system) before Python building (don't forget to rerun configure). -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] IPython 0.13 is officially out!

2012-07-01 Thread Virgil Stokes
On 01-Jul-2012 13:56, Leo wrote: On 2012-07-01 01:55 +0800, Fernando Perez wrote: - ~6 months of work. - 373 pull requests merged. - 742 issues closed (non-pull requests). - contributions from 62 authors. - 1760 commits. - a diff of 114226 lines. Thank you for the hard work. Leo I have tried t

Re: Re: code review

2012-07-01 Thread Evan Driscoll
On 7/1/2012 4:54, Alister wrote: > On Sat, 30 Jun 2012 23:45:25 -0500, Evan Driscoll wrote: >> If I had seen that in a program, I'd have assumed it was a bug. > > You would? > I have only been using python for 6 - 12 months but in my past I > programmed microcontrollers in assembly. > > as soon

Re: [ANN] IPython 0.13 is officially out!

2012-07-01 Thread Dave Cook
On 2012-07-01, Virgil Stokes wrote: > I have tried to update 0.12 in Ubuntu 12.04 but as of now it can not find > 0.13. > Any suggestions on how to get it into Ubuntu 12.04 would be appreciated. Install pip and use it to upgrade ipython: sudo apt-get install python-pip sudo pip install --upgra

when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread dmitrey
hi all, are there any information about upcoming availability of parallel computations in CPython without modules like multiprocessing? I mean something like parallel "for" loops, or, at least, something without forking with copying huge amounts of RAM each time and possibility to involve unpiclab

Re: when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread Dan Stromberg
If something happens with this for CPython, it'll likely come from Pypy developers first. They seem to be interested in doing things in a way that is (or can be made) compatible with CPython. If you want to help them along, they're taking donations to fund the work, or you could donate your own t

Re: when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread Thomas Jollans
On 07/01/2012 07:51 PM, dmitrey wrote: > hi all, > are there any information about upcoming availability of parallel > computations in CPython without modules like multiprocessing? I mean > something like parallel "for" loops, or, at least, something without > forking with copying huge amounts of

Re: when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread Thomas Jollans
On 07/01/2012 08:44 PM, Dan Stromberg wrote: > IronPython, sadly, lacks a python standard library. Beg pardon? https://github.com/IronLanguages/main/tree/master/External.LCA_RESTRICTED/Languages/IronPython/27/Lib -- http://mail.python.org/mailman/listinfo/python-list

Re: when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread Andrew Berg
On 7/1/2012 1:53 PM, Thomas Jollans wrote: > As far as I can tell, there are no concrete plans to integrate > concurrency better, or get rid of the GIL, at the moment. To quote > http://wiki.python.org/moin/GlobalInterpreterLock > > """Getting rid of the GIL is an occasional topic on the python-

Re: when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread Dan Stromberg
On Sun, Jul 1, 2012 at 11:58 AM, Thomas Jollans wrote: > On 07/01/2012 08:44 PM, Dan Stromberg wrote: > > IronPython, sadly, lacks a python standard library. > > > Beg pardon? > > > https://github.com/IronLanguages/main/tree/master/External.LCA_RESTRICTED/Languages/IronPython/27/Lib > Perhaps thi

Re: when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread Thomas Jollans
On 07/01/2012 09:28 PM, Dan Stromberg wrote: > > > On Sun, Jul 1, 2012 at 11:58 AM, Thomas Jollans > wrote: > > On 07/01/2012 08:44 PM, Dan Stromberg wrote: > > IronPython, sadly, lacks a python standard library. > > > Beg pardon? > > > https://githu

Re: when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread Ross Ridge
Thomas Jollans wrote: >There is, of course, Stackless Python. >http://stackless.com/ Stackless Python doesn't really address the original poster's problem as the GIL still effectively limits Python code running in one thread at a time. Ross Ridge -- l/

Re: code review

2012-07-01 Thread HoneyMonster
On Sun, 01 Jul 2012 09:46:56 +0200, Thomas Jollans wrote: > I don't have PostgeSQL handy just now - what is the result of (1 < 2 < > 3) ? I bet it's the same error, which means the two are still > equivalent. $ psql misc psql (9.1.4) Type "help" for help. misc=# select (1 < 2); ?column? --

Re: code review

2012-07-01 Thread Steven D'Aprano
On Sun, 01 Jul 2012 05:18:09 -0400, Devin Jeanpierre wrote: > Also, you claimed earlier that the notion of associative "<" is not > founded in mathematical notation. It really depends on whose > mathematical notation you use -- there's more than one, you know. For > example, it's reasonable to exp

Re: code review

2012-07-01 Thread Steven D'Aprano
On Sun, 01 Jul 2012 09:35:40 +0200, Thomas Jollans wrote: > On 07/01/2012 04:06 AM, Steven D'Aprano wrote: >> On Sun, 01 Jul 2012 00:05:26 +0200, Thomas Jollans wrote: >> >>> As soon as you read it as a ternary operator, >> >> Well that's your problem. Why are you reading it as a ternary operato

Re: changes made to my python coded com servers are not taking effect

2012-07-01 Thread Mark Hammond
On 1/07/2012 7:13 PM, Panceisto wrote: I assume the old code keeps running in some process somewhere. How to fix this? The client of your server still has a reference to the old server. The simplest solution is to restart those clients. Mark -- http://mail.python.org/mailman/listinfo/pytho

Re: code review

2012-07-01 Thread Steven D'Aprano
On Sun, 01 Jul 2012 05:55:24 -0400, Terry Reedy wrote: > On 7/1/2012 2:54 AM, Steven D'Aprano wrote: > >> So no, Python has always included chained comparisons, and yes, it is >> shameful that a language would force you to unlearn standard notation >> in favour of a foolish consistency with other

Re: code review

2012-07-01 Thread Steven D'Aprano
On Sun, 01 Jul 2012 16:33:15 +1000, Chris Angelico wrote: > On Sun, Jul 1, 2012 at 4:27 PM, Steven D'Aprano > wrote: >> Yes, you can find specially crafted examples where adding parentheses >> in certain places, but not others, doesn't change the overall >> evaluation of the expression. > > My p

Re: code review

2012-07-01 Thread Devin Jeanpierre
On Sun, Jul 1, 2012 at 8:41 PM, Steven D'Aprano wrote: > On Sun, 01 Jul 2012 05:18:09 -0400, Devin Jeanpierre wrote: > Sheesh guys. Don't go hunting through the most obscure corners of > mathematics for examples of computer scientists who have invented their > own maths notation. (Which, by your o

Re: code review

2012-07-01 Thread Devin Jeanpierre
On Sun, Jul 1, 2012 at 9:28 PM, Steven D'Aprano wrote: > Technically, < in Python is left-associative: a < b < c first evaluates > a, not b or c. But it is left-associative under the rules of comparison > operator chaining, not arithmetic operator chaining. Left-associativity is when a < b < c is

Re: code review

2012-07-01 Thread Chris Angelico
On Mon, Jul 2, 2012 at 11:28 AM, Steven D'Aprano wrote: > On Sun, 01 Jul 2012 16:33:15 +1000, Chris Angelico wrote: > >> On Sun, Jul 1, 2012 at 4:27 PM, Steven D'Aprano >> wrote: >>> Yes, you can find specially crafted examples where adding parentheses >>> in certain places, but not others, doesn

Re: IPython 0.13 is officially out!

2012-07-01 Thread rusi
On Jul 1, 9:03 pm, Dave Cook wrote: > On 2012-07-01, Virgil Stokes wrote: > > > I have tried to update 0.12 in Ubuntu 12.04 but as of now it can not find > > 0.13. > > Any suggestions on how to get it into Ubuntu 12.04 would be appreciated. > > Install pip and use it to upgrade ipython: > > sudo

Re: distutils that supports msvc10 and that can be backfitted into Python 2.6

2012-07-01 Thread Mero
On 26/06/2012 23:24, KACVINSKY Tom wrote: > I have need for a distutils that supports msvc10, and which can be > back-fitted into Python 2.6. Is there such a beast? One trick I found was to define an environment variable *VS90COMNTOOLS* that points to the actual VS2010 location: VS90COMNTOOL

Re: code review

2012-07-01 Thread John O'Hagan
On Sun, 01 Jul 2012 13:41:20 -0400 Dennis Lee Bieber wrote: > I'd think a true newcomer (to programming) would have NO > expectations... And if they'd had any complex math classes may actually > consider > if 1 < x < 10: > to be the norm [...] +1 I've only ever known Pyth