Permalink
Commits on Jul 15, 2009
  1. Move invocation of foo() into a function so it's closer to what I'm s…

    …imulating.
    Nicholas Riley committed Jun 2, 2009
  2. Remove ast/test; NetBeans doesn't like it.

    Nicholas Riley committed Jun 1, 2009
  3. Simple example works.

    Nicholas Riley committed May 28, 2009
  4. Sample Python & Java for experimentation with invokedynamic.

    Nicholas Riley committed May 28, 2009
  5. Ignore more temporary files.

    Nicholas Riley committed May 28, 2009
  6. Turn on invokedynamic support in javac.

    Nicholas Riley committed May 28, 2009
  7. Ignore CPythonLib.

    Nicholas Riley committed May 28, 2009
  8. NetBeans project.

    Nicholas Riley committed May 27, 2009
  9. Ignore generated files.

    Nicholas Riley committed May 27, 2009
  10. ASM from JRuby.

    Nicholas Riley committed May 27, 2009
  11. Changed the ContextManager interface to get the exception as one argu…

    …ment,
    
    this reduces the need fo object (re-) creation. This also reduces the overhead
    even more for the optimized context managers, since parts of the code that
    was previously generated in the compiled Python code is now part of the library
    in ContextGuard.
    
    Also fixed a bug in the code for turning generator functions into optimized
    context managers.
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6539 79b11f02-f210-0410-99aa-fb189b3d1ac4
    thobes committed Jul 15, 2009
  12. Added a tentative implementation of an optimized call path for using …

    …generators
    
    as context managers (as contextlib.contextmanager does by wrapping generators).
    This implementation unwraps the code object and wraps it in context manager
    instead of wrapping the entire generator in a context manager.
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6538 79b11f02-f210-0410-99aa-fb189b3d1ac4
    thobes committed Jul 15, 2009
  13. Performance improvements for list multiplication.

    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6537 79b11f02-f210-0410-99aa-fb189b3d1ac4
    thobes committed Jul 15, 2009
Commits on Jul 13, 2009
  1. Fix for http://bugs.jython.org/issue645615 "cannot import through sym…

    …bolic
    
    links".  Now only explicitely enforcing case sensative imports on Windows and
    Mac.  In the presense of both case insensative systems and symlinks there may
    be a performance penalty, as we walk the directory looking for exact matches in
    this case.  This is the same method used in CPython.
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6536 79b11f02-f210-0410-99aa-fb189b3d1ac4
    fwierzbicki committed Jul 13, 2009
  2. Fixed incompatibility with CPython in the new ContextManager protocol,

    the evaluation order in the implementation was not as specified by PEP 343.
    According to PEP 343 the __exit__ attribute should be accessed and stored
    before the __enter__ attribute is accessed and invoked.
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6535 79b11f02-f210-0410-99aa-fb189b3d1ac4
    thobes committed Jul 13, 2009
Commits on Jul 12, 2009
  1. Whoops, isEmpty is a 1.6 method

    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6534 79b11f02-f210-0410-99aa-fb189b3d1ac4
    cgroves committed Jul 12, 2009
  2. Add javaproxy_dir to sys, and if it's set, compile Java proxies to th…

    …at directory.
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6533 79b11f02-f210-0410-99aa-fb189b3d1ac4
    cgroves committed Jul 12, 2009
  3. Set the name of the produced proxy class to the value from __javaclas…

    …s__ if it's set in the Python
    
    class.
    
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6532 79b11f02-f210-0410-99aa-fb189b3d1ac4
    cgroves committed Jul 12, 2009
  4. reducing heap memory for antlr task from 1024 to 128 since that appea…

    …rs to be
    
    enough for the problematic case (JDK 6 on OS X).
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6531 79b11f02-f210-0410-99aa-fb189b3d1ac4
    fwierzbicki committed Jul 12, 2009
  5. upped memory for antlr task. Needed for (at least) JDK 6 on OS X.

    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6530 79b11f02-f210-0410-99aa-fb189b3d1ac4
    fwierzbicki committed Jul 12, 2009
Commits on Jul 11, 2009
  1. don't encode unicode when printing to an intercepted stream

    thanks Pekka Klarck
    fixes #1802339
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6529 79b11f02-f210-0410-99aa-fb189b3d1ac4
    pjenvey committed Jul 11, 2009
  2. small refactor

    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6528 79b11f02-f210-0410-99aa-fb189b3d1ac4
    pjenvey committed Jul 11, 2009
  3. Added the ContextManager interface and supporting code to enable

    context mgmt through the with-statement to be efficiently inlined by
    the JVM. The ContextManager interface allows for direct calls via
    invokeinterface of __enter__ and __exit__ instead of requiring
    getattr. ContextGuard is used to wrap managers that don't support this
    Java interface.
    
    threading.Lock (=RLock) and Condition are now written in Java for
    performance and support the new ContextManager protocol.
    
    This addresses some of the performance issues that Tobias blogged on
    http://journal.thobe.org/2009/06/performance-of-synchronization.html
    
    Bumped bytecode magic.
    
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6527 79b11f02-f210-0410-99aa-fb189b3d1ac4
    zyasoft committed Jul 11, 2009
Commits on Jul 9, 2009
  1. Ensure that Thread.group is None since we're not doing anything with …

    …it, and that's what CPython does
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6526 79b11f02-f210-0410-99aa-fb189b3d1ac4
    cgroves committed Jul 9, 2009
Commits on Jul 7, 2009
  1. Javadoc corrections.

    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6525 79b11f02-f210-0410-99aa-fb189b3d1ac4
    amak committed Jul 7, 2009
  2. Fixing a previously unspotted bug in modjy's handling of imports in .…

    …pth files.
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6522 79b11f02-f210-0410-99aa-fb189b3d1ac4
    amak committed Jul 7, 2009
  3. More whitespace cleanup and "diff shrinking" between all of the gramm…

    …ars.
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6521 79b11f02-f210-0410-99aa-fb189b3d1ac4
    fwierzbicki committed Jul 7, 2009
  4. Commenting out all AI_CANONNAME tests for now. Much further research …

    …needed; may never be cross-platform testable.
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6520 79b11f02-f210-0410-99aa-fb189b3d1ac4
    amak committed Jul 7, 2009
  5. Commenting out a single test that gives varying results across platfo…

    …rms, and thus cannot be reliably tested.
    
    Also some whitespace cleanup.
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6519 79b11f02-f210-0410-99aa-fb189b3d1ac4
    amak committed Jul 7, 2009
  6. unused method

    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6518 79b11f02-f210-0410-99aa-fb189b3d1ac4
    pjenvey committed Jul 7, 2009
  7. convert unicode hashlib input to str via defaultencoding

    fixes #1189
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6517 79b11f02-f210-0410-99aa-fb189b3d1ac4
    pjenvey committed Jul 7, 2009
  8. Start of a Base grammar that is the common code from Python.g and

    PythonPartial.g.
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6516 79b11f02-f210-0410-99aa-fb189b3d1ac4
    fwierzbicki committed Jul 7, 2009
Commits on Jul 6, 2009
  1. Whitespace cleanup.

    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6515 79b11f02-f210-0410-99aa-fb189b3d1ac4
    fwierzbicki committed Jul 6, 2009
  2. Tightened interactive parse of partial strings. Two of the commented …

    …out tests
    
    for test_codeop now pass.  Unfortunately one new test fails, but it is less
    serious than the two that are now fixed, so commented it out for now.
    
    
    git-svn-id: https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython@6514 79b11f02-f210-0410-99aa-fb189b3d1ac4
    fwierzbicki committed Jul 6, 2009