Re: Printing Hidden Character in Python

2006-10-27 Thread Brian Mills
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

Re: Printing Hidden Character in Python

2006-10-27 Thread Fulvio
*** 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

Re: Printing Hidden Character in Python

2006-10-26 Thread Bjoern Schliessmann
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

Re: Printing Hidden Character in Python

2006-10-26 Thread [EMAIL PROTECTED]
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

Re: Printing Hidden Character in Python

2006-10-26 Thread Fredrik Lundh
"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

Re: Printing Hidden Character in Python

2006-10-26 Thread Ben Finney
[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

RE: Printing Hidden Character in Python

2006-10-26 Thread Wijaya Edward
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

Re: Printing Hidden Character in Python

2006-10-26 Thread Ben Finney
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 | `\