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
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 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
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
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