|
2010-04-22
, 11:48
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#12
|
The Following 5 Users Say Thank You to Joorin For This Useful Post: | ||
|
2010-04-22
, 11:51
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#13
|
|
2010-04-22
, 12:09
|
Posts: 138 |
Thanked: 164 times |
Joined on Aug 2009
@ Chateauroux, FRANCE
|
#14
|
|
2010-04-22
, 12:22
|
Posts: 999 |
Thanked: 1,117 times |
Joined on Dec 2009
@ earth?
|
#15
|
|
2010-04-22
, 12:26
|
Posts: 999 |
Thanked: 1,117 times |
Joined on Dec 2009
@ earth?
|
#16
|
The Following 5 Users Say Thank You to johnel For This Useful Post: | ||
|
2010-04-22
, 12:56
|
|
Posts: 1,259 |
Thanked: 1,341 times |
Joined on Oct 2009
@ Germany
|
#17
|
|
2010-04-22
, 19:05
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#18
|
if (mydiv#0): res=res/mydiv else: res=0
try: res=res/mydiv except NullDivisionError,e: res=0
import gobject class _DeferClass(object): _calls=[] _ref=None def __new__(cls,*args,**kw): if cls._ref is None: cls._ref = super(_DeferClass,cls).__new__(cls,*args, **kw) return cls._ref def __len__(self): return len(self._calls) def __call__(self,func,*args): def NextCall(): (func,args)=self._calls[0] func(*args) self._calls=self._calls[1:] return self._calls!=[] if not self._calls: gobject.idle_add(NextCall) self._calls.append((func,args))
|
2010-04-22
, 19:15
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#19
|
|
2010-04-22
, 19:19
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#20
|
Far from a ready solution, but worth keeping an eye on (smells like Harmattan candidate material):
http://code.google.com/p/unladen-swa...ki/ProjectPlan
The Following 3 Users Say Thank You to epage For This Useful Post: | ||
Tags |
performance, python |
|
its the same discussion at this point!
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk