Re: Query on Python Compiled source--Urgent

2013-10-14 Thread Tim Golden
On 14/10/2013 06:41, chandan kumar wrote: > I'm working on a python project for protocol testing.I need to provide > only python compiled source to our customer. > > Here are the steps followed to take python compiled from actual source. > 1.There are 5 different test suites under the project > 2.

Re: basic maze problem with turtle

2013-10-14 Thread Antoon Pardon
Op 14-10-13 00:03, Denis McMahon schreef: > Except perhaps Nikos. Nikos can probably write you extremely elegant one > line python solutions to any coding problem you describe to him. His > solutions might suffer the very minor flaw of not working, but they're > guaranteed to be Nikos certified

Re: Query on Python Compiled source--Urgent

2013-10-14 Thread chandan kumar
Hi, Yes ,its not actual logging module.Using pyexcelerator we are storing just test results to excel file. Each test suite has some 25-100 test cases.We are using unit test from python ,after completion of each test case the test result will be stored in excel file.Below is the sample result tha

Re: Query on Python Compiled source--Urgent

2013-10-14 Thread chandan kumar
Hi, Yes ,its not actual logging module.Using pyexcelerator we are storing just test results to excel file.Each test suite has some 25-100 test cases.We are using unit test from python ,after completion of each test case the test result will be stored in excel file.Below is the sample resu

Re: Query on Python Compiled source--Urgent

2013-10-14 Thread Tim Golden
[Please post your answer below the previous reply, not above] [... snip most of original traceback ...] > File "C:\Python27\lib\site-packages\pyExcelerator\CompoundDoc.py", > line 554, in save > f = file(filename, 'wb') > IOError: [Errno 22] invalid mode ('wb') or filename: > '.\\TestResults

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread rusi
On Sunday, October 13, 2013 6:34:56 PM UTC+5:30, Roy Smith wrote: > To be fair to Larry, there were different design drivers working there. One more thing to be said for perl: I remember when some colleague first told me about perl (I guess early 90s) I was incredulous that the *same* language

Re: basic maze problem with turtle

2013-10-14 Thread Alister
On Sun, 13 Oct 2013 14:53:36 -0700, baujacob wrote: > Hi everyone, I'm trying to create a simple maze program. When the user > finishes the maze, I want to print in big letters "You Win!" and when > the user hits a wall, I want the user to go back to the beginning of the > maze. The problem is "co

Re: Query on Python Compiled source--Urgent

2013-10-14 Thread Alister
On Mon, 14 Oct 2013 13:41:35 +0800, chandan kumar wrote: > > Now my question is of there any issue with logging to excel it should > happen for the first test suite itself,but it occurs in either 2,3,4 or > 5 test suite. Some it runs without any issues. Logging to excel is probably a wrong thing

Re: basic maze problem with turtle

2013-10-14 Thread Denis McMahon
On Sun, 13 Oct 2013 23:54:34 +, Steven D'Aprano wrote: (and Gary Herron wrote similar) > Was that really necessary? Am I still pissed at being told my solution was crap because it had too many lines? -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/mailman/listinfo/p

Re: Searching for a list of strings in a file with Python

2013-10-14 Thread Dave Angel
On 14/10/2013 01:34, Starriol wrote: > Hi guys, > > I'm trying to search for several strings, which I have in a .txt file line by > line, on another file. > So the idea is, take input.txt and search for each line in that file in > another file, let's call it rules.txt. > > So far, I've been able

Re: basic maze problem with turtle

2013-10-14 Thread Sam Fourman Jr.
On Sun, Oct 13, 2013 at 11:44 PM, Gary Herron < gary.her...@islandtraining.com> wrote: > On 10/13/2013 03:03 PM, Denis McMahon wrote: > >> Except perhaps Nikos. Nikos can probably write you extremely elegant one >> line python solutions to any coding problem you describe to him. His >> solutions m

Re: basic maze problem with turtle

2013-10-14 Thread Neil Cerutti
On 2013-10-14, Sam Fourman Jr. wrote: > Who the hell is Nikos? I hear reference to this guy ALL the > time, is he a troll or a python god? this simply isn't clear.. > I have only been on this list a few months. Check the archives for the last couple of months, and make your own judgment. https:/

Re: basic maze problem with turtle

