Re: [Tutor] rstrip() failure ?

2006-08-09 Thread dave s
On Wednesday 09 August 2006 21:11, you wrote: > > Is there a way to show the ascii values of the string - kind of hexedit > > for a string > > Try running repr() on the string: it will show an external > programmer-friendly representation that should be easier to read. For > example: > > #

Re: [Tutor] rstrip() failure ?

2006-08-09 Thread Danny Yoo
> Is there a way to show the ascii values of the string - kind of hexedit > for a string Try running repr() on the string: it will show an external programmer-friendly representation that should be easier to read. For example: ## >>> msg = 'hello\000world' >>> print re

[Tutor] rstrip() failure ?

2006-08-09 Thread dave s
I have a string problem. The following code skips the loop if the string 'app' is on the banned list ... self.ban_app_list = [' ', 'live_dat', 'exact_sl', 'html_str', 'valid_da', 'datacore', 'check_co', 'logger'] if app in self.ban_app_list: continue the string 'app' is derived from s