Issue229415

classification
Title: the parsing operation of execfile()
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: mianko, pedronis
Priority: normal Keywords:

Created on 2001-01-19.20:40:17 by mianko, last changed 2001-01-25.13:40:05 by pedronis.

Messages
msg267 (view) Author: Jaejun Lee (mianko) Date: 2001-01-19.20:40:17
I got the following problem with jython-20rc1 on java1.3/WinNT4sp6.

"ejbittest\\test.py" works.
"ejbittest\general.py" works.
"ejbittest\test.py" not work.

Do we have somre rule which we have to put '\' if '/' is reside between same character?? 

.............
>>> execfile("ejbittest\test.py")
Traceback (innermost last):
  File "<console>", line 1, in ?
IOError: File not found - ejbittest     est.py (The filename, directory name, or
 volume label syntax is incorrect)
.............
msg268 (view) Author: Jaejun Lee (mianko) Date: 2001-01-19.20:45:36
Ops, Ok.
I'm sorry. It may be wrong bug report.
But I cannot still understand why we have to use
this parser(\t is tab) for file name.
msg269 (view) Author: Samuele Pedroni (pedronis) Date: 2001-01-25.13:40:05
Python strings are parsed the same way in every context like C.
execfile is simply a built-in function.
In python there's no special forms/statements that parse their arguments
in special ways.
Note: differently from C in python "\j" == "\\j" not "j".

History
Date User Action Args
2001-01-19 20:40:17miankocreate