2013-10-14 Thread Alister
On Mon, 14 Oct 2013 13:13:15 +, Neil Cerutti wrote: > On 2013-10-14, Sam Fourman Jr. wrote: >> Who the hell is Nikos? I hear reference to this guy ALL the time, is he >> a troll or a python god? this simply isn't clear.. >> I have only been on this list a few months. > > Check the archives f

Re: basic maze problem with turtle

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 12:02 AM, Sam Fourman Jr. wrote: > Who the hell is Nikos? I hear reference to this guy ALL the time, is he a > troll or a python god? > this simply isn't clear.. I have only been on this list a few months. He's a troll, sometimes goes by the name "Ferrous Cranus", and he r

Re: basic maze problem with turtle

2013-10-14 Thread Antoon Pardon
Op 14-10-13 15:02, Sam Fourman Jr. schreef: > > Who the hell is Nikos? I hear reference to this guy ALL the time, is he > a troll or a python god? > this simply isn't clear.. I have only been on this list a few months. He is the lists help vampire. He comes to the list when his programs break and

Re: Trying to force turtle back to beginning of maze after collides with wall

2013-10-14 Thread Denis McMahon
On Sun, 13 Oct 2013 15:26:03 -0700, baujacob wrote: > Hi everyone, I'm trying to create a simple maze program. When the user > finishes the maze, I want to print in big letters "You Win!" and when > the user hits a wall, I want the user to go back to the beginning of the > maze. The problem is "co

python33.lib missing for build_ext in venv environment

2013-10-14 Thread Robin Becker
I'm trying to port reportlab extensions to Python 3.3. On windows I get a missing library error when trying to build/install the trial reportlab in a virtual environment eg C:\code\hg-repos\reportlab>\python33\python -m venv tpy33 C:\code\hg-repos\reportlab>tpy33\Scripts\activate (tpy33) C:\co

Re: python33.lib missing for build_ext in venv environment

2013-10-14 Thread Robin Becker
On 14/10/2013 16:17, Robin Becker wrote: I'm trying to port reportlab extensions to Python 3.3. On windows I get a missing library error when trying to build/install the trial reportlab in a virtual environment eg C:\code\hg-repos\reportlab>\python33\python -m venv tpy33 .ns\rl_accel\_

Re: python33.lib missing for build_ext in venv environment

2013-10-14 Thread Marco Buttu
On 10/14/2013 05:17 PM, Robin Becker wrote: I'm trying to port reportlab extensions to Python 3.3. On windows I get a missing library error when trying to build/install the trial reportlab in a virtual environment eg This is my configuration file: $ cat myvenv/pyvenv.cfg home = /usr/local/bin

error message: "Cannot find GStreamer Python Library"

2013-10-14 Thread rickcheney
I am trying to run a Python script and I get the error message: "Cannot find GStreamer Python Library". I have Windows XP. I tried uninstalling and re-installing GStreamer but that didn't fix the error message. I installed the complete version of GStreamer. Anybody have any ideas of things to

Re: python33.lib missing for build_ext in venv environment

2013-10-14 Thread Robin Becker
On 14/10/2013 17:01, Marco Buttu wrote: On 10/14/2013 05:17 PM, Robin Becker wrote: I'm trying to port reportlab extensions to Python 3.3. On windows I get a missing library error when trying to build/install the trial reportlab in a virtual environment eg This is my configuration file: $ ca

Re: closure = decorator?

2013-10-14 Thread Tim
On Saturday, October 12, 2013 4:54:34 PM UTC-4, Peter Cacioppi wrote: > On Thursday, October 10, 2013 6:51:21 AM UTC-7, Tim wrote: > > > I've read a couple of articles about this, but still not sure. > > When someone talks about a closure in another language (I'm learning Lua on > > the side), is

Re: error message: "Cannot find GStreamer Python Library"

2013-10-14 Thread Mark Lawrence
On 14/10/2013 17:29, rickche...@gmail.com wrote: I am trying to run a Python script and I get the error message: "Cannot find GStreamer Python Library". I have Windows XP. I tried uninstalling and re-installing GStreamer but that didn't fix the error message. I installed the complete version

Re: basic maze problem with turtle

