Re: joining strings question



I V wrote:
On Fri, 29 Feb 2008 08:18:54 -0800, baku wrote:
return s == s.upper()

A couple of people in this thread have used this to test for an upper case string. Is there a reason to prefer it to s.isupper() ?

In my case you can put it down to ignorance or forgetfulness, depending on how forgiving you feel.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

.



Relevant Pages

  • Re: String.IndexOf
    ... > For some reason my index of is not finding my string. ... upper case the string to find and return ... > the first occurence. ...
    (microsoft.public.dotnet.framework.clr)
  • Re: joining strings question
    ... A couple of people in this thread have used this to test for an upper ... case string. ... Is there a reason to prefer it to s.isupper? ... Premature decreptiude, officer... ...
    (comp.lang.python)
  • Re: Controlling Javascript from server side
    ... but five different language implementations here. ... 'true' means that the request must be handled asynchronously. ... There is exactly *no* reason for such a thing here. ... | percent-endoded string). ...
    (comp.lang.javascript)
  • Re: Is that a good design?
    ... I would have been able to reason the first gotcha. ... public string FirstName; ... has a reference architecture that shows the use of patterns. ... Public Shared Function GetUserInstance() As User ...
    (microsoft.public.dotnet.framework)
  • Re: packagemaker script assistance needed.
    ... Is there a reason you're conditionalizing the whole block instead of one ... string will do as you want.) ...
    (comp.sys.mac.programmer.help)