Re: how many nested for can we utilize?

2008-08-18 Thread Patrol Sun
Thanks, I cannot utilize the String Class completely. I'm a newbie for python 2008/8/18 Gabriel Genellina <[EMAIL PROTECTED]> > En Sun, 17 Aug 2008 21:57:46 -0300, Patrol Sun <[EMAIL PROTECTED]> > escribió: > > > Of course We needn't 100 levels,but I us

Re: how many nested for can we utilize?

2008-08-18 Thread Patrol Sun
I test the exec function. As we all know, we can set the recursive levels. How to handle it? 2008/8/17 Fredrik Lundh <[EMAIL PROTECTED]> > Patrol Sun wrote: > > when I use 20 for ,"SystemError: too many statically nested blocks" >> When I use 100 for ,"

Re: how many nested for can we utilize?

2008-08-17 Thread Patrol Sun
I use the exec function. my code's levels are less than 3. BTW,Linus Torvalds is NOT always right. 2008/8/18 Roel Schroeven <[EMAIL PROTECTED]> > Nick Dumas schreef: > >> A good quote I read (I can't remember who it was from, though) is "If >> you need more than three levels of indentation, then

Re: how many nested for can we utilize?

2008-08-17 Thread Patrol Sun
Yes, I can solve the problem by recursive function. I guess Function Call consume more resources than nested For. So I use the nested For by using exec function. 2008/8/18 Paul Boddie <[EMAIL PROTECTED]> > On 17 Aug, 19:36, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > > > and functions will solve

Re: how many nested for can we utilize?

2008-08-17 Thread Patrol Sun
I found that the recursive function run very slowly 2008/8/18 Paul Boddie <[EMAIL PROTECTED]> > On 17 Aug, 17:17, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > > > required reading: > > > >"The Effects of Moore's Law and Slacking on Large Computations" > >http://arxiv.org/abs/astro-ph/9912

Re: how many nested for can we utilize?

2008-08-17 Thread Patrol Sun
Of course We needn't 100 levels,but I use the exec function can concise the code. See the attachment. 2008/8/17 Fredrik Lundh <[EMAIL PROTECTED]> > Nick Dumas wrote: > > A good quote I read (I can't remember who it was from, though) is "If >> you need more than three levels of indentation, then s

how many nested for can we utilize?

2008-08-17 Thread Patrol Sun
when I use 20 for ,"SystemError: too many statically nested blocks" When I use 100 for ,"IndentationError: too many levels of indentation" How to handle these errors? -- http://mail.python.org/mailman/listinfo/python-list

Re: Logging library unicode problem

2008-08-13 Thread Patrol Sun
What's your system? Simple Chinese Windows??? 2008/8/13 Victor Lin <[EMAIL PROTECTED]> > Hi, > I'm writting a application using python standard logging system. I > encounter some problem with unicode message passed to logging library. > I found that unicode message will be messed up by logging ha

Re: Looking out a module for Subversion

2008-08-12 Thread Patrol Sun
Sorry for my wrong information. But the Eclipse is very huge, Ulipad is very small. http://code.google.com/p/ulipad/downloads/list 2008/8/13 Fabio Zadrozny <[EMAIL PROTECTED]> > > On Tue, Aug 12, 2008 at 6:50 AM, Patrol Sun <[EMAIL PROTECTED]> wrote: > >> Eclipse

Re: Manipulating Python Source

2008-08-12 Thread Patrol Sun
This idea recalls Spring's Bean binding to me. Good idea. Is there similar thing? 2008/8/12 Wilson <[EMAIL PROTECTED]> > Hi, > > I'm wondering if there are any tools available or simple methods for > taking a python source file and parsing into some hierarchical format, > like the ConfigParser. I

Re: Looking out a module for Subversion

2008-08-12 Thread Patrol Sun
Eclipse with PyDev extension cannot debug. Ulipad is able to debug,but it needs wxpython to support. 2008/8/12 Alexandru Palade <[EMAIL PROTECTED]> > As for the open source IDE you can always try Eclipse with PyDev extension. > > > > Dudeja, Rajat wrote: > >> Hi, >> >> I'm new to Python. I only h