Re: [Tutor] Script to search in string of values from file A in file B

2012-05-09 Thread BRAGA, Bruno
On Thursday, May 10, 2012, Afonso Duarte wrote: > Dear All, > > > > I’m new to Python and started to use it to search text strings in big (>500Mb) txt files. > > I have a list on text file (e.g. A.txt) that I want to use as a key to search another file (e.g. B.txt), organized in the following way:

Re: [Tutor] Console Application - Key Events

2012-05-08 Thread BRAGA, Bruno
keys pressed if the application is on background... and to do it on the foreground with the terminal on is crazy... Thanks anyway, it was very helpful! -- *Braga, Bruno* www.brunobraga.net bruno.br...@gmail.com On Tue, May 8, 2012 at 5:59 PM, Alan Gauld wrote: > On 08/05/12 02:44, BRAGA, Bruno wrot

Re: [Tutor] using subprocess to export files in bash

2012-05-08 Thread BRAGA, Bruno
No idea why you would want to do that (looks more complicated in python than in bash, right?)... but: f = open("log.txt", "w") f.write(output) f.close() -- *Braga, Bruno* www.brunobraga.net bruno.br...@gmail.com On Wed, May 9, 2012 at 12:18 AM, Rogelio wrote: > While

Re: [Tutor] Curious dictionary printing

2012-05-07 Thread BRAGA, Bruno
Put it simple, dictionaries do not sort. You can use the dict.keys() to get a list of the dictionary keys, then sort them... there are lots of talks on this, just google a bit, and you will find fancy ways to do key or value sorting. -- *Braga, Bruno* www.brunobraga.net bruno.br...@gmail.com On

[Tutor] Console Application - Key Events

2012-05-07 Thread BRAGA, Bruno
s would be highly appreciated. Thanks! -- *Braga, Bruno* www.brunobraga.net bruno.br...@gmail.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Is Python a good choise for this project?

2005-11-07 Thread bruno
Hey, > > Python is capable of building such a system if thats what you mean. > Proivided high performance (real time rapid animation say) is not required > then it should perform adequately. Yes, performance is not a great concern. > But it will require quite a bit of > learning, > not ju

[Tutor] Is Python a good choise for this project?

2005-11-04 Thread Bruno
Hello, I'm in the process of chosing a technology for the implementation of a system that will have a Map builder wich will allow the users to draw a map using several construction pieces. This map will then be used in the core of the program where some pathfinding will be done - and then some ani