Re: I need help for multidimensional loop

2020-01-26 Thread DL Neil via Python-list
On 27/01/20 12:08 PM, pyotr filipivich wrote: Growth Hacking Formation on Sun, 26 Jan 2020 12:36:05 -0800 (PST) typed in comp.lang.python the following: Hi guys, I need your help please to sold a complicate problem. It is difficult for me to find the solution but in fact, I am sure it is jus

Re: I need help for multidimensional loop

2020-01-26 Thread pyotr filipivich
Growth Hacking Formation on Sun, 26 Jan 2020 12:36:05 -0800 (PST) typed in comp.lang.python the following: >Hi guys, > >I need your help please to sold a complicate problem. > >It is difficult for me to find the solution but in fact, I am sure it is just >a few lines of code. > >The problem is a

Re: I need help for multidimensional loop

2020-01-26 Thread Python
Le 26/01/2020 à 21:36, Growth Hacking Formation a écrit : Hi guys, I need your help please to sold a complicate problem. It is difficult for me to find the solution but in fact, I am sure it is just a few lines of code. The problem is about some kind of multidimensional loop with some test IF

I need help for multidimensional loop

2020-01-26 Thread Growth Hacking Formation
Hi guys, I need your help please to sold a complicate problem. It is difficult for me to find the solution but in fact, I am sure it is just a few lines of code. The problem is about some kind of multidimensional loop with some test IF. I worked hours on it, but I am a newbie and it is too dif

Re: Hello, I need help.

2019-10-15 Thread Piet van Oostrum
Damla Pehlivan writes: > Dear Python Team, [...] > I am writing this mail quite emotionally. I asked a new "friend" for help, > but he laughed. He said it was because I am a girl and this is why I could > not do it. I want to prove to him and the whole world that I can do it. I > have a lesson n

Re: Hello, I need help.

2019-10-15 Thread Peter Pearson
On Tue, 15 Oct 2019 18:57:04 +0300, Damla Pehlivan wrote: [snip] > . . . I downloaded the python program, and I > also downloaded Pycharm to use it. To be fair, I do not know what I am > doing, but I made some progress last night and I was happy about it. Today > when I came back from university

Re: Hello, I need help.

2019-10-15 Thread Igor Korot
Hi, Are you trying to run your program, PyCharm, or the python console? Thank you. On Tue, Oct 15, 2019 at 12:01 PM Damla Pehlivan wrote: > > Dear Python Team, > First, I would like to introduce myself. My name is Damla Pehlivan, and I > live in Ankara/Turkey. I am a university student at Ankar

Hello, I need help.

2019-10-15 Thread Damla Pehlivan
Dear Python Team, First, I would like to introduce myself. My name is Damla Pehlivan, and I live in Ankara/Turkey. I am a university student at Ankara University. My major is Biology; therefore, I want to learn Python to use for Data Science. When I researched and asked my professors, they suggeste

Re: I need help to put the output from terminal in a csv file

2018-09-07 Thread catanaangelo
Thanks a lot, I've managed to make it work they way I wanted -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help to put the output from terminal in a csv file

2018-09-07 Thread Rhodri James
On 07/09/18 13:55, catanaang...@gmail.com wrote: HI! I need help putting the output from terminal in a csv file. I work on linux and I have python 2.7.15. I am running a python program which also runs some shell scripts. I need to capture the output from the .sh scripts and put it nicely in a

Re: I need help to put the output from terminal in a csv file

2018-09-07 Thread Brian Oney via Python-list
Please study the following to get you started. It looks like JSON output that you are dealing, which is good. I added a ", to the "body"-line, because I assume that you botched that when giving an example. ```python #!/usr/bin/env python import json output = ''' {    "error" : {   "body"

I need help to put the output from terminal in a csv file

2018-09-07 Thread catanaangelo
HI! I need help putting the output from terminal in a csv file. I work on linux and I have python 2.7.15. I am running a python program which also runs some shell scripts. I need to capture the output from the .sh scripts and put it nicely in a csv table. I am using "commands.getoutput(

Re: I need help with this python regex

2018-04-28 Thread Peter J. Holzer
On 2018-04-27 21:04:49 -0700, Ed Manning wrote: > Here is the source code. > > > import re > > > log = open("csg.txt", "r") # Opens a file call session.txt > regex = re.compile(r'policy id \d+') # search for the policy ID > regex1 = re.compile(r'log count \d+') # search for the policy ID > > f

I need help with this python regex

2018-04-27 Thread Ed Manning
Here is the source code. import re log = open("csg.txt", "r") # Opens a file call session.txt regex = re.compile(r'policy id \d+') # search for the policy ID regex1 = re.compile(r'log count \d+') # search for the policy ID for match in log: x = regex.findall(match) y = regex1.findall(m

Re: I need help with making my claculator

2017-05-24 Thread woooee
This is most likely using class objects instead of instance objects. Not a normal thing in Python. As stated above, it is difficult, as the responses in this thread show, to get assistance with some alternate coding style. It is better to use Python in the way that is intended. Otherwise, yo

Re: I need help with making my claculator

2017-05-24 Thread MRAB
On 2017-05-25 00:02, woo...@gmail.com wrote: How do you then run the mainloop, i.e. get it to do something? tkinter.mainloop() -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with making my claculator

2017-05-24 Thread woooee
How do you then run the mainloop, i.e. get it to do something? -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with making my claculator

2017-05-21 Thread Peter Otten
woo...@gmail.com wrote: > First, you have to have a Tk instance before you do anything else. Take a > look at this example, and then expand upon it to create the calculator > http://python-textbok.readthedocs.io/en/1.0/Introduction_to_GUI_Programming.html While I agree that creating a Tk instan

Re: I need help with making my claculator

2017-05-21 Thread woooee
First, you have to have a Tk instance before you do anything else. Take a look at this example, and then expand upon it to create the calculator http://python-textbok.readthedocs.io/en/1.0/Introduction_to_GUI_Programming.html -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with making my claculator

2017-05-20 Thread bartc
On 20/05/2017 14:49, Steve D'Aprano wrote: On Sat, 20 May 2017 09:13 pm, bartc wrote: Try running the program. (I did that but I can't follow this style of coding so can't help.) Chris is within his rights to refuse to run untrusted code downloaded over the internet. It's not even the secu

Re: I need help with making my claculator

2017-05-20 Thread Joel Goldstick
gt; Give us an interesting problem, and some of us will put *hours* of work into > it. But give us something vague or boring or trivial, and What's In It For > Us? > > The Original Poster garsink at gmail.com cares so little for our time that > he or she didn't even *ask* a

Re: I need help with making my calculator

2017-05-20 Thread Steve D'Aprano
On Sat, 20 May 2017 11:42 am, gars...@gmail.com wrote: > m using Python 3.4.2 > This is my code: Please read this first: http://sscce.org/ And then indent the "calc" method so that it is part of the class: > def calc(self, display): > try: > display.set(eval(display.get())) > e

Re: I need help with making my claculator

2017-05-20 Thread Steve D'Aprano
nal Poster garsink at gmail.com cares so little for our time that he or she didn't even *ask* a question. Or give a name we can call them (email addresses are so impersonal and unfriendly). Nothing but a pair of statements: I need help, here's my code. Well, we all need help, and thank yo

Re: I need help with making my claculator

