~soto255/pyjavascriptcore/trunk

Viewing all changes in revision 63.

  • Committer: Martín Soto
  • Date: 2009-12-02 22:25:26 UTC
  • Revision ID: soto@masoft-20091202222526-0b8cffhetar7z31c
 Return JavaScript numbers that are integers as instances of int

* javascriptcore.pyx (jsToPython): Return JavaScript numbers that are
  integers as instances of Python's int type.

* test/jsfrompy.py (EvaluateScriptTestCase.testEvaluateInt1) 
  (EvaluateScriptTestCase.testEvaluateInt2) 
  (EvaluateScriptTestCase.testEvaluateInt3): Check that returned integers
  are actually of type int.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: