Re: Problem installing matplotlib 1.3.1 with Python 2.7.6 and 3.3.3 (release candidate 1)

2013-11-03 Thread Georg Brandl
Am 04.11.2013 01:59, schrieb Ned Deily: > In article <21110.62791.44734.656...@cochabamba.vanoostrum.org>, > Piet van Oostrum wrote: >> I tried to install matplotlib 1.3.1 on the release candidates of Python >> 2.7.6 >> and 3.3.3. > > [...] > > Please open an issue on the Python bug tracker f

Re: Python Practice Problems

2013-11-03 Thread memilanuk
On 11/03/2013 06:06 PM, yungwong@gmail.com wrote: Hi, who has some problems to practice using Python? Thx a lot! http://projecteuler.net/ is always a good bet -- https://mail.python.org/mailman/listinfo/python-list

Re: Automation

2013-11-03 Thread Dan Stromberg
On Sun, Nov 3, 2013 at 8:19 AM, Renato Barbosa Pim Pereira < renato.barbosa.pim.pere...@gmail.com> wrote: > I have one .xls file with the values of PV MV and SP, I wanna to calculate > Kp Ki Kd with python from this file, can anyone give me any suggestion > about how can I do this? From now, thank

Re: Automation

2013-11-03 Thread rusi
On Sunday, November 3, 2013 9:49:48 PM UTC+5:30, Renato Barbosa Pim Pereira wrote: > I have one .xls file with the values of PV MV and SP, I wanna to > calculate Kp Ki Kd with python from this file, can anyone give me any > suggestion about how can I do this? From now, thanks. You need somethin

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread rusi
On Monday, November 4, 2013 12:28:24 AM UTC+5:30, Mark Lawrence wrote: > On 03/11/2013 18:28, rusi wrote: > > Which means take something like the pairwise function and code it > > up in python and julia -- its hardly 10 lines of code. And see > > what comparative performance you get. > Solely on

Re: Automation

2013-11-03 Thread bob gailer
Let's remember that it is the job of the OP to explain his problem so we can offer solutions. -- Bob Gailer 919-636-4239 Chapel Hill NC -- https://mail.python.org/mailman/listinfo/python-list

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-03 Thread Mark Janssen
> Note that I *can* make a "compression" algorithm that takes any > length-n sequence and compresses all but one sequence by at least one > bit, and does not ever expand the data. > > "00" -> "" > "01" -> "0" > "10" -> "1" > "11" -> "00" > > This, obviously, is just 'cause the length is an extra pi

Re: zero argument member functions versus properties

2013-11-03 Thread Ian Kelly
On Sun, Nov 3, 2013 at 2:23 PM, Peter Cacioppi wrote: > Ian said : > > " Whereas in Python, an attribute access is just > compiled as an attribute access no matter what the underlying > implementation of that access may end up being at run-time. " > > Really? Very nice. Have a good link handy for

Python Practice Problems

2013-11-03 Thread yungwong . seu
Hi, who has some problems to practice using Python? Thx a lot! -- https://mail.python.org/mailman/listinfo/python-list

Re: Problem installing matplotlib 1.3.1 with Python 2.7.6 and 3.3.3 (release candidate 1)

2013-11-03 Thread Ned Deily
In article <21110.62791.44734.656...@cochabamba.vanoostrum.org>, Piet van Oostrum wrote: > I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6 > and 3.3.3. [...] Please open an issue on the Python bug tracker for the Python component of this. http://bugs.python.org

RE: Parsing multiple lines from text file using regex

2013-11-03 Thread Marc
>This is an alternative solution someone else posted on this list for a > similar problem I had: >#!/usr/bin/python3 >from itertools import groupby >def get_lines_from_file(file_name): >with open(file_name) as reader: >for line in reader.read

Problem installing matplotlib 1.3.1 with Python 2.7.6 and 3.3.3 (release candidate 1)

