Re: How to covert ASCII to integer in Python?
- From: Philipp Pagel <pDOTpagel@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 May 2008 15:03:40 +0000 (UTC)
Skonieczny, Chris <Skonieczny.C@xxxxxxxxxxxxx> wrote:
YOU SHOULD REMOVE or CORRECT YOUR POST here:
http://mail.python.org/pipermail/python-list/2007-February/427841.html
It is not true - eg. try :
a='P' # P is ASCII , isn't it ?
b=int(a)
and what you will get ? An error !!!
'P' is obviously not an ASCII representation of a number.
What did you expect? The closest number by visual appearance?
cu
Philipp
--
Dr. Philipp Pagel
Lehrstuhl f. Genomorientierte Bioinformatik
Technische Universität München
http://mips.gsf.de/staff/pagel
.
- Follow-Ups:
- Re: How to covert ASCII to integer in Python?
- From: Mensanator
- Re: How to covert ASCII to integer in Python?
- References:
- How to covert ASCII to integer in Python?
- From: Skonieczny, Chris
- How to covert ASCII to integer in Python?
- Prev by Date: Re: definition of a highlevel language?
- Next by Date: running on WinPC + comunication via USB
- Previous by thread: Re: How to covert ASCII to integer in Python?
- Next by thread: Re: How to covert ASCII to integer in Python?
- Index(es):