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-December/041279.html below:

[Python-Dev] Py_DECREF causes spurious gcc warning

[Python-Dev] Py_DECREF causes spurious gcc warning [Python-Dev] Py_DECREF causes spurious gcc warningZack Weinberg zack at codesourcery.com
Sat Dec 20 14:02:27 EST 2003
martin at v.loewis.de (Martin v. Löwis) writes:

> "Zack Weinberg" <zack at codesourcery.com> writes:
>
>> It does, however, lead to a different problem:
>> 
>>   if (condition)
>>     Py_DECREF (foo);
>>   else               // oops, syntax error here
>
> How so? This expands to
>
> if(condition)
>   if(cond2)action1;
>   else action2;
> else

No, it expands to

 if(condition)
  if(cond2) action1;
  else action2;;
 else

-- note the extra semicolon, which provokes a syntax error.

zw

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