Name/ID of removable Media: how?

Tim Golden tim.golden at viacom-outdoor.co.uk
Tue Apr 19 11:49:04 EDT 2005


[Ivan Van Laningham]
| Hi All--
| 
| Tim Golden wrote:
| > 
| > Try this: hex (-793919769)
| > 
| > You might need to check back on recent discussions here re
| > negative / positive numbers and hexadecimal.
| > 
| > (Short version: we used to treat hex numbers with the top bit
| > set as negative decimal numbers; now only negative hex numbers
| > are negative decimals)
| > 
| 
| 
| Of course I tried that.  Did you?
| 
| 
| Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)] on
| win32
| Type "help", "copyright", "credits" or "license" for more information.
| >>> hex (-793919769)
| '-0x2f524119'
| >>>
| 

Yes I did. I just forgot to mention the critical fact that I'm still using 2.3.5:

<dump>

Python 2.3.5c1 (#61, Jan 25 2005, 19:52:06) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> hex (-793919769)
__main__:1: FutureWarning: hex()/oct() of negative int will return a signed string in Python 2.4 and up
'0xd0adbee7'
>>>
>>>

</dump>

TJG	

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list