Does Python need a '>>>' operator?
Ken Peek
Ken.Peek at SpiritSongDesigns.comNOSPAM
Mon Apr 15 22:53:13 EDT 2002
"Ken Peek" <Ken.Peek at SpiritSongDesigns.comNOSPAM> wrote in message
news:3cbb8f83 at news.mhogaming.com...
| # when we reach Python version >= 2.3.x:
| >>> d = d >> 1 # d is NOW an 'int' on most machines
| >>> print type(d)
| <type 'int'>
|
| >>> print d
| 0x43210986
oops-- this should have been:
>>> print d
1126238598
>>> print hex(d)
0x43210986
# <<< sorry for the typo >>>
More information about the Python-list
mailing list