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/2003-August/037642.html below:

[Python-Dev] New bug in listobject.c

[Python-Dev] New bug in listobject.c [Python-Dev] New bug in listobject.cTim Peters tim.one at comcast.net
Thu Aug 14 22:29:34 EDT 2003
list_ass_slice() currently looks like:

...
	int n; /* Size of replacement list */
	int d; /* Change in size */
	int k; /* Loop index */
#define b ((PyListObject *)v)
	if (v == NULL)
		n = 0;
	else {
		char msg[256];
		if (a == b) {
			/* Special case "a[i:j] = a" -- copy b first */
			int ret;
			v = list_slice(b, 0, n);

MSVC complains that n can be used before initialization in the last line.
Looks like a fair complaint to me!  SF ViewCVS doesn't show this code, so it
must be very new.


More information about the Python-Dev mailing list

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