http://bugs.jython.com ...


... now points to the CPython bugs database.

Cheers,

SB

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Jython tracker | 26 Sep 18:08

Summary of Jython tracker Issues


ACTIVITY SUMMARY (09/19/08 - 09/26/08)
Jython tracker at http://bugs.jython.org/

To view or respond to any of the issues listed below, click on the issue 
number.  Do NOT respond to this message.

  192 open ( +5) /   967 closed ( +0) /  1159 total ( +5)

Open issues with patches:    27

Average duration of open issues: 849 days.
Median duration of open issues: 2070 days.

Open Issues Breakdown
   open   190 ( +5)
pending     2 ( +0)

Issues Created Or Reopened (5)
______________________________

Built-in functions should be of type types.BuiltinFunction       09/20/08
       http://bugs.jython.org/issue1134    created  ericjacobs     

jython_installer-2.5a3.jar hangs                                 09/22/08
       http://bugs.jython.org/issue1135    created  catherinedevlin

Parsing a module fails if it ends with whitespace but no newline 09/23/08
       http://bugs.jython.org/issue1136    created  yanne          

(Continue reading)

Jython tracker | 3 Oct 18:06

Summary of Jython tracker Issues


ACTIVITY SUMMARY (09/26/08 - 10/03/08)
Jython tracker at http://bugs.jython.org/

To view or respond to any of the issues listed below, click on the issue 
number.  Do NOT respond to this message.

  196 open ( +4) /   967 closed ( +0) /  1163 total ( +4)

Open issues with patches:    28

Average duration of open issues: 838 days.
Median duration of open issues: 2135 days.

Open Issues Breakdown
   open   194 ( +4)
pending     2 ( +0)

Issues Created Or Reopened (4)
______________________________

crashes on isinstance                                            09/30/08
       http://bugs.jython.org/issue1139    created  Paul_vZ        

unicodedata from jar file                                        10/01/08
       http://bugs.jython.org/issue1140    created  oleastre       

Incorrect __import__ calls                                       10/01/08
       http://bugs.jython.org/issue1141    created  boisgera       

(Continue reading)

Incorrect __import__ calls


Hi,

I have noticed differences in __import__ call arguments between Jython and CPython. See below what module 'name' and 'fromlist' arguments are when several import statements are used. CPython is used as the reference.

$ jython test.py
--------------------------------------------------
statement: import hell.first_circle
  - expected: ('hell.first_circle', None)
  - got:      ('hell.first_circle', ())
--------------------------------------------------
statement: import hell.first_circle as limbo
  - expected: ('hell.first_circle', None)
  - got:      ('hell.first_circle', ('*',))
--------------------------------------------------
statement: from hell.ninth_circle import *
  - expected: ('hell.ninth_circle', ('*',))
  - got:      ('hell.ninth_circle', ('*',))
--------------------------------------------------
statement: from hell.ninth_circle import antaeus
  - expected: ('hell.ninth_circle', ('antaeus',))
  - got:      ('hell.ninth_circle', ('antaeus',))
--------------------------------------------------
statement: from hell.ninth_circle import antaeus as giant
  - expected: ('hell.ninth_circle', ('antaeus',))
  - got:      ('hell.ninth_circle', ('antaeus',))

*** FAILURE: 2 errors ***
The first failure is minor: () is used instead of None to denote an empty fromlist.

The second one is a bigger problem IMHO: it sends the wrong signal that all symbols from hell.first_circle should be imported when only the module is searched for. While this is not an issue with the standard __builtin__.__import__ function, it  may be a pain when __import__ is overriden -- that's how I discovered the issue in the first place. I've produced a modified imp.java file that should address this second issue (but not the first, empty tuples are still used, so there are still 2 errors even with the patch), see attached diff.txt

Can anyone review/comment this patch and tell me if it breaks something ? Shall I go on and replace '()' with 'None' as an empty fromlist argument to fully conform to CPython ? File a bug report and assign the issue to anyone ?

Cheers,

SB

Attachment (test.py): text/x-python, 1157 bytes
Index: src/org/python/core/imp.java
===================================================================
--- src/org/python/core/imp.java	(révision 5349)
+++ src/org/python/core/imp.java	(copie de travail)
@@ -747,8 +747,12 @@
      */
     public static PyObject importOneAs(String mod, PyFrame frame) {
         PyObject module = __builtin__.__import__(mod, frame.f_globals, frame
-                .getLocals(), getStarArg());
+                .getLocals(), Py.EmptyTuple);
         // frame.setlocal(asname, module);
+        String[] parts = mod.split("\\.");
+        for (int i=1; i < parts.length; i++) {
+            module = module.__getattr__(parts[i]);
+        }
         return module;
     }

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jython-dev mailing list
Jython-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-dev

