[python-win32] raw string

Anand K Rayudu anand.k.rayudu at esi-group.com
Fri Aug 20 16:23:07 CEST 2004


Hi Larry,

Thanks a lot, yes it works fine
Just wondering if there is a way to replace all special characters, or a 
way to tell python to consider this string as in raw mode.

Thanks Again
Anand


Larry Bates wrote:

>The following works for me:
>
>a="E:\data\models\neonmodel.dat"
>a=a.replace("\n","\\n")
>
>HTH,
>Larry Bates
>Syscon, Inc.
>
>Message: 1
>Date: Thu, 19 Aug 2004 19:19:58 +0530
>From: Anand K Rayudu <anand.k.rayudu at esi-group.com>
>Subject: [python-win32] raw string
>To: python-win32 at python.org
>Message-ID: <4124B006.8090203 at esi-group.com>
>Content-Type: text/plain; charset=us-ascii; format=flowed
>
>
>Hi all,
>
>i have com interface which  returns a string. in my case it is returning
>"E:\data\models\neonmodel.dat"
>if i print the value \n is interpted as new line charcter and if  i use
>os.access(file,os.R_OK) it returns false.
>
>How can i specify not to consider the string in raw mode
>
>in static string i would have used it as r"E:\data\modes\neonmodel.dat"
>but if i have that already as variable, how can i do it
>
>Thanks for help
>
>
>
>_______________________________________________
>Python-win32 mailing list
>Python-win32 at python.org
>http://mail.python.org/mailman/listinfo/python-win32
>
>
>  
>

-- 


Anand K Rayudu
Project Manager
Product Development Group
ESI Software India Private Limited
#213, Nagaprabha Chambers
3rd Main, 4th Cross
Chamarajpet, Bangalore - 18
Tel: +91 80 26672984/26602365. Extn. 122
Mobile: +91 98451 80071
www.esi-group.com

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Confidentiality Statement:

This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-




More information about the Python-win32 mailing list