2017-05-20 Thread Chris Angelico
On Sat, May 20, 2017 at 9:13 PM, bartc wrote: > On 20/05/2017 03:10, Chris Angelico wrote: >> >> On Sat, May 20, 2017 at 11:40 AM, wrote: >>> >>> def calc(self, display): >>> try: >>> display.set(eval(display.get())) >>> except: >>> display.set("Type an actual equation pl

Re: I need help with making my claculator

2017-05-20 Thread bartc
On 20/05/2017 03:10, Chris Angelico wrote: On Sat, May 20, 2017 at 11:40 AM, wrote: def calc(self, display): try: display.set(eval(display.get())) except: display.set("Type an actual equation please!") Without any specific questions, you're not going to get anything m

Re: I need help with making my claculator

2017-05-19 Thread Chris Angelico
On Sat, May 20, 2017 at 11:40 AM, wrote: > def calc(self, display): > try: > display.set(eval(display.get())) > except: > display.set("Type an actual equation please!") Without any specific questions, you're not going to get anything more than a basic eyeballing of the co

Re: I need help with making my calculator

2017-05-19 Thread MRAB
On 2017-05-20 02:42, gars...@gmail.com wrote: m using Python 3.4.2 This is my code: from tkinter import* def iCalc(source, side): storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue") storeObj.pack(side=side, expand=YES, fill=BOTH) return storeObj def button (source,

I need help with making my calculator

2017-05-19 Thread garsink
m using Python 3.4.2 This is my code: from tkinter import* def iCalc(source, side): storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue") storeObj.pack(side=side, expand=YES, fill=BOTH) return storeObj def button (source, side, text, command=None): storeObj= B

I need help with making my claculator

2017-05-19 Thread gareths2017
Im using Python 3.4.2 This is my code: from tkinter import* def iCalc(source, side): storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue") storeObj.pack(side=side, expand=YES, fill=BOTH) return storeObj def button (source, side, text, command=None): storeObj= Button(s

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-25 Thread Santhosh Kumar
Thanks a lot , I got this solution after installing ghostscript Regards sandy On Thu, Feb 23, 2017 at 6:15 PM, Billy Earney wrote: > imagemagick (ie, convert) has a policy.xml file that stops you from > accessing any resource that starts with '@'. > > type 'identify -list policy' > the first l

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-23 Thread Billy Earney
imagemagick (ie, convert) has a policy.xml file that stops you from accessing any resource that starts with '@'. type 'identify -list policy' the first line should tell you where your policy.xml file is located. My policy.xml file is lcoated at /etc/ImageMagick-6/policy.xml open that file, and g

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-22 Thread sntc99
On Thursday, January 26, 2017 at 8:12:24 AM UTC+5:30, Tony Chen wrote: > On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico wrote: > > On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen > > wrote: > > > This error can be due to the fact that ImageMagick is not installed on > > > your co

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Thanks! This helped me! -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Peter Otten
Kasper wrote: > How can i make the score stop blinking The following part > #draws the score on the screen > mypen.undo() > mypen.penup() > mypen.hideturtle() > mypen.setposition(-290, 310) > scorestring1 = (name1 + ": %s" + " points ") %score1 > scorestring2 = (nam

I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Hi! How can i make the score stop blinking and how can i make a high score table, in this game made with python? (this game is made on a Macbook) (there are some files in the game that i don't haven't copied into this file! like pyth.GIF)

Re: any one used moviepy please come in!!! I need help, thanks!

2017-01-25 Thread Tony Chen
On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico wrote: > On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote: > > This error can be due to the fact that ImageMagick is not installed on your > > computer, or (for Windows users) that you didn't specify the path to the > > ImageMag

Re: any one used moviepy please come in!!! I need help, thanks!

2017-01-24 Thread Chris Angelico
On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote: > This error can be due to the fact that ImageMagick is not installed on your > computer, or (for Windows users) that you didn't specify the path to the > ImageMagick binary in file conf.py, or.that the path you specified is > incorrect So... i

any one used moviepy please come in!!! I need help, thanks!

2017-01-24 Thread Tony Chen
I have to use moviepy in one of my project. So I downloaded it, and tried the example code on the website. It gives me this error. Anyone can give me some help? Thank you very much! it gives this error: [MoviePy] This command returned an error !Traceback (most recent call last): File "tst.py",

Re: I need help

2016-03-26 Thread Steven D'Aprano
On Sat, 26 Mar 2016 05:52 am, matthew thiel wrote: > So I downloaded python and made an account but when I run it all it does > is give me 3 options repair modify and uninstall I have clicked repair and > modify and let them run but at the end it just exit out so how do I get it > to work??? You

I need help

2016-03-26 Thread matthew thiel
So I downloaded python and made an account but when I run it all it does is give me 3 options repair modify and uninstall I have clicked repair and modify and let them run but at the end it just exit out so how do I get it to work??? Sent from Mail

I need Help

2014-12-01 Thread Ezhilarasan Chandrasekar
Hi Python-list Team, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the final result of the TC (lets say, OK or FAIL or ERROR)? So that If I'm working with

Re: i need help

2013-03-04 Thread Alister
On Mon, 04 Mar 2013 07:07:53 -0800, Bryan Devaney wrote: > On Sunday, March 3, 2013 6:45:26 PM UTC, Kwpolska wrote: >> On Sun, Mar 3, 2013 at 7:46 AM, Michael Torrie >> wrote: >> >> > On 02/21/2013 03:18 AM, leonardo wrote: >> >> >> thanks, problem solved >> >> >> > >> > Apparently not. The

Re: i need help

2013-03-04 Thread Ian Kelly
On Mon, Mar 4, 2013 at 8:07 AM, Bryan Devaney wrote: > On Sunday, March 3, 2013 6:45:26 PM UTC, Kwpolska wrote: >> >> It is! How else could he type those two question marks and 10 double-quotes? >> > > Onscreen Keyboard? Or voice recognition, perhaps. We have no idea what the OP's actual input

Re: i need help

2013-03-04 Thread Bryan Devaney
On Sunday, March 3, 2013 6:45:26 PM UTC, Kwpolska wrote: > On Sun, Mar 3, 2013 at 7:46 AM, Michael Torrie wrote: > > > On 02/21/2013 03:18 AM, leonardo wrote: > > >> thanks, problem solved > > > > > > Apparently not. The shift key on your keyboard still seems to be > > > non-functional. ;) >