Encoding Issue in Jython Console


Hi all,

Currently, in my Linux with a UTF-8 locale and terminal settings, the 
Jython console (from the current trunk) defines improperly unicode strings.

    $ ./bin/jython --verify
    ...
    >>> u"é"
    u'\xc3\xa9'

instead of the correct:

    $ python
    ...
    >>> u"é"
    u'\xe9'

The 'cflags.encoding' option is AFAICT never set in Jython code and in 
this case the input string is therefore assumed to be latin-1 in 
ParserFacade.
Could the 'encoding' attribute default be set to the Java 
'file.encoding' property in CompilerFlags instances (instead of null) ?
That would solve this specific problem ... would it create other issues ?

Cheers,

SB

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Jython tracker | 12 Sep 18:08

Summary of Jython tracker Issues


ACTIVITY SUMMARY (09/05/08 - 09/12/08)
Jython tracker at http://bugs.jython.org/

To view or respond to any of the issues listed below, click on the issue 
number.  Do NOT respond to this message.

  235 open ( +8) /   912 closed ( +0) /  1147 total ( +8)

Open issues with patches:    35

Average duration of open issues: 793 days.
Median duration of open issues: 1771 days.

Open Issues Breakdown
   open   235 ( +8)
pending     0 ( +0)

Issues Created Or Reopened (8)
______________________________

socket module has no attribute SO_ERROR                          09/06/08
       http://bugs.jython.org/issue1119    created  glyph          
       twisted                                                                 

invalid socket shutdown gives AssertionError, should be "transpo 09/06/08
       http://bugs.jython.org/issue1120    created  glyph          
       twisted                                                                 

listening socket shutdown expects the wrong kind of socket       09/06/08
       http://bugs.jython.org/issue1121    created  glyph          
       twisted                                                                 

os.kill is not implemented                                       09/06/08
       http://bugs.jython.org/issue1122    created  glyph          
       twisted                                                                 

Weird "unexpected at this time" error.                           09/08/08
       http://bugs.jython.org/issue1123    created  astigmatik     

os.popen variants hang when executed command produces a lot to s 09/08/08
       http://bugs.jython.org/issue1124    created  laukpe         

not valid JAVA_HOME path                                         09/10/08
       http://bugs.jython.org/issue1125    created  foripperz      

ImportError raised for Java subpackages import                   09/10/08
       http://bugs.jython.org/issue1126    created  boisgera       

Issues Now Closed (2)
_____________________

Passing options to -W blows it up                                   3 days
       http://bugs.jython.org/issue1118    zyasoft        

Java classes exposed as Python classes but have no __module__     414 days
       http://bugs.jython.org/issue1758279 nriley         
       patch, test failure causes, twisted                                     

Top Issues Most Discussed (3)
_____________________________

  6 Weird "unexpected at this time" error.                             4 days
open    http://bugs.jython.org/issue1123   

  5 Java classes exposed as Python classes but have no __module__    414 days
closed  http://bugs.jython.org/issue1758279

  5 Standalone crashes with ZipException                              58 days
open    http://bugs.jython.org/issue1070   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jython-dev mailing list
Jython-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-dev
Frank Wierzbicki | 11 Sep 03:27

Jython 2.5 Alpha3 Released!

On behalf of the Jython development team, I'm pleased to announce that
Jython 2.5a3 is available for download at
http://downloads.sourceforge.net/jython/jython_installer-2.5a3.jar.
See the installation instructions here:
http://jython.org/Project/installation.html

Jython 2.5 Alpha3 fixes a bug that caused installation problems for
many Windows users, so Oti Humbel and Leo Soto came to the rescue with
an assist by Geoffrey French.  Oti also fixed standalone mode while he
was there.   Yay!

As before, this is an alpha release so be careful.

-Frank

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Jython tracker | 5 Sep 18:06

Summary of Jython tracker Issues


ACTIVITY SUMMARY (08/29/08 - 09/05/08)
Jython tracker at http://bugs.jython.org/

To view or respond to any of the issues listed below, click on the issue 
number.  Do NOT respond to this message.

  229 open ( +2) /   910 closed ( +2) /  1139 total ( +4)

Open issues with patches:    35

Average duration of open issues: 808 days.
Median duration of open issues: 1696 days.

Open Issues Breakdown
   open   229 ( +2)
pending     0 ( +0)

Issues Created Or Reopened (4)
______________________________

__lt__ in a derived list produces a StackOverflowError           08/29/08
       http://bugs.jython.org/issue1115    created  tmueller       

