python web framework for straight sql (no ORM)?

2006-09-04 Thread falcon
Can someone please recommend a python web app framework which doesn't abstract away sql in favor of python objects? As far as I can tell, frameworks such as django, turbo gears, etc. allow one to drop down the the sql layer, however that is not the most effecient use of the framework. I would lik

Re: time series calculation in list comprehension?

2006-03-13 Thread falcon
Wow, thanks for all the reponses. Very helpful! -- http://mail.python.org/mailman/listinfo/python-list

time series calculation in list comprehension?

2006-03-10 Thread falcon
Is there a way I can do time series calculation, such as a moving average in list comprehension syntax? I'm new to python but it looks like list comprehension's 'head' can only work at a value at a time. I also tried using the reduce function and passed in my list and another function which calcu

Re: newbie: working iwth list of tuples

2006-01-29 Thread falcon
Wow, great answers here. Thank you all for the links and examples, I'm going through them all now. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie: working iwth list of tuples

2006-01-28 Thread falcon
I forgot to add that I passing a tuple of functions to the reduce function but apparently that is not allowed. My guess was that a tuple made up of individual (simple) functions might be easier to manipulate programatically than a function which has to know the structure of a list. (My test code)

newbie: working iwth list of tuples

2006-01-28 Thread falcon
Hi All, I am fairly new to Python (less than a week). My goal is to write a small prototype of a database. Rather than build it using the typical method where one provides selection, projection, aggregation, union, intersection, etc. functions, I would like to do it in a more 'functional' style (

PEP-343 - Context Managment variant

2005-08-04 Thread falcon
Sorry. I was wrong about "global" statement. Then examples seems to be even more intricate: def Synhronised(lock,func): lock.acquire() try: func() finally: lock.release() lock=Lock() def Here_I_work(*a): return 1 # Stub def asd(a): retur

PEP-343 - Context Managment variant

2005-08-04 Thread falcon
I know I came after the battle. And I have just another sight on context managment. Simple Context Managment may look in Python 2.4.1 like this: Synhronized example: def Synhronised(lock,func): lock.acquire() try: func() finally: lock.rele

__autoinit__ (Was: Proposal: reducing self.x=x; self.y=y; self.z=z boilerplate code)

2005-07-31 Thread falcon
Hello python-list, As I Understood, semantic may be next: def qwerty(a,a.i,b,b.i,f.j): pass Would work like: def qwerty(anonymous1,anonymous2,anonymous3,anonymous4,anonymous5): (a,a.i,b,b.i,f.j)=(anonymous1,anonymous2,anonymous3,anonymous4,anonymous5) del anonymous1