Re: i need help

2013-03-03 Thread Kwpolska
On Sun, Mar 3, 2013 at 7:46 AM, Michael Torrie wrote: > On 02/21/2013 03:18 AM, leonardo wrote: >> thanks, problem solved > > Apparently not. The shift key on your keyboard still seems to be > non-functional. ;) > -- > http://mail.python.org/mailman/listinfo/python-list It is! How else could he

Re: i need help

2013-03-02 Thread Michael Torrie
On 02/21/2013 03:18 AM, leonardo wrote: > thanks, problem solved Apparently not. The shift key on your keyboard still seems to be non-functional. ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: i need help

2013-02-21 Thread leonardo
thanks, problem solved Il 21/02/2013 10.13, Chris Angelico ha scritto: On Thu, Feb 21, 2013 at 8:09 PM, leonardo wrote: hi guys, i just created this file: print "i love pizza!" print "pizza" * 20 print "yum" * 40 print "i'm full." and saved it into a file with "idle-gui", if i try to run t

Re: i need help

2013-02-21 Thread Chris Angelico
On Thu, Feb 21, 2013 at 8:09 PM, leonardo wrote: > hi guys, > > i just created this file: > > print "i love pizza!" > print "pizza" * 20 > print "yum" * 40 > print "i'm full." > > and saved it into a file with "idle-gui", if i try to run the program i get > an invalid syntax error, it displays a r

i need help

2013-02-21 Thread leonardo
hi guys, i just created this file: print "i love pizza!" print "pizza" * 20 print "yum" * 40 print "i'm full." and saved it into a file with "idle-gui", if i try to run the program i get an invalid syntax error, it displays a red sign on the quote mark at the end of the first row of my progr

Re: I need help with graphs in python (2.7.3.1)

2012-12-18 Thread Terry Reedy
On 12/18/2012 6:29 AM, hevymet...@gmail.com wrote: Hi there, I hope that there is someone willing to help me out, I need to generate a graph in Python 2.7.3.1, There is only 2.7.3, no 2.7.3.1, at least not officially. I had to make a .CSV file from my Windows system logs (already did that), a

Re: I need help with graphs in python (2.7.3.1)

2012-12-18 Thread Thomas Bach
Hi, Most of the tasks you have to do can be achieved quite easily with the standard library (except the plotting). On Tue, Dec 18, 2012 at 03:29:49AM -0800, hevymet...@gmail.com wrote: > These are some steps I need to do first before creating the graph: > - Get the name of a CSV file from an ini

I need help with graphs in python (2.7.3.1)

