Did I find the right examples for you? yes no

All Samples(1471)  |  Call(1234)  |  Derive(21)  |  Import(216)
Mapping class that references keys weakly.

Entries in the dictionary will be discarded when there is no
longer a strong reference to the key. This can be used to
associate additional data with an object owned by other parts of
an application without adding attributes to those objects. This
can be especially useful with objects that override attribute
accesses.

src/w/r/writing_games_tutorial-HEAD/examples/network_and_menu/example1.py   writing_games_tutorial(Download)
	def __init__(self ):
		from weakref import WeakKeyDictionary
		self.listeners = WeakKeyDictionary()
		self.eventQueue= []
 

src/w/r/writing_games_tutorial-HEAD/examples/example4/example1.py   writing_games_tutorial(Download)
	def __init__(self):
		from weakref import WeakKeyDictionary
		self.listeners = WeakKeyDictionary()
		self.eventQueue= []
		self.listenersToAdd = []

src/w/r/writing_games_tutorial-HEAD/examples/example3/example1.py   writing_games_tutorial(Download)
	def __init__(self):
		from weakref import WeakKeyDictionary
		self.listeners = WeakKeyDictionary()
		self.eventQueue= []
		self.listenersToAdd = []

src/w/r/writing_games_tutorial-HEAD/examples/example2/example1.py   writing_games_tutorial(Download)
	def __init__(self ):
		from weakref import WeakKeyDictionary
		self.listeners = WeakKeyDictionary()
		self.eventQueue= []
 

src/d/j/django-admin-report-HEAD/example/lib/reportlab/pdfbase/ttfonts.py   django-admin-report(Download)
        self.face = TTFontFace(filename, validate=validate, subfontIndex=subfontIndex)
        self.encoding = TTEncoding()
        from weakref import WeakKeyDictionary
        self.state = WeakKeyDictionary()
        if asciiReadable is None:

src/w/r/writing_games_tutorial-HEAD/examples/server1.py   writing_games_tutorial(Download)
	def __init__(self ):
		from weakref import WeakKeyDictionary
		self.listeners = WeakKeyDictionary()
		self.eventQueue= []
 

src/w/r/writing_games_tutorial-HEAD/examples/example1.py   writing_games_tutorial(Download)
	def __init__(self ):
		from weakref import WeakKeyDictionary
		self.listeners = WeakKeyDictionary()
		self.eventQueue= []
 

src/w/r/writing_games_tutorial-HEAD/code_examples/example.py   writing_games_tutorial(Download)
	def __init__(self):
		from weakref import WeakKeyDictionary
		self.listeners = WeakKeyDictionary()
		self.eventQueue= []
 

src/w/r/writing_games_tutorial-HEAD/code_examples/ex1.py   writing_games_tutorial(Download)
	def __init__(self):
		from weakref import WeakKeyDictionary
		self.listeners = WeakKeyDictionary()
		self.eventQueue= []
 

src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/_internal.py   gae-twitter-oauth-example(Download)
"""
import inspect
from weakref import WeakKeyDictionary
from cStringIO import StringIO
from Cookie import BaseCookie, Morsel, CookieError
_logger = None
_empty_stream = StringIO('')
_signature_cache = WeakKeyDictionary()
_epoch_ord = date(1970, 1, 1).toordinal()
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next