Issue1948
Created on 2012-07-23.21:27:21 by duffy151, last changed 2015-02-04.21:15:45 by zyasoft.
msg7333 (view) |
Author: Kevin Duffy (duffy151) |
Date: 2012-07-23.21:28:44 |
|
Here is the jython output:
===>
>java -jar ./code/jython2.7a2/jython.jar
Jython 2.7a2 (default:9c148a201233, May 24 2012, 15:49:00)
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_33
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, os.path
>>> sys.version
'2.7a2 (default:9c148a201233, May 24 2012, 15:49:00) \n[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)]'
>>> os.path.exists('')
True
>>>
<===
Versus the CPython output:
>python
Python 2.7.3 (default, Jul 9 2012, 10:36:52)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, os.path
>>> sys.version
'2.7.3 (default, Jul 9 2012, 10:36:52) \n[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]'
>>> os.path.exists('')
False
>>>
|
msg8728 (view) |
Author: Jim Baker (zyasoft) |
Date: 2014-06-19.06:28:44 |
|
Target beta 4
|
msg8891 (view) |
Author: Henning Jacobs (hjacobs) |
Date: 2014-07-26.09:51:19 |
|
FYI: the Java API also returns True for "exists":
Jython 2.7b3+ (default:f60284af81dc+, Jul 26 2014, 10:35:36)
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_55
Type "help", "copyright", "credits" or "license" for more information.
>>> from java.nio.file import *
>>> p = Paths.get('')
>>> Files.exists(p)
True
>>>
|
msg8892 (view) |
Author: Henning Jacobs (hjacobs) |
Date: 2014-07-26.10:29:41 |
|
os.stat in Jython returns the stat structure for the current directory -- I will change the os.stat in Jython to raise an exception as cpython does
|
msg8893 (view) |
Author: Henning Jacobs (hjacobs) |
Date: 2014-07-26.10:53:22 |
|
Create pull request with fix: https://github.com/jythontools/jython/pull/4
|
msg9338 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-01-07.07:48:00 |
|
Time to get the PR merged
|
msg9457 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-01-28.02:57:36 |
|
Fixed as of https://hg.python.org/jython/rev/e1a246f6a178
The underlying problem impacted all use of absolute path construction in the the posix module
|
|
Date |
User |
Action |
Args |
2015-02-04 21:15:45 | zyasoft | set | status: pending -> closed |
2015-01-28 02:57:36 | zyasoft | set | status: open -> pending resolution: accepted -> fixed messages:
+ msg9457 |
2015-01-08 04:37:03 | zyasoft | set | priority: normal -> high |
2015-01-07 07:48:00 | zyasoft | set | assignee: fwierzbicki -> zyasoft messages:
+ msg9338 |
2014-07-26 10:53:22 | hjacobs | set | messages:
+ msg8893 |
2014-07-26 10:29:41 | hjacobs | set | messages:
+ msg8892 |
2014-07-26 09:51:19 | hjacobs | set | nosy:
+ hjacobs messages:
+ msg8891 |
2014-06-19 16:02:50 | santa4nt | set | nosy:
+ santa4nt components:
+ Library, - None |
2014-06-19 06:28:44 | zyasoft | set | resolution: remind -> accepted messages:
+ msg8728 nosy:
+ zyasoft |
2013-02-20 00:14:17 | fwierzbicki | set | priority: normal assignee: fwierzbicki resolution: remind nosy:
+ fwierzbicki versions:
+ Jython 2.7, - 2.7a2 |
2012-07-23 21:28:45 | duffy151 | set | messages:
+ msg7333 |
2012-07-23 21:27:21 | duffy151 | create | |
|