2013-10-14 Thread Tobiah
On 10/13/2013 04:44 PM, Gary Herron wrote: On 10/13/2013 03:03 PM, Denis McMahon wrote: Except perhaps Nikos. Nikos can probably write you extremely elegant one line python solutions to any coding problem you describe to him. His solutions might suffer the very minor flaw of not working, but the

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread John Nagle
On 10/12/2013 3:37 PM, Chris Angelico wrote: > On Sat, Oct 12, 2013 at 7:10 AM, Peter Cacioppi > wrote: >> Along with "batteries included" and "we're all adults", I think >> Python needs a pithy phrase summarizing how well thought out it is. >> That is to say, the major design decisions were all

Re: Searching for a list of strings in a file with Python

2013-10-14 Thread Denis McMahon
On Sun, 13 Oct 2013 22:34:43 -0700, Starriol wrote: > I'm trying to search for several strings, which I have in a .txt file > line by line, on another file. > So the idea is, take input.txt and search for each line in that file in > another file, let's call it rules.txt. > > So far, I've been abl

PID tuning.

2013-10-14 Thread Renato Barbosa Pim Pereira
I am looking for some software for PID tuning that would take the result of a step response, and calculates Td, Ti, Kp, any suggestion or hint of where to start?, thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: PID tuning.

2013-10-14 Thread Ben Finney
Renato Barbosa Pim Pereira writes: > I am looking for some software for PID tuning that would take the > result of a step response, and calculates Td, Ti, Kp, any suggestion > or hint of where to start?, thanks. Is this related to Python? What is “PID tuning”, and what have you tried already? -

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Peter Cacioppi
On Saturday, October 12, 2013 3:37:58 PM UTC-7, Chris Angelico wrote: > On Sat, Oct 12, 2013 at 7:10 AM, Peter Cacioppi > > wrote: > > > Along with "batteries included" and "we're all adults", I think Python > > needs a pithy phrase summarizing how well thought out it is. That is to > > say, t

Re: PID tuning.

2013-10-14 Thread Ian Kelly
On Mon, Oct 14, 2013 at 2:37 PM, Renato Barbosa Pim Pereira wrote: > I am looking for some software for PID tuning that would take the result of > a step response, and calculates Td, Ti, Kp, any suggestion or hint of where > to start?, thanks. Googling for "python pid tuning" turns up some hits.

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Mark Lawrence
On 14/10/2013 22:11, Peter Cacioppi wrote: So Python was designed reasonably well, with a minimum of hacky-screw-ups. This happened because Python's growth was effectively managed by an individual who was well suited to the task. In other words, "Guido was here". Good thread, I learned a lot

when to use __new__, when to use __init__

2013-10-14 Thread Peter Cacioppi
I've dome some reading on the difference between __new__ and __init__, and never really groked it. I just followed the advice that you should almost always use __init__. I recently came across a task that required using __new__ and not __init__. I was a bit intimidated at first, but it was quic

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 6:18 AM, John Nagle wrote: > On 10/12/2013 3:37 PM, Chris Angelico wrote: >> "Designed". >> >> You simply can't get a good clean design if you just let it grow by >> itself, one feature at a time. > > No, Python went through the usual design screwups. Look at how > pai

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 8:11 AM, Peter Cacioppi wrote: > So Python was designed reasonably well, with a minimum of hacky-screw-ups. > This happened because Python's growth was effectively managed by an > individual who was well suited to the task. In other words, "Guido was here". > > Good threa

Re: PID tuning.

2013-10-14 Thread Terry Reedy
On 10/14/2013 5:03 PM, Ben Finney wrote: Renato Barbosa Pim Pereira writes: I am looking for some software for PID tuning that would take the result of a step response, and calculates Td, Ti, Kp, any suggestion or hint of where to start?, thanks. Is this related to Python? What is “PID tunin

Re: basic maze problem with turtle

2013-10-14 Thread Joshua Landau
On 13 October 2013 23:18, wrote: > import turtle > userTurtle = turtle.Turtle() > draw = turtle.Turtle() > scr = turtle.Screen() > > def drawMaze(): > draw.pencolor("gold") [lots of lines] > print(userTurtle.pos()) > > scr.onkeypress(m1, "Up") > scr.onkeypress(m2, "Left") > scr.onkeypress

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 6:18 AM, John Nagle wrote: > No, Python went through the usual design screwups. > Each of [the below] reflects a design error in the type system which > had to be corrected. I'll pick up each one here as I think some of them need further discussion. > Look at how

