help regarding re.search

Sagar Neve nevesagar at gmail.com
Thu Sep 15 05:38:12 EDT 2011


Hey
Thanks.

I just resolved it and yes you are right there was a (hidden) new-line to
it. I found it in a crude way of putting dots before and after.  I was to
post about it here and saw your message.

I was not knowing about %r. Thanks for that. Thats a good addition to my
knowledge.

Thanks a bunch of all. My day is saved.

Best Regards,
Sagar Neve.


On Thu, Sep 15, 2011 at 2:35 PM, Gelonida N <gelonida at gmail.com> wrote:

> Hi Sagar,
>
> In order to be able to help you I propose following:
>
> On 09/15/2011 06:54 AM, Sagar Neve wrote:
> . . .
> >                     print "hello..Man_Param=%s,Opt_Param1=%s,
> > Opt_Param2=%s\n" %(Man_Param,Opt_Param1,Opt_Param2)
>
> Change above line into
>
> >                     print "hello..Man_Param=%r,Opt_Param1=%r,
> > Opt_Param2=%r\n" %(Man_Param,Opt_Param1,Opt_Param2)
>
>
> and show us the output of an example which is NOT working.
>
> printing with '%r" might help to show some 'hidden special characters'
>
>
>
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110915/7f10b45f/attachment.html>


More information about the Python-list mailing list