Problem with b4
John Hubbard <[email protected]>
| Newsgroups | gmane.comp.lang.jython.devel |
|---|---|
| Organization | NSO |
| Message-ID | <[email protected]> |
I just grabbed the new Jython 2.7 beta 4 (thanks for all of the great
work guys!). Unfortunately my application which worked under b3 now
appears to be broken under b4. I've attached a small self contained
example of my application. In short the class reads user input, and
passes it to an interpreter. The problem that I'm seeing is when I try
to do an "from foo import ScriptReader" I get [1]. Its worth mentioning
that I don't have a problem doing a "from java.util import HashMap". I
went ahead and modified line 226 of warnings.py to 'catch' an IndexError
in addition to the Attribute and Type Errors that it was already
catching. At first glance this appears to allow things to run properly
again (i.e. the import classes can be used).
Am I doing something wrong or did something change between b3 and b4
that caused what I assume to be bug 839151 to 'reappear'?
Thanks again for all of the great work that you guys are doing.
See [2] for the steps to reproduce my error.
[1]
----------------------------------------
Terminate each fragment with EOF.
(EOF with empty fragment ends program)
----------------------------------------
--> from foo import ScriptReader
Running: from foo import ScriptReader
Traceback (most recent call last):
File "<string>", line 1, in <module>
File
"/home/jhubbard/Downloads/jython-standalone-2.7-b4.jar/Lib/warnings.py",
line 226, in warn
File
"/home/jhubbard/Downloads/jython-standalone-2.7-b4.jar/Lib/warnings.py",
line 226, in warn
IndexError: index out of range: 0
[2]
tar -xzvf sscce.tgz
cd sscce
# edit build.xml to point jython-standalone-2.7b4
ant
java -cp /path/to/jython:lib foo.ScriptReader
# at prompt enter "from foo import ScriptReader
# enter ctrl+d
--
-john
To be or not to be, that is the question
2b || !2b
(0b10)*(0b1100010) || !(0b10)*(0b1100010)
0b11000100 || !0b11000100
0b11000100 || 0b00111011
0b11111111
255, that is the answer.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Jython-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-dev
sscce.tgz
(application/x-compressed-tar, 1.4 KB) - not displayed