Re: [Tutor] Error installing review board on windows

2009-05-28 Thread vishwajeet singh
Yes I am using python 2.5 and I have corect version of PIL for python 2.5. Thanks for your help anyways. On Fri, May 29, 2009 at 2:47 AM, Dave Angel wrote: > vishwajeet singh wrote: > > >> Hi List, >> >> I am trying to install review board on windows. It fails saying it could >> not >> >> buil

Re: [Tutor] creating interactive program with python

2009-05-28 Thread Andre Walker-Loud
Hi Alan, 1) I am trying to trying to figure out how I would set up an interactive python script, however, I am having trouble googling this, since a search for "interactive python" just returns instructions on how to type "python" in a terminal to get an "interactive" session Che

[Tutor] problems with Cheetah base class being in templates directory

2009-05-28 Thread mobiledreamers
*How do we setup Cheetah so it runs with all templates in the templates directory and all code in the .. directory code.py* production=True if not production: try:web.render('mafbase.tmpl', None, True, 'mafbase') except:pass else: from templates import mafbase templates/mafbase.tmpl

Re: [Tutor] creating interactive program with python

2009-05-28 Thread Alan Gauld
"Andre Walker-Loud" wrote 1) I am trying to trying to figure out how I would set up an interactive python script, however, I am having trouble googling this, since a search for "interactive python" just returns instructions on how to type "python" in a terminal to get an "interactive" sess

Re: [Tutor] Mapping to an equivalent / similar object?

2009-05-28 Thread Alan Gauld
"Allen Fowler" wrote Imagine the relationship between an Ice Cream retail store and the several manufactures that supply it's flavors. The store's ordering system takes as input a CanonicalFlavor('Vanilla') object that needs to be purchased, and must route this to a manufacturer's ordering

[Tutor] creating interactive program with python

2009-05-28 Thread Andre Walker-Loud
Hi All, I am thinking of creating a data analysis suite with python, and I want it to be interactive - ie the program asks the user (me) for input, like which data file to use, how many parameters to minimize, etc. There are a few features I want it to have, like graphing, both the initi

[Tutor] Mapping to an equivalent / similar object?

2009-05-28 Thread Allen Fowler
Hello, Imagine the relationship between an Ice Cream retail store and the several manufactures that supply it's flavors. The retail store has a single list of flavors and any given flavor can be made by one or more manufactures. (Most are made by several.) The store's stock monitoring system

Re: [Tutor] Displaying range in 3.0.1

2009-05-28 Thread Alan Gauld
"Gregory Morton" wrote I've been reading this Python 3.0.1 tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), Looks like a bug in the tutorial! In Python 3 you cannot just print a range it is now a generator. Notice that in the tutorial the range() calls are not shown at the >

Re: [Tutor] Error installing review board on windows

2009-05-28 Thread Dave Angel
vishwajeet singh wrote: Hi List, I am trying to install review board on windows. It fails saying it could not build PIL 1.1.6 because visual studio was not found on the system and but I have already installed the PIL 1.1.6 using binaries available on the site but review board fails to locate

Re: [Tutor] Displaying range in 3.0.1

2009-05-28 Thread wesley chun
On Thu, May 28, 2009 at 10:22 AM, Gregory Morton wrote: > I've been reading this Python 3.0.1 > tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), and now I'm > stuck at the second example in 4.3. This is what the example says the output > should look like: > > range(5, 10) >5 t

Re: [Tutor] Displaying range in 3.0.1

2009-05-28 Thread Sander Sweers
2009/5/28 Gregory Morton : > I've been reading this Python 3.0.1 > tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), and now I'm > stuck at the second example in 4.3. This is what the example says the output > should look like: No it doen't but I can understand the confusion. More in

[Tutor] Displaying range in 3.0.1

2009-05-28 Thread Gregory Morton
I've been reading this Python 3.0.1 tutorial(http://docs.python.org/3.0/tutorial/controlflow.html), and now I'm stuck at the second example in 4.3. This is what the example says the output should look like:range(5, 10) 5 through 9 range(0, 10, 3) 0, 3, 6, 9 range(-10, -100, -30) -10,

Re: [Tutor] Error installing review board on windows

2009-05-28 Thread Emile van Sebille
On 5/28/2009 9:51 AM vishwajeet singh said... Hi List, I am trying to install review board on windows. I'm not familiar with review board, but these type of third party software installation problems are typically better addressed through the support groups for the third party application.

[Tutor] Error installing review board on windows

2009-05-28 Thread vishwajeet singh
Hi List, I am trying to install review board on windows. It fails saying it could not build PIL 1.1.6 because visual studio was not found on the system and but I have already installed the PIL 1.1.6 using binaries available on the site but review board fails to locate it and every time tries to do

Re: [Tutor] creating a dict-like class - asigning variables... this one may take some thought ; )

2009-05-28 Thread Kent Johnson
On Thu, May 28, 2009 at 6:47 AM, John [H2O] wrote: > # Now I want to put them into my stuff class: >    for j in range(len(a)): >        cmd = "h.%s = a[%s][0]" % (I[j],j) >        eval(cmd) Use setattr() rather than eval. Something like setattr(h, l[j], a[j][0]) Kent

Re: [Tutor] creating a dict-like class - asigning variables... this one may take some thought ; )

2009-05-28 Thread Skipper Seabold
On Thu, May 28, 2009 at 6:47 AM, John [H2O] wrote: > > Hello, I am trying to create a class to hold and reference things similar to > matlab's structure. > > ## A class definition to hold things > class stuff(object): >    """ holds stuff """ >    def __init__(): >        pass >   �...@classmethod

Re: [Tutor] creating a dict-like class - asigning variables... this one may take some thought ; )

2009-05-28 Thread spir
Le Thu, 28 May 2009 03:47:09 -0700 (PDT), "John [H2O]" s'exprima ainsi: > > Hello, I am trying to create a class to hold and reference things similar to > matlab's structure. > > ## A class definition to hold things > class stuff(object): > """ holds stuff """ > def __init__(): >

[Tutor] How do you serve Cheetah in production? webpy+cheetah

2009-05-28 Thread mobiledreamers
How do you serve *Cheetah* in *production*? Guys can you share the setup on how to precompile and serve cheetah in production Since we dont compile templates in webpy it is getting upstream time out errors. If you could share a good best practise it would help * Jeremy jeremy.ja...@gmail.com wr

[Tutor] creating a dict-like class - asigning variables... this one may take some thought ; )

2009-05-28 Thread John [H2O]
Hello, I am trying to create a class to hold and reference things similar to matlab's structure. ## A class definition to hold things class stuff(object): """ holds stuff """ def __init__(): pass @classmethod def items(cls): stuff = [] for i in cls.__dict__