2012-12-18 Thread hevymetl07
Hi there, I hope that there is someone willing to help me out, I need to generate a graph in Python 2.7.3.1, but I am not that skilled with Python and I am completely stuck :( I had to make a .CSV file from my Windows system logs (already did that), and the following steps must bw written in th

Re: I need help installing pypng in Python 3.3

2012-10-30 Thread icgwh
On Monday, October 29, 2012 3:48:09 PM UTC+1, Andrew Robinson wrote: > On 10/29/2012 06:39 AM, ic...@tagyourself.com wrote: > > > That's very kind of you but I don't think it would be particularly fitted > > to my needs. The program I'm trying to code creates an image as an 2D array > > of "pixe

Re: I need help installing pypng in Python 3.3

2012-10-29 Thread Andrew Robinson
On 10/29/2012 06:39 AM, ic...@tagyourself.com wrote: That's very kind of you but I don't think it would be particularly fitted to my needs. The program I'm trying to code creates an image as an 2D array of "pixels" which is defined by RGBA value. My program needs to access and modifies every co

Re: I need help installing pypng in Python 3.3

2012-10-29 Thread icgwh
> > Do you have the file c:\Python33\Lib\site-packages\pypng-0.0.13-py3.3.egg ? > > If not, you have not successfully installed pypng. Please try one of > > the methods I gave above. Yes I do have the egg. I'm gonna try to summarize: I don't have installations problems anymore but it seems

Re: I need help installing pypng in Python 3.3

2012-10-29 Thread David Robinow
On Mon, Oct 29, 2012 at 8:23 AM, wrote: > Hello all, > > I am very new to python. I am currently porting a little project of mine from > java to python and I need to be able to construct and write png images. I > naturally turned myself toward pypng to accomplish this. > > I learned from the ne

Re: I need help installing pypng in Python 3.3

2012-10-29 Thread icgwh
That's very kind of you but I don't think it would be particularly fitted to my needs. The program I'm trying to code creates an image as an 2D array of "pixels" which is defined by RGBA value. My program needs to access and modifies every component of every pixels in the image following a set o

Re: I need help installing pypng in Python 3.3

2012-10-29 Thread icgwh
I probably should have mentioned that I'm under W7 ultimate x64, I'm using eclipse Juno (latest) and pydev 2.7.1 -- http://mail.python.org/mailman/listinfo/python-list

Re: I need help installing pypng in Python 3.3

2012-10-29 Thread Andrew Robinson
On 10/29/2012 05:23 AM, icgwh wrote: Hello all, I am very new to python. I am currently porting a little project of mine from java to python and I need to be able to construct and write png images. I naturally turned myself toward pypng to accomplish this. I don't know if this will help, but:

I need help installing pypng in Python 3.3

2012-10-29 Thread icgwh
Hello all, I am very new to python. I am currently porting a little project of mine from java to python and I need to be able to construct and write png images. I naturally turned myself toward pypng to accomplish this. I learned from the net that pypng 0.0.13 is supposed to work in Python 3.x

I need help/information on Freeze.py

2011-08-10 Thread mike turner
Hello all, How do you use freeze.py to freeze an application? I have an application built with pylons and I want to make it into a portable executable, is that possible? Thanks for the help. - mikey -- http://mail.python.org/mailman/listinfo/python-list

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-09 Thread Larry Hudson
On 06/08/2011 11:59 PM, Larry Hudson wrote: On 06/08/2011 01:09 PM, Cathy James wrote: I am almost there, but I need a little help: I would like to ... Here's one possible replacement. There are many other approaches as well. (This leaves the individual dogs as a (name, breed) tuple. It co

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-09 Thread Ethan Furman
Ethan Furman wrote: Larry Hudson wrote: On 06/08/2011 01:09 PM, Cathy James wrote: Dog Breed: ")) while not dogs: print("Goodbye!!") sys.exit() else: else does not belong with while. else works just fine with while; it is the path taken when the while is exhaust

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-09 Thread Ethan Furman
Larry Hudson wrote: On 06/08/2011 01:09 PM, Cathy James wrote: Dog Breed: ")) while not dogs: print("Goodbye!!") sys.exit() else: else does not belong with while. else works just fine with while; it is the path taken when the while is exhausted, but not broken ou

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-09 Thread Larry Hudson
On 06/08/2011 01:09 PM, Cathy James wrote: I am almost there, but I need a little help: I would like to a) print my dogs in the format index. name: breed as follows: 0. Mimi:Poodle 1.Sunny: Beagle 2. Bunny: German Shepard I am getting (0, ('Mimi', 'Poodle')) . Mimi : Poodle instead-what have

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread John Gordon
In Cathy James writes: > b) I would like to append to my list, but my line dogs.dogAppend() is > giving a TypeError: > for i in enumerate (self.dogAppend()): > TypeError: 'list' object is not callable > def dogAppend(self): > self.dogAppend = [] You have a method and a list that

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread Benjamin Kaplan
On Wed, Jun 8, 2011 at 1:09 PM, Cathy James wrote: > I am almost there, but I need a little help: > > I would like to > > a) print my dogs in the format  index. name: breed as follows: > > 0. Mimi:Poodle > 1.Sunny: Beagle > 2. Bunny: German Shepard > I am getting > > (0, ('Mimi', 'Poodle')) . Mimi