2013-11-03 Thread Piet van Oostrum
Hello, I tried to install matplotlib 1.3.1 on the release candidates of Python 2.7.6 and 3.3.3. I am on Mac OS X 10.6.8. Although the installation gave no problems, there is a problem with Tcl/Tk. The new Pythons have their own embedded Tcl/Tk, but when installing matplotlib it links to the Fra

Re: Automation

2013-11-03 Thread MRAB
On 03/11/2013 21:53, Mark Lawrence wrote: On 03/11/2013 21:22, bob gailer wrote: On 11/3/2013 11:19 AM, Renato Barbosa Pim Pereira wrote: I have one .xls file with the values of PV MV and SP, I wanna to calculate Kp Ki Kd with python from this file, can anyone give me any suggestion about how c

Re: Automation

2013-11-03 Thread Denis McMahon
On Sun, 03 Nov 2013 14:19:48 -0200, Renato Barbosa Pim Pereira wrote: > I have one .xls file with the values of PV MV and SP, I wanna to > calculate Kp Ki Kd with python from this file, can anyone give me any > suggestion about how can I do this? From now, thanks. Why use Python? Why not simply w

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread Grant Edwards
On 2013-11-03, Jim Gibson wrote: > In article , E.D.G. > wrote: > >>My main, complex programs won't be run at Web sites. They will >> instead continue to be available as downloadable exe programs. The CGI (or >> whatever) programming work would involve relatively simple programs. But >

Re: Slicing with negative strides

2013-11-03 Thread Martin Manns
On 29 Oct 2013 05:22:00 GMT Steven D'Aprano wrote: > Does anyone here use slices (or range/xrange) with negative strides > other than -1? I have used negative strides for comparing discrete sequences e. g. for turbulence analysis, and I hope that my code will still run in Python 4. Martin -- h

Re: Automation

2013-11-03 Thread bob gailer
On 11/3/2013 4:48 PM, renato.barbosa.pim.pere...@gmail.com wrote: http://pastebin.com/N9dgaHTx With this program I can read a csv file with 3 columns, in one of these columns I need to read the value more high and multiply by 0.632 and with result, search in the same column by a value that apr

Re: Automation

2013-11-03 Thread Johannes Findeisen
On Sun, 3 Nov 2013 14:19:48 -0200 Renato Barbosa Pim Pereira wrote: > I have one .xls file with the values of PV MV and SP, I wanna to calculate > Kp Ki Kd with python from this file, can anyone give me any suggestion > about how can I do this? From now, thanks. Did you looked at http://www.pytho

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-03 Thread Ben Finney
Antoon Pardon writes: > Op 03-11-13 06:17, Steven D'Aprano schreef: > > I'm trying hard to give up threads like this, where people debate > > the subjective tone of an email and ever more pedantic arguments > > about the precise wording. Even when all participants are arguing in > > good faith, t

Re: Automation

2013-11-03 Thread Mark Lawrence
On 03/11/2013 21:22, bob gailer wrote: On 11/3/2013 11:19 AM, Renato Barbosa Pim Pereira wrote: I have one .xls file with the values of PV MV and SP, I wanna to calculate Kp Ki Kd with python from this file, can anyone give me any suggestion about how can I do this? You could start by explainin

Re: Automation

2013-11-03 Thread renato . barbosa . pim . pereira
http://pastebin.com/N9dgaHTx With this program I can read a csv file with 3 columns, in one of these columns I need to read the value more high and multiply by 0.632 and with result, search in the same column by a value that aproximate with this result, and then return the vector position. --

Re: Automation

2013-11-03 Thread bob gailer
On 11/3/2013 11:19 AM, Renato Barbosa Pim Pereira wrote: I have one .xls file with the values of PV MV and SP, I wanna to calculate Kp Ki Kd with python from this file, can anyone give me any suggestion about how can I do this? You could start by explaining what those terms mean. They have no di

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-03 Thread Antoon Pardon
Op 03-11-13 06:17, Steven D'Aprano schreef: > On Sat, 02 Nov 2013 18:22:38 +, Joshua Landau wrote: > [...] >> Sure, you in all probability didn't mean it like that but rurpy isn't >> uncalled for in raising the concern. Really I just want to remind you >> that you're both on the same side here.

