A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-March/013774.html below:

[Python-Dev] Nested scopes core dump

[Python-Dev] Nested scopes core dump [Python-Dev] Nested scopes core dumpGuido van Rossum guido@digicool.com
Tue, 20 Mar 2001 09:33:20 -0500
Ah, the solution is simple.  Check for identical keys only when about
to resize:

	/* if fill >= 2/3 size, double in size */
	if (mp->ma_fill*3 >= mp->ma_size*2) {
		***** test here *****
		if (dictresize(mp, mp->ma_used*2) != 0) {
			if (mp->ma_fill+1 > mp->ma_size)
				return -1;
		}
	}

--Guido van Rossum (home page: http://www.python.org/~guido/)



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