src/s/p/spambayes-HEAD/trunk/spambayes/Outlook2000/addin.py spambayes(Download)
try:
# will be available if "python_d addin.py" is used to
# register the addin.
total_refs = sys.gettotalrefcount() # debug Python builds only
print "%d Python references exist" % (total_refs,)
except AttributeError:
pass
src/s/p/spambayes-HEAD/spambayes/Outlook2000/addin.py spambayes(Download)
try:
# will be available if "python_d addin.py" is used to
# register the addin.
total_refs = sys.gettotalrefcount() # debug Python builds only
print "%d Python references exist" % (total_refs,)
except AttributeError:
pass
src/z/e/zenoss-HEAD/trunk/zenwin/zenwin.py zenoss(Download)
self.log.info("Com InterfaceCount: %d", pythoncom._GetInterfaceCount())
self.log.info("Com GatewayCount: %d", pythoncom._GetGatewayCount())
if hasattr(sys, "gettotalrefcount"):
self.log.info("ref: %d", sys.gettotalrefcount())
def buildOptions(self):
src/z/e/zenoss-HEAD/trunk/zenwin/zeneventlog.py zenoss(Download)
self.log.info("Com InterfaceCount: %d", pythoncom._GetInterfaceCount())
self.log.info("Com GatewayCount: %d", pythoncom._GetGatewayCount())
if hasattr(sys, "gettotalrefcount"):
self.log.info("ref: %d", sys.gettotalrefcount())
def mkevt(self, name, lrec):
src/z/e/zenoss-HEAD/zenwin/zenwin.py zenoss(Download)
self.log.info("Com InterfaceCount: %d", pythoncom._GetInterfaceCount())
self.log.info("Com GatewayCount: %d", pythoncom._GetGatewayCount())
if hasattr(sys, "gettotalrefcount"):
self.log.info("ref: %d", sys.gettotalrefcount())
def buildOptions(self):
src/z/e/zenoss-HEAD/zenwin/zeneventlog.py zenoss(Download)
self.log.info("Com InterfaceCount: %d", pythoncom._GetInterfaceCount())
self.log.info("Com GatewayCount: %d", pythoncom._GetGatewayCount())
if hasattr(sys, "gettotalrefcount"):
self.log.info("ref: %d", sys.gettotalrefcount())
def mkevt(self, name, lrec):
src/p/y/pyutil-1.7.12/pyutil/memutil.py pyutil(Download)
precondition(iterspersample > 0, "iterspersample is required to be positive.", iterspersample)
try:
sys.gettotalrefcount()
except AttributeError, le:
raise AttributeError(le, "Probably this is not a debug build of Python, so it doesn't have a sys.gettotalrefcount function.")
resiters = [None]*numsamples # values: iters
totaliters = totaliters + iterspersample
resiters[i] = totaliters
gc.collect()
resnumrefs[i] = sys.gettotalrefcount()
# print "totaliters: %s, numrefss: %s" % (resiters[-1], resnumrefs[-1],)
avex = float(reduce(operator.__add__, resiters)) / len(resiters)
src/c/l/clamwin-HEAD/trunk/clamwin/py/OlAddin.py clamwin(Download)
try:
# will be available if "python_d addin.py" is used to
# register the addin.
total_refs = sys.gettotalrefcount() # debug Python builds only
print "%d Python references exist" % (total_refs,)
except AttributeError:
pass
src/c/l/clamwin-HEAD/clamwin/py/OlAddin.py clamwin(Download)
try:
# will be available if "python_d addin.py" is used to
# register the addin.
total_refs = sys.gettotalrefcount() # debug Python builds only
print "%d Python references exist" % (total_refs,)
except AttributeError:
pass
src/p/y/pypy-HEAD/pypy/module/sys/test/test_sysmodule.py pypy(Download)
del n
assert sys.getrefcount(None) == c
if hasattr(sys, "gettotalrefcount"):
assert isinstance(sys.gettotalrefcount(), int)
def test_getframe(self):
raises(TypeError, sys._getframe, 42, 42)
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next