Re: zero argument member functions versus properties

2013-11-03 Thread Peter Cacioppi
Ian said : " Whereas in Python, an attribute access is just compiled as an attribute access no matter what the underlying implementation of that access may end up being at run-time. " Really? Very nice. Have a good link handy for that? I'm compiling a codex of "why py is better?". -- https://ma

Debugging decorator

2013-11-03 Thread Yaşar Arabacı
I don't think it would be much problem. I can do that when I have spare time. Yasar. > Oh, I just noticed that the person using 2to3 wasn't the OP. My > apologies, my language was aimed at the decorator's primary developer. > Yasar, are you prepared to take on Python 3 support fully? If it's as >

ANN: rom 0.22 - Redis object mapper for Python

2013-11-03 Thread Josiah Carlson
Hey everyone, As time progresses, so does my Redis object mapper. The "rom" package is a Redis object mapper for Python. It sports an interface similar to Django's ORM, SQLAlchemy + Elixir, or Appengine's datastore. The changelog for recent releases can be seen below my signature. You can find

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread Mark Lawrence
On 03/11/2013 18:28, rusi wrote: Which means take something like the pairwise function and code it up in python and julia -- its hardly 10 lines of code. And see what comparative performance you get. Solely on the grounds that you've mentioned julia how about this http://blog.leahhanson.u

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread rusi
On Sunday, November 3, 2013 1:13:13 PM UTC+5:30, Steven D'Aprano wrote: > On Sun, 03 Nov 2013 01:02:24 -0500, E.D.G. wrote: > [...] > > Since Perl has a calculation speed > > limit that is probably not easy to get around, before too long another > > language will be selected for initially doing ce

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread Jim Gibson
In article , E.D.G. wrote: >My main, complex programs won't be run at Web sites. They will > instead continue to be available as downloadable exe programs. The CGI (or > whatever) programming work would involve relatively simple programs. But > they would need to be able to generate c

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-03 Thread rurpy
On 11/02/2013 11:17 PM, Steven D'Aprano wrote: > On Sat, 02 Nov 2013 18:22:38 +, Joshua Landau wrote: > [...] >> Sure, you in all probability didn't mean it like that but rurpy isn't >> uncalled for in raising the concern. Really I just want to remind you >> that you're both on the same side he

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-03 Thread rurpy
On 11/01/2013 09:52 PM, Steven D'Aprano wrote: >[...] > I did not declare as a > fact that he had no experience, as you claim, but posed it as a question > and expressed it explicitly as a subjective observation. This is a key point. Several of your other denials are true only if you are right

Automation

2013-11-03 Thread Renato Barbosa Pim Pereira
I have one .xls file with the values of PV MV and SP, I wanna to calculate Kp Ki Kd with python from this file, can anyone give me any suggestion about how can I do this? From now, thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-03 Thread Joshua Landau
On 3 November 2013 15:34, Joshua Landau wrote: >I can genuinely compress > the whole structure by N log2 Y items. By which I mean 2N items. -- https://mail.python.org/mailman/listinfo/python-list

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-03 Thread Joshua Landau
On 3 November 2013 03:17, Steven D'Aprano wrote: > On Sat, 02 Nov 2013 14:31:09 -0700, Tim Roberts wrote: > >> jonas.thornv...@gmail.com wrote: >>> >>>Well then i have news for you. >> >> Well, then, why don't you share it? >> >> Let me try to get you to understand WHY what you say is impossible.

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-03 Thread Michael Torrie
On 11/03/2013 12:09 AM, Mark Janssen wrote: >>> Congratulations Jonas. My kill file for this list used to have only one >>> name, but now has 2. >> >> You have more patience than I! Jonas just made mine seven. :) > > Gosh, don't kill the guy. It's not an obvious thing to hardly anyone > but co

Re: Debugging decorator

2013-11-03 Thread Chris Angelico
On Sun, Nov 3, 2013 at 9:55 PM, Jason Friedman wrote: > >> I wrote this decorator: https://gist.github.com/yasar11732/7163528 >> > I ran it with Python 2 and thought it was neat. > Most of my work is Python 3. > I ran 2to3-3.3 against it and I am getting this error: > > $ ./simple.py > Traceback (

Re: Debugging decorator

2013-11-03 Thread Chris Angelico
On Mon, Nov 4, 2013 at 12:20 AM, Chris Angelico wrote: > As print is now a function, you're going to need to construct a > function call element instead of a special 'print' node. I don't know > how to do that as I'm not an AST expert, but hopefully you can work it > out from there? > > If you nee

Re: How to add a current string into an already existing list

2013-11-03 Thread Chris Angelico
On Sun, Nov 3, 2013 at 11:16 PM, Roy Smith wrote: > The limitation, of course, is that the data is opaque as far as the > database goes; you can't do queries against it. But, if all you need to > do is store the list and be able to retrieve it, it's a perfectly > reasonable thing to do, and a lot

Re: First day beginner to python, add to counter after nested loop

2013-11-03 Thread jonas . thornvall
Den lördagen den 2:e november 2013 kl. 21:19:44 UTC+1 skrev Tim Roberts: > jonas.thornv...@gmail.com wrote: > > > > > >I certainly do not like the old bracket style it was a catastrophe, but > > >in honesty the gui editor of python should have what i propose, a parser > > >that indent automati

Re: First day beginner to python, add to counter after nested loop

2013-11-03 Thread jonas . thornvall
Den lördagen den 2:e november 2013 kl. 21:19:44 UTC+1 skrev Tim Roberts: > jonas.thornv...@gmail.com wrote: > > > > > >I certainly do not like the old bracket style it was a catastrophe, but > > >in honesty the gui editor of python should have what i propose, a parser > > >that indent automati

Re: How to add a current string into an already existing list

2013-11-03 Thread Roy Smith
In article , Gregory Ewing wrote: > Nick the Gr33k wrote: > > I just want a mysql column type that can be eligible to store an array > > of elements, a list that is, no need for having a seperate extra table > > for that if we can have a column that can store a list of values. > > Relational

Re: First day beginner to python, add to counter after nested loop

2013-11-03 Thread Antoon Pardon
Op 02-11-13 21:19, Tim Roberts schreef: > jonas.thornv...@gmail.com wrote: >> >> I certainly do not like the old bracket style it was a catastrophe, but >> in honesty the gui editor of python should have what i propose, a parser >> that indent automaticly at loops, functions and end. > > Many edi

Re: Algorithm that makes maximum compression of completly diffused data.

2013-11-03 Thread Gene Heskett
On Sunday 03 November 2013 04:40:45 Ethan Furman did opine: > On 10/30/2013 01:32 PM, Gene Heskett wrote: > > Congratulations Jonas. My kill file for this list used to have only > > one name, but now has 2. > > You have more patience than I! Jonas just made mine seven. :) > > -- > ~Ethan~ Ye

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-11-03 Thread Antoon Pardon
Op 03-11-13 06:17, Steven D'Aprano schreef: > On Sat, 02 Nov 2013 18:22:38 +, Joshua Landau wrote: > [...] >> Sure, you in all probability didn't mean it like that but rurpy isn't >> uncalled for in raising the concern. Really I just want to remind you >> that you're both on the same side here.

Re: Parsing multiple lines from text file using regex

2013-11-03 Thread Jason Friedman
> Hi, > I am having an issue with something that would seem to have an easy > solution, but which escapes me. I have configuration files that I would > like to parse. The data I am having issue with is a multi-line attribute > that has the following structure: > > banner > Banner text > Banner

