Skip to content

What's New in Pythonect 0.4.2

ikotler edited this page Feb 16, 2013 · 2 revisions

What's New In Pythonect 0.4.2?

Release date: 16-Feb-2013

Core and builtins

  • Feature #61: Interpreter supports command line '-c', '-i' and '-m'
    $ /usr/local/bin/pythonect -c "'Hello, world' -> print"
    <MainProcess:Thread-1> : Hello, world
  • Enhancement #68: Improved Interpreter Banner
    Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
    [Pythonect 0.4.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
  • Enhancement #67: args globals_ and locals_ of eval() are now optional
    >>> import pythonect
    >>> pythonect.eval("'Hello, world' -> print")
    <MainProcess:Thread-1> : Hello, world
    'Hello, world'
  • Feature #66: Within Pythonect Program: eval() now takes Pythonect code and __eval__() takes Python
    >>> "'Hello, world' -> print" -> eval
    <MainProcess:Thread-2> : Hello, world
    'Hello, world'
  • Refactor __run() [Guy Adini]

  • Feature #65: Pythonect now supports PyPy

  • Feature #55: Pythonect now supports Python 2.6

  • Issue #48: 'print "B" in "ABC"' and 'print 2 is 2' throws Exception

  • Issue #60: "copyright", "license", and "credits" are not of Pythonect

  • Issue #62: Parameterless functions are now handled properly

    >>> [ def foo(): return 1 ] -> 2 -> foo
    1
  • Issue #63: "quit" and "exit" raises ValueError: I/O operation on closed file

  • Issue #64: Interpreter command line option '--version'/'-V' output wrong banner

  • Issue #69: print/print_ can not be overridden by locals or globals value

    >>> pythonect.eval("'Hello, world' -> print", {'print_': lambda x: "Moo"}, {})
    'Moo'

Build

  • Switched to nosetests (+ coverage)
    python setup.py nosetests
    ...
    ...
  • Issue #49: zip_safe is not False by default