This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 156306 - Python Console shows Python even if running jython
Summary: Python Console shows Python even if running jython
Status: RESOLVED WONTFIX
Alias: None
Product: python
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: ardavis26
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-05 19:54 UTC by tonybeckham
Modified: 2009-01-15 01:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2009-01-05 19:54:20 UTC
The python console window will show Python when it it is in fact a jython console.  If default Python platform is Jython
the console output is this:

NbPython console
Python 2.5b0+ (trunk:exported, Jan 5 2009, 15:50:38) 
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_07
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> 

Notice that it says "Python 2.5b0+".  This is the version of bundled Jython instance.  Should read "Jython 2.5b0+"
Comment 1 ardavis26 2009-01-05 20:19:32 UTC
That is the interactive message that comes from jython. There is nothing to be done with that one.  If you run the
jython start up script from the command line you will see that same message.  
Comment 2 tonybeckham 2009-01-05 23:57:24 UTC
If I run bundled Jython from the command line I get:

Jython 2.5b0+ (trunk:exported, Jan 5 2009, 15:50:38) 
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_07
Type "help", "copyright", "credits" or "license" for more information.
>>> 
Comment 3 ardavis26 2009-01-06 16:18:45 UTC
if you type jython ../../console.py from the bin of the bundled jython directory.  the console.py script start up the
console in an unbuffered mode so it displays in the output panel right.  and jython identifies itself with python when
you start up the console through a script.  
Comment 4 tonybeckham 2009-01-06 16:43:16 UTC
Yes, I can see that console.py identifies as Python (see output below) so should there be an issue filed with the jython
team on this?

17inchDonkey:python1 Tony$ pwd
/Users/Tony/Desktop/Trabajo/Python/netbeans/python1
17inchDonkey:python1 Tony$ ./jython-2.5/bin/jython console.py
NbPython console
Python 2.5b0+ (trunk:exported, Jan 5 2009, 15:50:38) 
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_07
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> exit()
17inchDonkey:python1 Tony$ ./jython-2.5/bin/jython
Jython 2.5b0+ (trunk:exported, Jan 5 2009, 15:50:38) 
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_07
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()