Re: Debugging decorator

2013-11-03 Thread Jason Friedman
> I wrote this decorator: https://gist.github.com/yasar11732/7163528 > > I ran it with Python 2 and thought it was neat. Most of my work is Python 3. I ran 2to3-3.3 against it and I am getting this error: $ ./simple.py Traceback (most recent call last): File "./simple.py", line 3, in @debug

Re: multiprocessing: child process race to answer

2013-11-03 Thread Mark Lawrence
On 03/11/2013 10:10, capple...@gmail.com wrote: On Friday, November 1, 2013 10:35:47 PM UTC-4, smhall05 wrote: I am using a basic multiprocessing snippet I found: #- from multiprocessing import Pool def f(x): return x*x if __na

Re: multiprocessing: child process race to answer

2013-11-03 Thread cappleman
On Friday, November 1, 2013 10:35:47 PM UTC-4, smhall05 wrote: > I am using a basic multiprocessing snippet I found: > > > > #- > > from multiprocessing import Pool > > > > def f(x): > > return x*x > > > > if __name__ == '__main__'

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread Mark Lawrence
On 03/11/2013 09:47, E.D.G. wrote: "Steven D'Aprano" wrote in message news:5275fe91$0$29972$c3e8da3$54964...@news.astraweb.com... http://jakevdp.github.io/blog/2013/06/15/numba-vs-cython-take-2/ http://technicaldiscovery.blogspot.com.au/2011/06/speeding-up-python-numpy-cython-and.html

Re: How to add a current string into an already existing list

2013-11-03 Thread Antoon Pardon
Op 03-11-13 07:06, Gregory Ewing schreef: > Nick the Gr33k wrote: >> I just want a mysql column type that can be eligible to store an array of >> elements, a list that is, no need for having a seperate extra table for that >> if we can have a column that can store a list of values. > > Relationa

Re: zero argument member functions versus properties

2013-11-03 Thread Ian Kelly
On Sun, Nov 3, 2013 at 1:06 AM, Peter Cacioppi wrote: > Actually C# is mature enough for this idiom. C# and Python both support > getter/setter methods that present as direct attribute access to client code, > and thus allow you to refactor the class without breaking backwards > compatibility.

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread E.D.G.
"Steven D'Aprano" wrote in message news:5275fe91$0$29972$c3e8da3$54964...@news.astraweb.com... http://jakevdp.github.io/blog/2013/06/15/numba-vs-cython-take-2/ http://technicaldiscovery.blogspot.com.au/2011/06/speeding-up-python-numpy-cython-and.html It appears that Python can do what

Re: zero argument member functions versus properties

2013-11-03 Thread Peter Cacioppi
Steve said: "(This isn't Java or Ruby, where data-hiding is compulsory :-) " At the risk of striking a sessile equine, when the attribute shouldn't be modified directly by client code, then you hide it and use a property to allow client code access. It is the idiom of allowing client code to e

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread Steven D'Aprano
On Sun, 03 Nov 2013 01:02:24 -0500, E.D.G. wrote: [...] > Since Perl has a calculation speed > limit that is probably not easy to get around, before too long another > language will be selected for initially doing certain things such as > performing calculations and plotting charts. And the existi

Re: zero argument member functions versus properties

2013-11-03 Thread Peter Cacioppi
Steve said: "(This isn't Java or Ruby, where data-hiding is compulsory :-) " (You could add C++ and C# to this list). This is golden nugget for me. The old synapses are pretty well grooved to think of data hiding as good hygiene. Even though I've read a fair bit of Python text I still need to

Re: Basic Python Questions - Oct. 31, 2013

2013-11-03 Thread rusi
On Sunday, November 3, 2013 11:15:48 AM UTC+5:30, E.D.G. wrote: > "rusi" wrote: > >>Not sure what will… you may look at Julia: http://julialang.org/ >That program language speed comparison table looks quite interesting. > And I asked some of the other people that I work with to take a l