<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://permalink.gmane.org/gmane.comp.lang.jython.user">
    <title>gmane.comp.lang.jython.user</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7337"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7336"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7335"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7334"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7333"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7332"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7331"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7330"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7329"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7328"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7327"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7326"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7325"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7324"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7323"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7322"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7321"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7320"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7319"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.jython.user/7318"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7337">
    <title>How best to deal with a bunch of .jar files?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7337</link>
    <description>Hello,

I need some basic help understanding how best to manage Jython scripts 
that need access to lots of jar files (CLASSPATH, sys.path, registry). 
I'm using Debian Lenny with Jython 2.2.1 on java1.6.0_0 (installed as 
the standard packages).

I'm using Jython to script Jasper Reports (an open-source Java reporting 
library), which has a lot of dependencies (it's /lib subdirectory 
contains 45 jar files).

To get things working, I have added the full paths to all 45 jar files 
to my CLASSPATH environment variable (2,690 characters). It also works 
if I add the jar paths to the registry's python.path property and unset 
CLASSPATH (or jython -Dpython.path=/long/path1:/long/path2:..., although 
that's pretty unwieldy).

My questions are:

   1. Is there a less-verbose way to load so many jars? (Like a way to 
point to just the directory containing the jars?)

   2. I had a lot of problems and confusion that went away once I 
started clearing out cachedir before running my scripts. For example, my 
CLASSPATH</description>
    <dc:creator>David Niergarth</dc:creator>
    <dc:date>2008-12-03T17:31:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7336">
    <title>re cursive submodule imports</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7336</link>
    <description>
I am facing a problem with recursive submodule imports.
Here is my python script directory structure
   script:
        __init__.py
        A:
              __init__.py
              B:
                   __init__.py

content of the __init__.py in module B is
def test():
    print 'hahahaha'

if i do this in jython 2.2 

import script
script.A.B.test()

it is working fine and printing 'hahahaha'.
But the same thing in 2.5 is giving this error.

Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: 'module' object has no attribute 'A'

if i add explicit imports for A and B then it is working fine...
Can someone helps me to solve this??? How can i enable automatic submodule
imports like what is happening in jython2.2

Thanks in advance,
Pratibha.
</description>
    <dc:creator>pratibha chitipothu</dc:creator>
    <dc:date>2008-12-03T12:54:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7335">
    <title>Re: Global global variables</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7335</link>
    <description>Thank you,

Does anyone have an idea of the equivalent in JS223, or any other
suggestions?


-----Original Message-----
From: Jeff Emanuel [mailto:jemanuel&lt; at &gt;frii.com] 
Sent: 02 December 2008 18:52
To: Scott, Gregory
Cc: Jython-users&lt; at &gt;lists.sourceforge.net
Subject: Re: [Jython-users] Global global variables


Python modules do not have access to the namespace
of the where they are imported.  Create a namespace
in your interpreter, say __main__, and add sim to it.
Then mypython and someother can import sim from __main__.

I don't know how you would do this with JSR223, but
here's how it would work for PythonInterpreter.

          _interp = new PythonInterpreter();
          PyModule mod = imp.addModule("__main__");
          _interp.setLocals(mod.__dict__);
          _interp.set("sim",new SomeJavaObject());

In your .py files:

try:
  from __main__ import sim
  print sim
except ImportError,oops:
  print oops







Scott, Gregory wrote:
supply it with a variable, called 'sim'
accessing the variable.
script has </description>
    <dc:creator>Greg Scott</dc:creator>
    <dc:date>2008-12-02T21:06:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7334">
    <title>Re: Global global variables</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7334</link>
    <description>
Python modules do not have access to the namespace
of the where they are imported.  Create a namespace
in your interpreter, say __main__, and add sim to it.
Then mypython and someother can import sim from __main__.

I don't know how you would do this with JSR223, but
here's how it would work for PythonInterpreter.

          _interp = new PythonInterpreter();
          PyModule mod = imp.addModule("__main__");
          _interp.setLocals(mod.__dict__);
          _interp.set("sim",new SomeJavaObject());

In your .py files:

try:
  from __main__ import sim
  print sim
except ImportError,oops:
  print oops







Scott, Gregory wrote:

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>Jeff Emanuel</dc:creator>
    <dc:date>2008-12-02T18:51:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7333">
    <title>Global global variables</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7333</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/_______________________________________________
Jython-users mailing list
Jython-users&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
</description>
    <dc:creator>Scott, Gregory</dc:creator>
    <dc:date>2008-12-02T15:28:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7332">
    <title>Re: jythono code completion?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7332</link>
    <description>Yes, you are right. I just tried it today. It does support
code completion, with limitations, though. When I tried:

from java.lang import System
System.out.println("Hello World")

It was able to prompt after "System." but not after "System.out.".
Not sure if it's a bug or something.






-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>jlist</dc:creator>
    <dc:date>2008-12-02T05:20:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7331">
    <title>Re: jythono code completion?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7331</link>
    <description>
I believe Pydev - http://pydev.sourceforge.net/ - adds code completion
to Eclipse, though I haven't used it personally.

Charlie

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>Charlie Groves</dc:creator>
    <dc:date>2008-12-02T05:05:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7330">
    <title>jythono code completion?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7330</link>
    <description>Eclipse code-completion works wonderfully for Java. I wonder
if it supports code-completion of Java classes in Jython?
Or, is there some other editors that support this? I have been
using a Python editor for my Jython work and it knows nothing
about the Java classes...


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>jlist</dc:creator>
    <dc:date>2008-12-01T17:59:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7329">
    <title>Re: SciPy with Jython</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7329</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/_______________________________________________
Jython-users mailing list
Jython-users&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
</description>
    <dc:creator>Jim Baker</dc:creator>
    <dc:date>2008-12-01T17:01:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7328">
    <title>using telnetlib and its expect method in jython</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7328</link>
    <description>
Hi,

I am using the latest stable version of jython, version 2.2.1 and I am
trying to write a simple telnet program. However, I am having an issue with
the expect method in it.

Here is my code:

import telnetlib

HOST = 'localhost'
user = 'someone'
password = 'someones password'

tn = telnetlib.Telnet(HOST, 22)

aa, bb, cc = tn.expect(['&gt;&gt;&gt;'], 1)

print aa
print bb
print cc

And this is the error message:

Traceback (innermost last):
  File "/home/qm/workspace/project000/telnettest.py", line 11, in ?
  File "/home/qm/jython/Lib/telnetlib.py", line 623, in expect
  File "/home/qm/jython/Lib/select.py", line 204, in
cpython_compatible_select
  File "/home/qm/jython/Lib/select.py", line 54, in _getselectable
TypeError: ("Object 'java.nio.channels.SocketChannel[connected
local=/127.0.0.1:45293 remote=/127.0.0.1:22]' is not watchable", 88)

What am I supposed to do? Keep in mind that it works fine in Cpython and
also if I replace expect method with read_until method. But, expect is
important for me because ther</description>
    <dc:creator>ShamanMahmoudi</dc:creator>
    <dc:date>2008-12-01T12:59:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7327">
    <title>SciPy with Jython</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7327</link>
    <description>Hi

Has sciPy been ported to jython or is there a way to use Scipy in Java.
If yes can anyone provide with a link of an example or anything for
that... i.e demonstrating how to use it. Couldn't really find any...


TIA

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>indian scorpio</dc:creator>
    <dc:date>2008-12-01T09:11:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7326">
    <title>Raymundo Baquirin has invited you to join Friendster</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7326</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/_______________________________________________
Jython-users mailing list
Jython-users&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
</description>
    <dc:creator>Raymundo Baquirin</dc:creator>
    <dc:date>2008-12-01T02:23:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7325">
    <title>Embed Jython into Eclipse Plugin - javaos not found</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7325</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/_______________________________________________
Jython-users mailing list
Jython-users&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
</description>
    <dc:creator>Paul Gibbons</dc:creator>
    <dc:date>2008-11-30T21:35:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7324">
    <title>Re: Syntax errors</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7324</link>
    <description>I have compiled your exact code (copy and paste) and it runs  
perfectly. Maybe, you have a problem in the classpath.

josu

On 08-aza-30, at 01:23, David Bush wrote:



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>josu</dc:creator>
    <dc:date>2008-11-30T09:03:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7323">
    <title>Re: Syntax errors</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7323</link>
    <description>Jeff-

I agree...those were my same thoughts.


Josh Juneau
juneau001&lt; at &gt;gmail.com
http://jj-blogger.blogspot.com
http://www.gathereventplanning.com
Twitter ID:  javajuneau



On Sat, Nov 29, 2008 at 8:22 PM, Jeff Emanuel &lt;jemanuel&lt; at &gt;frii.com&gt; wrote:

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>Josh Juneau</dc:creator>
    <dc:date>2008-11-30T02:45:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7322">
    <title>Re: Syntax errors</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7322</link>
    <description>Hi David-

I will take a couple of guesses as to what is going wrong, but I
cannot be sure because the code looks to be correct.

My first suggestion is that in the first program you displayed, the
last import statement is spanning two lines.  This could be simply
because of the way the email was formatted, but if not then it needs
to be on a single line.

Second, which version of the JDK are you using to compile this code?
How are you attempting to compile, via IDE or command line?

Hopefully your answers to the above questions can help us decide where
the issue resides.

Best

Josh Juneau
juneau001&lt; at &gt;gmail.com
http://jj-blogger.blogspot.com
http://www.gathereventplanning.com
Twitter ID:  javajuneau



On Sat, Nov 29, 2008 at 6:23 PM, David Bush &lt;davidbush4&lt; at &gt;googlemail.com&gt; wrote:

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Gra</description>
    <dc:creator>Josh Juneau</dc:creator>
    <dc:date>2008-11-30T02:37:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7321">
    <title>Re: Syntax errors</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7321</link>
    <description>
It appears you are passing Java code to
the Jython intepreter.  Try javac instead.

David Bush wrote:

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>Jeff Emanuel</dc:creator>
    <dc:date>2008-11-30T02:22:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7320">
    <title>Syntax errors</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7320</link>
    <description>-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/_______________________________________________
Jython-users mailing list
Jython-users&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users
</description>
    <dc:creator>David Bush</dc:creator>
    <dc:date>2008-11-30T00:23:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7319">
    <title>Jython Monthly - Issue #24 - November 28, 2008</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7319</link>
    <description>============================================
Jython Monthly - Issue #24 - November 28, 2008
URL: http://wiki.python.org/jython/JythonMonthly/Newsletters/November2008
Please send articles and news to:  juneau001&lt; at &gt;gmail.com
============================================

Please read the complete newsletter by visiting the URL above.

Happy Thanksgiving to the community.  Stay tuned for the new Jython
Monthly podcast
which should begin next month if all goes as planned.  I will post
details to the list.

Sorry for the late distribution this month, the family and work have been
keeping me busy!

Best,

Josh Juneau

Summary of November 2008 Contents:

News
====

Jython 2.5 b0 Released
http://www.jython.org

Netbeans 6.5 Released
http://www.netbeans.org

nbPython Releases EA
http://download.netbeans.org/netbeans/6.5/python/ea/

Jythonroid
http://code.google.com/p/jythonroid/

Articles
======

Comparison of Python Virtual Machines

    In this article I'm going to go through some details about what is
going on under t</description>
    <dc:creator>Josh Juneau</dc:creator>
    <dc:date>2008-11-29T03:11:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7318">
    <title>Re: string to method call</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7318</link>
    <description>Even better (and a bit safer):

getattr(classinstance, methodname)(*args, **kwargs)

Best,

Chris.

On Fri, Nov 28, 2008 at 09:19:32AM -0200, claudef&lt; at &gt;br.ibm.com wrote:


-------------------
http://mccormick.cx

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/
</description>
    <dc:creator>Chris McCormick</dc:creator>
    <dc:date>2008-11-28T13:18:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.jython.user/7317">
    <title>Re: Serialization</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.jython.user/7317</link>
    <description>

Charlie Groves wrote:

Well, the code I posted was minimal, so I'd say creating a test case is
expanding, not reducing, the code.
Anyway, I turned it into a basic set of junit tests:

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

import org.junit.Test;
import org.python.core.PyModule;
import org.python.core.PyObject;
import org.python.core.imp;
import org.python.util.PythonInterpreter;
import org.python.util.PythonObjectInputStream;

public class SerializationTests {
private PythonInterpreter interp;

public void init() {
interp = new PythonInterpreter();
}

public void setupMain() {
final PyModule mod = imp.addModule("__main__");
interp.setLocals(mod.__dict__);
}

public void createObject() {
interp.exec("from java.lang import Object");
interp.exec("from java.io import Serializable");
interp.exec("class Test(Serializable):\n\tdef
__init__(self):\n\t\tObject.__init__(self)\n");
interp.exec("x = </description>
    <dc:creator>aditsu</dc:creator>
    <dc:date>2008-11-28T12:49:54</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.lang.jython.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.jython.user</link>
  </textinput>
</rdf:RDF>
