From: SourceForge.net <no...@so...> - 2007-03-01 05:10:50
|
Bugs item #1671420, was opened at 2007-03-01 00:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1671420&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: howard kapustein (hsk0) Assigned to: Nobody/Anonymous (nobody) Summary: 'import os' broke in latest bits? Initial Comment: Latest files from trunk seems to have broken the os module (and others?). Did I botch something at my end or am I really seeing what I'm seeing? 1. Run with -v to see full details 2. dir(os) to verify it's not loaded 3. import os to load it 4. dir(os) shows only 2 symbols - __depends__ and classDictInit Do same but with other modules (e.g. string) and you get the expected results. import: 'exceptions' as org.python.core.exceptions in builtin modules Jython 2.2b1 on java1.6.0 import: 'site' as F:\Toolkits\jython\trunk\jython\dist\Lib\site.py import: 'sys' as sys in builtin modules import: 'os' as org.python.modules.os in builtin modules import: 'javaos' as F:\Toolkits\jython\trunk\jython\dist\Lib\javaos.py import: 'java' as java package import: 'File' as java class import: 'javapath' as F:\Toolkits\jython\trunk\jython\dist\Lib\javapath.py import: 'System' as java class >>> dir(os) Traceback (innermost last): File "<console>", line 1, in ? NameError: os >>> import os >>> dir(os) ['__depends__', 'classDictInit'] >>> import string import: 'string' as F:\Toolkits\jython\trunk\jython\dist\Lib\string.py >>> dir(string) ['_StringType', '__doc__', '__file__', '__name__', '_apply', '_float', '_idmap', '_idmapL', '_int', '_long', 'ascii_letters', 'ascii_lowercase', 'ascii_uppercas e', 'atof', 'atof_error', 'atoi', 'atoi_error', 'atol', 'atol_error', 'capitaliz e', 'capwords', 'center', 'count', 'digits', 'expandtabs', 'find', 'hexdigits', 'index', 'index_error', 'join', 'joinfields', 'letters', 'ljust', 'lower', 'lowe rcase', 'lstrip', 'maketrans', 'octdigits', 'printable', 'punctuation', 'replace ', 'rfind', 'rindex', 'rjust', 'rstrip', 'split', 'splitfields', 'strip', 'swapc ase', 'translate', 'upper', 'uppercase', 'whitespace', 'zfill'] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1671420&group_id=12867 |