Re: test if an input string starts with a python expression

2009-12-07 Thread r0g
Torsten Mohr wrote: > Hi, > > i'd like to test if an input string starts with a python expression > and also where that expression ends. An example: > > a_func(3*7, '''abc''') +5 pls some more > > The first part until (inclusive) the 5 should be found as an expression > and the length of that s

Re: Generators.

2009-12-07 Thread Taylor
On Dec 7, 1:29 pm, Jorge Cardona wrote: > 2009/12/7 Lie Ryan : > > > > > On 12/7/2009 7:22 AM, Jorge Cardona wrote: > > >> Hi, > > >> I was trying to create a function that receive a generator and return > >> a list but that each elements were computed in a diferent core of my > >> machine. I star

Request for solution

2009-12-07 Thread 74yrs old
Python experts, Please find attached file "Tesseractindic-Trainer-GUI-0- 1-3.tar.gz for perusal.("if you like to help, I can send you the program off-list") The said tesseractindic-trainer works well in Linux viz Ubuntu-9.04 and fedora-11 without any problem. But when I tried to run in CMD.exe of

Request for py program to insert space between two characters and saved as text?

2009-12-07 Thread 74yrs old
For Kannada project .txt(not .doc) is used, my requirement is to have one space between two characters in Notepad file. In MSword there is provision to make space between two characters under "Font" and can be saved as *.doc * But when tried to save as* .txt* all formatting will disappear. I co

Re: test if an input string starts with a python expression

2009-12-07 Thread Richard Thomas
On Dec 8, 1:22 am, r0g wrote: > Torsten Mohr wrote: > > Hi, > > > i'd like to test if an input string starts with a python expression > > and also where that expression ends.  An example: > > > a_func(3*7, '''abc''') +5 pls some more > > > The first part until (inclusive) the 5 should be found as

Re: how to convert string function to string method?

2009-12-07 Thread Dr. Phillip M. Feldman
Bruno- You've made some excellent suggestions, and I'm always grateful for the opportunity to learn. My revised code appears below. Philllip def strip_pairs(s, open='([{\'"', close=')]}\'"'): """ OVERVIEW This function strips matching pairs of characters from the beginning and end

Re: How decoupled are the Python frameworks?

2009-12-07 Thread J Kenneth King
shocks writes: > Hi > > I'm getting back into Python after a long break. I've been developing > large enterprise apps solely with Adobe Flex (ActionScript) for the > past couple years. During that time I've used a number of 'MVC' > frameworks to glue the bits together - among them Cairngorm, a

Re: Graph library for Python

2009-12-07 Thread geremy condra
On Mon, Dec 7, 2009 at 6:28 PM, M.-A. Lemburg wrote: > geremy condra wrote: >> On Mon, Dec 7, 2009 at 2:51 PM, M.-A. Lemburg wrote: >>> geremy condra wrote: How interested are you in a C port of graphine? I haven't had any specific requests for it, but if its something you need I c

Re: Duplicates of third-party libraries

2009-12-07 Thread Martin P. Hellwig
Ben Finney wrote: "Martin P. Hellwig" writes: Along with the duplication this introduces, it also means that any bug fixes — even severe security fixes — in the third-party code will not be addressed in your duplicate. I disagree, what you need is: - An automated build system for your del

Re: Duplicates of third-party libraries

2009-12-07 Thread Ben Finney
"Martin P. Hellwig" writes: > Ben Finney wrote: > > Along with the duplication this introduces, it also means that any bug > > fixes — even severe security fixes — in the third-party code will not be > > addressed in your duplicate. > I disagree, what you need is: > - An automated build system

Re: Duplicates of third-party libraries

2009-12-07 Thread Martin P. Hellwig
Ben Finney wrote: This omits the heart of the problem: There is an extra delay between release and propagation of the security fix. When the third-party code is released with a security fix, and is available in the operating system, the duplicate in your application will not gain the advantage o

Re: Generators.

2009-12-07 Thread Lie Ryan
First, I apologize for rearranging your message out of order. On 12/8/2009 5:29 AM, Jorge Cardona wrote: islice execute the function at the generator and drop the elements that aren't in the slice. I found that pretty weird, the way that i see generators is like an association between and indexi

<    1   2