[Python-Dev] cpython (3.2): Avoid the compiler warning about the unused return value.

Stephen J. Turnbull stephen at xemacs.org
Sun Jan 22 05:59:37 CET 2012


Benjamin Peterson writes:
 > 2012年1月21日 Stefan Krah <stefan at bytereef.org>:
 > > Do you mean (void)write(...)? Many people think this is good practice,
 > > since it indicates to the reader that the return value is deliberately
 > > ignored.
 > 
 > Not doing anything with it seems fairly deliberate to me.
It may be deliberate, but then again it may not be. EIBTI applies.


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /