SGladys / mediacomp-jes

Automatically exported from code.google.com/p/mediacomp-jes
0 stars 0 forks source link

The function "bin" is not found globally #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.bin(24)
2.
3.

What is the expected output? What do you see instead?
Expect    '0b11000'
Instead 
>>> bin(24)
The error was:bin
Name not found globally.
A local or global name could not be found. You need to define the function 
or variable before you try to use it in any way.

What version of the product are you using? On what operating system?
Version 4.2.1 in Windows XP

Please provide any additional information below.
hex and oct work!

Original issue reported on code.google.com by doms...@gmail.com on 10 Nov 2009 at 9:57

GoogleCodeExporter commented 8 years ago
I was able to verify that this is in fact the case.  However, I also determined 
that
the problem is with the version of Jython (2.2.1) used by the JES interpreter.  
As it
turns out bin(number) was not implemented in that version of Jython and didn't 
appear
in full Python until version 2.6.  Until a version of Jython is release with 
support
for this JES will not have this as a built in function.

Original comment by bjdorn@gmail.com on 16 Nov 2009 at 8:36