Re: Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread Ethan Furman
Cathy James wrote: I am almost there, but I need a little help: I would like to a) print my dogs in the format index. name: breed as follows: 0. Mimi:Poodle 1.Sunny: Beagle 2. Bunny: German Shepard I am getting (0, ('Mimi', 'Poodle')) . Mimi : Poodle instead-what have I done wrong? b) I wou

Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread Cathy James
I am almost there, but I need a little help: I would like to a) print my dogs in the format index. name: breed as follows: 0. Mimi:Poodle 1.Sunny: Beagle 2. Bunny: German Shepard I am getting (0, ('Mimi', 'Poodle')) . Mimi : Poodle instead-what have I done wrong? b) I would like to append to

Please I need help!

2010-09-15 Thread Maria
I urgently need money help!https://siteheart.com/js/chat/chat.html? ent=9228&hash=97b8aa4b4eec4801f941b0aa97cd2587&ipcsid=842e10a5515ee7299638a546b6b2997f Maria -- http://mail.python.org/mailman/listinfo/python-list

Re: I need help building a data structure for a state diagram

2009-05-25 Thread Paul McGuire
On May 24, 1:16 pm, Matthew Wilson wrote: > I'm working on a really simple workflow for my bug tracker.  I want > filed bugs to start in an UNSTARTED status.  From there, they can go to > STARTED. > I just wrote an article for the April issue of Python Magazine on how to add embedded DSL code to

Re: I need help building a data structure for a state diagram

2009-05-24 Thread Kay Schluehr
On 25 Mai, 01:46, Matthew Wilson wrote: > On Sun 24 May 2009 03:42:01 PM EDT, Kay Schluehr wrote: > > > > > General answer: you can encode finite state machines as grammars. > > States as non-terminals and transition labels as terminals: > > > UNSTARTED: 'start' STARTED > > STARTED: 'ok' FINISHED

Re: I need help building a data structure for a state diagram

2009-05-24 Thread Matthew Wilson
On Sun 24 May 2009 03:42:01 PM EDT, Kay Schluehr wrote: > > General answer: you can encode finite state machines as grammars. > States as non-terminals and transition labels as terminals: > > UNSTARTED: 'start' STARTED > STARTED: 'ok' FINISHED | 'cancel' ABANDONED > ABANDONED: 'done' > FINISHED: 'd

Re: I need help building a data structure for a state diagram

2009-05-24 Thread Kay Schluehr
On 24 Mai, 20:16, Matthew Wilson wrote: > I'm working on a really simple workflow for my bug tracker.  I want > filed bugs to start in an UNSTARTED status.  From there, they can go to > STARTED. > > From STARTED, bugs can go to FINISHED or ABANDONED. > > I know I can easily hard-code this stuff in

Re: I need help building a data structure for a state diagram

2009-05-24 Thread Tim Chase
I'm working on a really simple workflow for my bug tracker. I want filed bugs to start in an UNSTARTED status. From there, they can go to STARTED. From STARTED, bugs can go to FINISHED or ABANDONED. I know I can easily hard-code this stuff into some if-clauses, but I expect to need to add a

I need help building a data structure for a state diagram

2009-05-24 Thread Matthew Wilson
I'm working on a really simple workflow for my bug tracker. I want filed bugs to start in an UNSTARTED status. From there, they can go to STARTED. >From STARTED, bugs can go to FINISHED or ABANDONED. I know I can easily hard-code this stuff into some if-clauses, but I expect to need to add a lo

