Fulvio wrote:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
>
>
> On Thursday 26 October 2006 16:43, Wijaya Edward wrote:
> > How can we print out the hidden character like
> > "\n", "\r" etc in Python?
>
> If it's meant to evidentiate then you
***
Your mail has been scanned by InterScan MSS.
***
On Thursday 26 October 2006 16:43, Wijaya Edward wrote:
> How can we print out the hidden character like
> "\n", "\r" etc in Python?
If it's meant to evidentiate then you should scan each byte an print i
Wijaya Edward wrote:
> How can we print out the hidden character like
> "\n", "\r" etc in Python?
Try
repr(var)[1:-1]
CMIIW. :)
Regards,
Björn
--
BOFH excuse #271:
The kernel license has expired
--
http://mail.python.org/mailman/listinfo/python-list
printing "line" will not show the hidden chars like "\n","\r".
> Is there a way to print it out?
>
> -- Edward WIJAYA
> SINGAPORE
>
>
>
> From: [EMAIL PROTECTED] on behalf of Ben Finney
> Sent: Thu 10/26/2006 4
"Wijaya Edward" wrote:
> I mean while opening a file, like this
>
> for line in open('somefile.txt'):
>print line
>
> printing "line" will not show the hidden chars like "\n","\r".
> Is there a way to print it out?
print repr(line)
--
http://mail.python.org/mailman/listinfo/python
[Please don't top-post replies. I've corrected it in this post.]
Wijaya Edward <[EMAIL PROTECTED]> writes:
> Ben Finney wrote:
> > Wijaya Edward <[EMAIL PROTECTED]> writes:
> > > How can we print out the hidden character like "\n", "\r" etc in
> > > Python?
> > What result do you want that you're
From: [EMAIL PROTECTED] on behalf of Ben Finney
Sent: Thu 10/26/2006 4:59 PM
To: python-list@python.org
Subject: Re: Printing Hidden Character in Python
Wijaya Edward <[EMAIL PROTECTED]> writes:
> How can we print out the hidden character like "\n", "\r" e
Wijaya Edward <[EMAIL PROTECTED]> writes:
> How can we print out the hidden character like "\n", "\r" etc in
> Python?
What result do you want that you're not getting with:
print "\n"
--
\ "Two rules to success in life: 1. Don't tell people everything |
`\