On Thu, Dec 25, 2008 at 12:46 PM, Alan Gauld <[email protected]> wrote:

> for d in os.listdir():
>   if MyString(d).beginswith(....):
>
> Which isn't that cumbersome. d is still available for
> subsequent processing and acces to normal string
> methods is still useful , as in:
>
> for d in os.listdir():
>   if MyString(d).upper().beginswith(....):

But that won't work, the result of calling upper() will be a normal
str, not a MyString.

Kent
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to