parser NPE on dotted (more than 1) attribute decorators          08/30/08
CLOSED http://bugs.jython.org/issue1116    created  pjenvey        

calling close on an iterator generator                           09/01/08
CLOSED http://bugs.jython.org/issue1117    created  egonw_         

Passing options to -W blows it up                                09/02/08
       http://bugs.jython.org/issue1118    created  thijs          

Issues Now Closed (2)
_____________________

parser NPE on dotted (more than 1) attribute decorators             0 days
       http://bugs.jython.org/issue1116    fwierzbicki    

calling close on an iterator generator                              4 days
       http://bugs.jython.org/issue1117    zyasoft        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jython-dev mailing list
Jython-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-dev
Jython tracker | 29 Aug 18:08

Summary of Jython tracker Issues


ACTIVITY SUMMARY (08/22/08 - 08/29/08)
Jython tracker at http://bugs.jython.org/

To view or respond to any of the issues listed below, click on the issue 
number.  Do NOT respond to this message.

  227 open ( +5) /   908 closed ( +0) /  1135 total ( +5)

Open issues with patches:    35

Average duration of open issues: 808 days.
Median duration of open issues: 1689 days.

Open Issues Breakdown
   open   227 ( +5)
pending     0 ( +0)

Issues Created Or Reopened (5)
______________________________

ntpath.isdir failed in vista                                     08/22/08
       http://bugs.jython.org/issue1110    created  jy123          

keyword arguments not supported on __import__                    08/26/08
       http://bugs.jython.org/issue1111    created  wesleys        

Shebang handlers must be compiled (sys.executable)               08/28/08
       http://bugs.jython.org/issue1112    created  pjenvey        

Syntax + Compiler Error                                          08/28/08
       http://bugs.jython.org/issue1113    created  arianepaola    

Compiler Error - null pointer                                    08/28/08
       http://bugs.jython.org/issue1114    created  arianepaola    

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jython-dev mailing list
Jython-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-dev
Frank Wierzbicki | 27 Aug 18:04

nowalker branch

Hi all,

The nowalker branch is nearing completion -- I have merged Python.g
and PythonWalker.g into just a Python.g.  The unit tests now pass as
well as they do in trunk -- the new Python.g is (at least in my
opinion) *much* simpler than the 2 grammar approach which was really
only necessary because of some limitations in Anltr 3.0 (which I
really where just limitations in my understanding of Antlr 3.0 -- I
think now that I've gone through this process I could have done it in
3.0).

The imaginary tokens that I was using are now gone, leaving only the
INDENT and DEDENT tokens that where there in the original example
Python.g from the Antlr project.  I now have much finer control over
the offsets, so I should be able to get almost all of these to match
CPython (there are one or two differences I've seen that look like
they *may* be odd implementation details).  My internet connectivity
is intermittent today and tomorrow -- so I'll wait until Friday or
Saturday to merge this branch back into trunk.  If anyone wants to
give it a test it is here:

 https://jython.svn.sourceforge.net/svnroot/jython/branches/nowalker

-Frank

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Leo Soto M. | 24 Aug 20:52

GSoC Final Report: Django on Jython

Looks like many people already know about my SoC results. But I wanted
to "officially" finish the SoC reports.

Django works on Jython without special patching. The tutorial can be
followed without any problems. And Django projects are extremely easy
to deploy on a Java Application Server, thanks to modjy. I'd even say
that deploying Django/Jython on Java appservers is easiest than
Django/CPython on apache/fastcgi/whatever.

On the test suite, I wasn't able to fix all of the failures. Django
developers did a great job on the testing front, growing from ~200
tests when I started the SoC to more than 400 now. That's a good
thing, as it made possible to spot some bugs on Jython, but it makes
the task of having fully passing test suite a bit more difficult. By
the end of the SoC coding period, we had 92% of Django tests passing.
A good number anyway, but should be improved.

There is also more work to do on the DB-backends front[1]. I think
that we may be able to easy the deployment of projects which mix
Django/Jython and Java code.

I'm not disappearing now. I want to continue coding and growing the
support of Django on Jython. That's why I've started the django-jython
project[2]. By now, it doesn't have a separate mailing list, since I
don't see why it should. I think we should keep the Django/Jython
usage discussions on the jython-users list.

Also, I'm now a Jython developer, and have a lot of pending tasks to
do on the Jython front which were motivated by my work on Django
integration. I won't have as much time as I had before, but I expect
to be hanging around here for a long time.

Thanks to everyone which helped me on this great experience!

[1] http://code.google.com/p/django-jython/wiki/DevelopingNewDatabaseBackends
[2] http://code.google.com/p/django-jython/
--

-- 
Leo Soto M.
http://blog.leosoto.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane