Re: Revisiting Generators and Subgenerators

2010-03-26 Thread Sebastien Binet
On Mar 25, 10:39 pm, Winston wrote: > Here's my proposal again, but hopefully with better formatting so you > can read it easier. > > -Winston > - > > Proposal for a new Generator Syntax in Python 3K-- > A Baton object for generators to allow subfunction to yield, and to > make > t

Re: race/deadlock when creating a multiprocessing.manager instance while importing a module ?

2009-12-16 Thread Sebastien Binet
of my module facade while an import is "still active". > is there such a mechanism ? digging thru the imp.py module, I devised this simple snippet: import imp [...] if imp.lock_held(): raise RuntimeError('some crystal clear error message') thanks for the help :) c

Re: race/deadlock when creating a multiprocessing.manager instance while importing a module ?

2009-12-15 Thread Sebastien Binet
re such a mechanism ? cheers, sebastien. [1] https://svnweb.cern.ch/trac/atlasoff/browser/Tools/PyUtils/trunk/python/AthFile/__init__.py -- ##### # Dr. Sebastien Binet # Laboratoire de l'Accelerateur Lineaire # Universite Paris-Sud XI # Batiment 200 # 9189

race/deadlock when creating a multiprocessing.manager instance while importing a module ?

2009-12-14 Thread Sebastien Binet
hi there, say I have this module ## farnsworth ## __all__ = [ 'mgr', 'maths', ] from multiprocessing.managers import BaseManager class MathsClass(object): def add(self, x, y): return x + y def mul(self, x, y): return x * y class MyManager(BaseManager): p

Re: type-checking support in Python?

2008-10-07 Thread Sebastien Binet
hi, On Oct 7, 3:24 am, Bas <[EMAIL PROTECTED]> wrote: > I have heard about some python package which overloads numbers and > calculations to include units (quick google found unum, not sure if > that is the only one). I guess that unless you are dealing with life- > critical equipment or are using