Re: when to use __new__, when to use __init__

2013-10-14 Thread Ethan Furman
On 10/14/2013 03:07 PM, Peter Cacioppi wrote: I've dome some reading on the difference between __new__ and __init__, and never really groked it. I just followed the advice that you should almost always use __init__. Object creation in Python is a two step process: - create the object (aka

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Mark Janssen
On Mon, Oct 14, 2013 at 12:18 PM, John Nagle wrote: > On 10/12/2013 3:37 PM, Chris Angelico wrote: >> On Sat, Oct 12, 2013 at 7:10 AM, Peter Cacioppi >> wrote: >>> Along with "batteries included" and "we're all adults", I think >>> Python needs a pithy phrase summarizing how well thought out it i

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Terry Reedy
On 10/14/2013 7:11 PM, Chris Angelico wrote: I'm not sure what you mean by all of these - I've known Python for only a (relatively) short time, wasn't there in the 1.x days (much less the <1.0 days). But according to its history page, the early 1.x versions of Python predate the widespread adopt

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 12:31 PM, Mark Janssen wrote: >> Python objects have dynamic operations suited >> to a naive interpreter like CPython. > > Naive, no. > "Naive", in this instance, means executing code exactly as written, without optimizing things (and it's not an insult, btw). For instance

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Roy Smith
In article , Terry Reedy wrote: > The first versions of Python and unicode were developed and released > about the same time. No one knew that either would be as successful as > they have become over two decades. Much the same can be said for IPv6 :-) -- https://mail.python.org/mailman/listi

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Mark Janssen
>>> Python objects have dynamic operations suited >>> to a naive interpreter like CPython. >> >> Naive, no. > > "Naive", in this instance, means executing code exactly as written, > without optimizing things (and it's not an insult, btw). In that case, you're talking about a "non-optimizing" inter

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 1:11 PM, Mark Janssen wrote: >> "Naive", in this instance, means executing code exactly as written, >> without optimizing things (and it's not an insult, btw). > > In that case, you're talking about a "non-optimizing" interpreter, but > then, that what is supposed to happen

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread rusi
On Tuesday, October 15, 2013 7:01:37 AM UTC+5:30, zipher wrote: > Yes, and all of that is because, the world has not settled on some > simple facts. It needs an understanding of type system. It's been > throwing terms around, some of which are well-defined, but others, > not: there has been enor

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Steven D'Aprano
On Mon, 14 Oct 2013 12:18:59 -0700, John Nagle wrote: > No, Python went through the usual design screwups. Look at how > painful the slow transition to Unicode was, from just "str" to Unicode > strings, ASCII strings, byte strings, byte arrays, 16 and 31 bit > character builds, and finally au

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 2:18 PM, Steven D'Aprano wrote: > Even using vanilla CPython, you can write pure > Python code that (for example) checks over 12,000 nine-digit integers for > primality per second, on a relatively old and slow computer. If that's > not *fast*, nothing is. Agreed. I used to

Re: PID tuning.

2013-10-14 Thread Chris Angelico
On Tue, Oct 15, 2013 at 8:03 AM, Ben Finney wrote: > Renato Barbosa Pim Pereira > writes: > >> I am looking for some software for PID tuning that would take the >> result of a step response, and calculates Td, Ti, Kp, any suggestion >> or hint of where to start?, thanks. > > Is this related to Py

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread rusi
On Tuesday, October 15, 2013 8:48:25 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 14 Oct 2013 12:18:59 -0700, John Nagle wrote: > > > No, Python went through the usual design screwups. Look at how > > painful the slow transition to Unicode was, from just "str" to Unicode > > strings, ASCII s

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Steven D'Aprano
On Mon, 14 Oct 2013 20:48:15 -0700, rusi wrote: > On Tuesday, October 15, 2013 8:48:25 AM UTC+5:30, Steven D'Aprano wrote: >> On Mon, 14 Oct 2013 12:18:59 -0700, John Nagle wrote: >> >> > No, Python went through the usual design screwups. Look at how >> > painful the slow transition to Unico