[Python-checkins] python/nondist/peps pep-0237.txt,1.14,1.15

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2002年8月11日 17:55:46 -0700


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv17011
Modified Files:
	pep-0237.txt 
Log Message:
Add a note explaining that changing sign is a special case of losing
bits for the << operator.
Index: pep-0237.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0237.txt,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** pep-0237.txt	11 Aug 2002 04:05:13 -0000	1.14
--- pep-0237.txt	12 Aug 2002 00:55:43 -0000	1.15
***************
*** 99,103 ****
 - Currently, x<<n can lose bits for short ints. This will be
 changed to return a long int containing all the shifted-out
! bits, if returning a short int would lose bits.
 
 - Currently, hex and oct literals for short ints may specify
--- 99,104 ----
 - Currently, x<<n can lose bits for short ints. This will be
 changed to return a long int containing all the shifted-out
! bits, if returning a short int would lose bits (where changing
! sign is considered a special case of losing bits).
 
 - Currently, hex and oct literals for short ints may specify

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