Re: I Need help from all the group participants

2007-08-21 Thread Boris Ozegovic
Aaron wrote: [...] > Good luck. Thanks a lot for your help. -- Ne dajte da nas lažljivac Bandić truje: http://cnn.blog.hr/arhiva-2007-06.html#1622776372 -- http://mail.python.org/mailman/listinfo/python-list

Re: I Need help from all the group participants

2007-08-21 Thread Aaron
"Boris Ozegovic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am working on some system, and the communication will take place through > the chatterbot which will be written in AIML (interpreter is written in > Python). English is not my mother tongue, so I need huge fa

Re: I Need help from all the group participants

2007-08-21 Thread Shawn Milochik
"Please enter John's heart rate." "Please notify me immediately if John's heart rate drops below 60 or exceeds 100." -- http://mail.python.org/mailman/listinfo/python-list

Re: I Need help from all the group participants

2007-08-20 Thread Paul Rubin
Jason <[EMAIL PROTECTED]> writes: > I want the result of John's auscultation. Give me > John's heart beats, or give John death! > > Okay, probably not the last one. "Hmm, either he's dead, or my watch has stopped." --Groucho Marx -- http://mail.python.org/mailman/listinfo/python-list

Re: I Need help from all the group participants

2007-08-20 Thread Boris Ozegovic
Jason wrote: > I wonder what John's pulse is? Display John's pulse. I need to know > John's pulse. How many beats per minute is John's heart going? > What's John's pulse rate? How fast is John's heart rate? How fast is > John's blood pumping? What is the rate of John's heart? What is the >

Re: I Need help from all the group participants

2007-08-20 Thread Jason
On Aug 20, 1:14 pm, Boris Ozegovic <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I would be happy to help but I don't have a clear understand of what > > the poster needs. > > Suppose you want to find out what is someone's pulse/heart rate, you can > ask question in many ways, syntaxica

Re: I Need help from all the group participants

2007-08-20 Thread Boris Ozegovic
[EMAIL PROTECTED] wrote: > I would be happy to help but I don't have a clear understand of what > the poster needs. Suppose you want to find out what is someone's pulse/heart rate, you can ask question in many ways, syntaxically, but with same semantic. One way to find out someone's pulse is to

Re: I Need help from all the group participants

2007-08-20 Thread [EMAIL PROTECTED]
I would be happy to help but I don't have a clear understand of what the poster needs. -- http://mail.python.org/mailman/listinfo/python-list

Re: I Need help from all the group participants

2007-08-20 Thread ŠućMućPaProlij
"Shawn Milochik" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 8/20/07, Boris Ozegovic <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> >> > The only sentence that comes to mind is: >> > >> > "I hope I never find myself in a hospital that uses your system." >> >> You a

Re: I Need help from all the group participants

2007-08-20 Thread Shawn Milochik
On 8/20/07, Boris Ozegovic <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > The only sentence that comes to mind is: > > > > "I hope I never find myself in a hospital that uses your system." > > You are not funny. The system isn't for hospitals, it is for university > purposes. > > -- >

Re: I Need help from all the group participants

2007-08-20 Thread Boris Ozegovic
[EMAIL PROTECTED] wrote: > The only sentence that comes to mind is: > > "I hope I never find myself in a hospital that uses your system." You are not funny. The system isn't for hospitals, it is for university purposes. -- Ne dajte da nas lažljivac Bandić truje: http://cnn.blog.hr/arhiva-2007

Re: I Need help from all the group participants

2007-08-20 Thread [EMAIL PROTECTED]
On Aug 20, 9:16 am, Boris Ozegovic <[EMAIL PROTECTED]> wrote: > Hi, > > I am working on some system, and the communication will take place through > the chatterbot which will be written in AIML (interpreter is written in > Python). English is not my mother tongue, so I need huge favor: if all of

I Need help from all the group participants

2007-08-20 Thread Boris Ozegovic
Hi, I am working on some system, and the communication will take place through the chatterbot which will be written in AIML (interpreter is written in Python). English is not my mother tongue, so I need huge favor: if all of you can write two sentences, so that I could have greater pattern base

I need help speeding up an app that reads football scores andgenerates rankings

2007-08-06 Thread Lincoln Rozelle
Hey Terry I got your name from the following page: http://mail.python.org/pipermail/python-list/2007-May/438521.html I'm interested in producing a web-app for football games that runs in python. When I talk about football, since I'm in Europe though, I mean soccer. Which football do you mea

Re: I need help speeding up an app that reads football scores and generates rankings

2007-05-02 Thread Gabriel Genellina
En Wed, 02 May 2007 12:16:56 -0300, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> escribió: > In <[EMAIL PROTECTED]>, jocknerd > wrote: > >> The biggest difference in my two apps is the C app uses linked lists. >> I feel my Python app is doing too many lookups which is causing the >> bottlenec

Re: I need help speeding up an app that reads football scores and generates rankings

2007-05-02 Thread Arnaud Delobelle
On May 2, 4:00 pm, jocknerd <[EMAIL PROTECTED]> wrote: > About 10 years ago, I wrote a C app that would read scores from > football games and calculate rankings based on the outcome of the > games. In fact, I still use this app. You can view my rankings > athttp://members.cox.net/jocknerd/footba

Re: I need help speeding up an app that reads football scores andgenerates rankings

2007-05-02 Thread Terry Reedy
"jocknerd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | About 10 years ago, I wrote a C app that would read scores from | football games and calculate rankings based on the outcome of the | games. In fact, I still use this app. You can view my rankings at | http://members.cox.n

Re: I need help speeding up an app that reads football scores and generates rankings

2007-05-02 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, jocknerd wrote: > The biggest difference in my two apps is the C app uses linked lists. > I feel my Python app is doing too many lookups which is causing the > bottleneck. Then replace those linear searches you wrote in Python with a dictionary. Ciao, Marc 'Black

I need help speeding up an app that reads football scores and generates rankings

2007-05-02 Thread jocknerd
About 10 years ago, I wrote a C app that would read scores from football games and calculate rankings based on the outcome of the games. In fact, I still use this app. You can view my rankings at http://members.cox.net/jocknerd/football. A couple of years ago, I got interested in Python and deci

Re: Returning other instance from __init__ - I need help

2007-03-17 Thread Paulo da Silva
Gabriel Genellina escreveu: > En Fri, 16 Mar 2007 22:05:05 -0300, Paulo da Silva > <[EMAIL PROTECTED]> escribió: ... > class C(object): > > def __new__(cls, filename=None, foo=None, bar=None): > if filename is not None: > return cls.load(filename) > inst = super(C,

Re: Returning other instance from __init__ - I need help

2007-03-17 Thread Gabriel Genellina
En Fri, 16 Mar 2007 22:05:05 -0300, Paulo da Silva <[EMAIL PROTECTED]> escribió: > When debugging, I found this is wrong!!! > Would someone please clarify what do I have to return from > __new__? Try this. I used a classmethod for load, it may be easier to subclass. class C(object): def

Re: Returning other instance from __init__ - I need help

2007-03-16 Thread Paulo da Silva
Paulo da Silva escreveu: > Paulo da Silva escreveu: >> Alex Martelli escreveu: >>> Paulo da Silva <[EMAIL PROTECTED]> wrote: >> >> >>> E.g.: >>> >>> class C1(object): >>> def __new__(cls, xxx): >>> if xxx: return type.__new__(cls, xxx) >>> else: return C1.load(xxx) >>>

Re: A curses-game I need help with.

2006-10-10 Thread Rainy
Gasten wrote: > Rob Wolfe wrote: > > > while running: > > > key_command = game.mainwin.getch() > > > > # I've moved erasing messages here > > game.msg.ereasMsg() > > Man... I didn't even think of that. It's embarassing. Thanks. It works > perfect now. Again, thanks.

Re: A curses-game I need help with.

2006-10-10 Thread Jia Lu
> try: > import curses > except ImportError: > print "Missing the Curses-library." > print "Please install the curses-library correctly." > SystemExit ~ Does this work ? Maybe *raise SystemExit* ?? -- http://mail.python.org/mailman/listinfo

  1   2   >