Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Michael Foord
On 21/12/2010 18:28, Floris Bruynooghe wrote: On 21 December 2010 18:09, Michael Foord wrote: On 21 December 2010 14:56, Jonathan Hartley wrote: On 21/12/2010 14:45, Michael Foord wrote: my favourites being contextlib.ContextDecorator I didn't know that had your fingerprints on it! Nice on

Re: [python-uk] Tell us what you did with python this year

2010-12-22 Thread Rod Hyde
I didn't think I did all that much with Python this year other than throwing together a few "one off" scripts to collate and analyze data from several thousand tills. These so-called "one off" scripts have been remarkably useful and they saved one of our teams a lot of time by automating what was p

Re: [python-uk] Tell us what you did with python this year

2010-12-22 Thread greg nwosu
I have had a number of python projects, my happiest one was one that scraped government websites for jobs and then applied for those with semi fitting criteria. I was unemployed at the time with unemployment insurance but my insurers wanted proof that I'd been looking. 24 hours hacking and 1 cron

Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Alexander Dutton
On 22/12/10 11:38, Doug Winter wrote: > […] > result = yield make_maybe_blocking_call() > […] This looks similar to Dave Beazley's use of coroutines to implement concurrency without threading. In Dave's case, the yielded expression is a request for the scheduler to perform some action at its leisu

Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Reza Lotun
On Wed, Dec 22, 2010 at 11:38 AM, Doug Winter wrote: > Have you considered using the @inlineCallbacks decorator instead?  I bet > you could make that work too, you could write your own decorator that > uses inlineCallbacks or something synchronous, then the above becomes: > ... Good point - I lik

Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Doug Winter
Reza Lotun wrote: > # async friendly version of the above > def get_foo_nicer(arg1, arg2): > args = prepare_request() > result = make_maybe_blocking_call() > def post_process(result): > do_stuff(result) > do_more_stuff(result) > post_process(result) > > The second v

Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Reza Lotun
On Mon, Dec 20, 2010 at 12:18 PM, Andy Robinson wrote: > As an attempt to generate some content and balance out the "jobs" > discussion > > Why don't a few people here tell us what they got up to this year? > Neat projects at work, things you learned about Python in 2010, things > you've been