A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://svn.python.org/projects/python/branches/ctypes-branch/Lib/test/crashers/loosing_dict_ref.py below:

# http://python.org/sf/1303614 class Strange(object): def __hash__(self): return hash('hello') def __eq__(self, other): x.__dict__ = {} # the old x.__dict__ is deallocated return False class X(object): pass if __name__ == '__main__': v = 123 x = X() x.__dict__ = {Strange(): 42, 'hello': v+456} x.hello # segfault: the above dict is accessed after it's deallocated

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4