Re: Functions continuing to ru after returning something?

2010-08-30 Thread Chris Rebert
On Mon, Aug 30, 2010 at 5:05 PM, Bradley Hintze wrote: > I may be having a brain fart, but is it at all possible to have a > function first return a value then continue its calculation. Like this > simple example: > > my_var = 5 > def my_function(): >    return my_var >    my_var +=1 > > This obvi

Re: Structured programming with optionParser

2010-08-30 Thread Michele Simionato
Perhaps, I should give an example of using plac. For instance, here is how you could implement a SVN-like tool with two commands ``checkout`` and ``commit``. The trick is to write a class with two methods ``checkout`` and ``commit`` and an attribute ``.commands`` listing them, and to call the clas

Re: How to convert (unicode) text to image?

2010-08-30 Thread ru...@yahoo.com
On 08/30/2010 04:50 AM, Thomas Jollans wrote: > On Monday 30 August 2010, it occurred to ru...@yahoo.com to exclaim: >> Face the facts dude. The Python docs have some major problems. >> They were pretty good when Python was a new, cool, project used >> by a handful of geeks. They are good relativ

Re: How to convert (unicode) text to image?

2010-08-30 Thread ru...@yahoo.com
On 08/30/2010 01:14 PM, Terry Reedy wrote: > On 8/30/2010 12:23 AM, ru...@yahoo.com wrote: >> The Python docs have some major problems. > > And I have no idea what you think they are. I have written about a few of them here in the past. I sure Google will turn up something. > I have participated

Re: PyGeo

2010-08-30 Thread L
On 30/08/10 18:59, Thomas Jollans wrote: On Monday 30 August 2010, it occurred to L to exclaim: I have tried it and as soon as you try any of the examples in the examples dir it cannot find numpy etc I have manually move the pygeo dirs and contents to /usr/lib/python2.6/dis-packages,

<    1   2