<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-4123</id>
	<title>Nabble - jython-users</title>
	<updated>2009-11-25T03:27:17Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/jython-users-f4123.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython-users-f4123.html" />
	<subtitle type="html">Mailing list archive for jython-users</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26511169</id>
	<title>Using Swing from Jython - EDT safety?</title>
	<published>2009-11-25T03:27:17Z</published>
	<updated>2009-11-25T03:27:17Z</updated>
	<author>
		<name>Joonas Pulakka</name>
	</author>
	<content type="html">Hello,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Swing&amp;#39;s thread policy has apparently been getting stricter over years, and as mentioned for example here: &lt;a href=&quot;http://stackoverflow.com/questions/491323/is-it-safe-to-construct-swing-awt-widgets-not-on-the-event-dispatch-thread&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/questions/491323/is-it-safe-to-construct-swing-awt-widgets-not-on-the-event-dispatch-thread&lt;/a&gt; &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It&amp;#39;s &amp;quot;illegal&amp;quot; to even _construct_ Swing widgets outside the event dispatch thread, let alone manipulate them. In other words, code like this &lt;a href=&quot;http://jythonpodcast.hostjava.net/jythonbook/chapter16.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://jythonpodcast.hostjava.net/jythonbook/chapter16.html&lt;/a&gt; works, strictly speaking, only by coincidence, unless the code is explicitly launched on the EDT - and generally it isn&amp;#39;t.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;This is a pity, since Jython&amp;#39;s other features regarding Swing are quite nice, making the code concise and clear. Is there a simple workaround this? Should some &amp;quot;thread safety help&amp;quot; be built into core Jython? How have you people dealt with this issue - building workarounds, or simply Swinging outside the EDT by luck?&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Best Regards,&lt;/div&gt;&lt;div&gt;Joonas&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511169&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-Swing-from-Jython---EDT-safety--tp26511169p26511169.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26501787</id>
	<title>Re: jsr223 and jython</title>
	<published>2009-11-24T11:17:25Z</published>
	<updated>2009-11-24T11:17:25Z</updated>
	<author>
		<name>Cabler, Adam</name>
	</author>
	<content type="html">I am doing something similar, except I am using the classpath to locate
&lt;br&gt;my module where you are pointing to a stream. &amp;nbsp;Here is the code I'm
&lt;br&gt;using to replace the __tojava__ call:
&lt;br&gt;&lt;br&gt;ScriptEngine engine = new ScriptEngineManager()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;.getEngineByName(&amp;quot;python&amp;quot;); 
&lt;br&gt;//call import or whatever here
&lt;br&gt;Class o = (Class) engine.get(name);
&lt;br&gt;Object ni = o.getConstructors()[0].newInstance(null);
&lt;br&gt;MyFcn u = (MyFcn) ni; &amp;nbsp;//MyFcn is an interface implemented by the python
&lt;br&gt;class
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Anamitra Bhattacharyya [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26501787&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ana_mitra@...&lt;/a&gt;] 
&lt;br&gt;Sent: Tuesday, November 24, 2009 7:48 AM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26501787&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jython-users@...&lt;/a&gt;
&lt;br&gt;Subject: [Jython-users] jsr223 and jython
&lt;br&gt;&lt;br&gt;Hi
&lt;br&gt;I am trying to figure out if there is a jsr223 way to use this jyhton
&lt;br&gt;feature where I can use jython to extend a java class. I am looking at
&lt;br&gt;the Invocable interface in jsr223 and I am not sure if that has all the
&lt;br&gt;features to pull this. Below is the code snippet [jython specific] that
&lt;br&gt;I use today to do this:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Object loadScriptAsJAVAObject(Class objectClass,
&lt;br&gt;InputStream script, String scriptClassName, Object[] args)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PySystemState sys = Py.getSystemState();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(sys==null)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sys = new PySystemState(); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sys.setClassLoader(getClass().getClassLoader()); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PythonInterpreter interpreter = new PythonInterpreter(null,
&lt;br&gt;sys); 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interpreter.execfile(script);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PyObject scriptClass = interpreter.get(scriptClassName);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PyObject scriptObject = scriptClass._jcall(args);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return scriptObject.__tojava__(objectClass);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;I am not sure how to model this using jsr223. Any pointers is
&lt;br&gt;appreciated.
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;Anamitra
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008
&lt;br&gt;30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and
&lt;br&gt;focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26501787&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26501787&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jsr223-and-jython-tp26498340p26501787.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26498340</id>
	<title>jsr223 and jython</title>
	<published>2009-11-24T07:47:55Z</published>
	<updated>2009-11-24T07:47:55Z</updated>
	<author>
		<name>Anamitra Bhattacharyya</name>
	</author>
	<content type="html">Hi
&lt;br&gt;I am trying to figure out if there is a jsr223 way to use this jyhton feature where I can use jython to extend a java class. I am looking at the Invocable interface in jsr223 and I am not sure if that has all the features to pull this. Below is the code snippet [jython specific] that I use today to do this:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Object loadScriptAsJAVAObject(Class objectClass, InputStream script, String scriptClassName, Object[] args)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PySystemState sys = Py.getSystemState();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(sys==null)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sys = new PySystemState(); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sys.setClassLoader(getClass().getClassLoader()); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PythonInterpreter interpreter = new PythonInterpreter(null, sys); 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interpreter.execfile(script);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PyObject scriptClass = interpreter.get(scriptClassName);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PyObject scriptObject = scriptClass._jcall(args);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return scriptObject.__tojava__(objectClass);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;I am not sure how to model this using jsr223. Any pointers is appreciated.
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;Anamitra
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498340&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jsr223-and-jython-tp26498340p26498340.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26464118</id>
	<title>ANN: Jump 0.9.7 released!</title>
	<published>2009-11-22T02:35:58Z</published>
	<updated>2009-11-22T02:35:58Z</updated>
	<author>
		<name>Olli Wang-2</name>
	</author>
	<content type="html">&lt;div&gt;I am proud to announce that Jump 0.9.7 is released! &lt;/div&gt;&lt;div&gt;Jump is a build tool for distributing Java and Jython applications in a really simple step. You can find the Jump project at &lt;a href=&quot;http://opensource.ollix.com/jump&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://opensource.ollix.com/jump&lt;/a&gt;. &lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;New features: &lt;/div&gt;&lt;div&gt; * Creating `build.xml` file for ant&lt;/div&gt;&lt;div&gt; * An easy use Jython factory&lt;/div&gt;&lt;div&gt; * Support creating standalone .exe files&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Change notes:&lt;/div&gt;&lt;div&gt;

 * Fixed compilation error when importing Java in Jython&lt;/div&gt;&lt;div&gt; * Compile Jython code after Java code compiled&lt;/div&gt;&lt;div&gt; * Move most build work to ant&lt;/div&gt;&lt;div&gt; * oparse and pylibtracer projects were departed from Jump&lt;/div&gt;

&lt;div&gt; * Make sure all binaries preserve execute permission&lt;/div&gt;&lt;div&gt; * Using FMPP to create templates in ant&lt;/div&gt;&lt;div&gt; * Created an ant task to compile Jython modules&lt;/div&gt;&lt;div&gt; * Added an easy use Jython factory&lt;/div&gt;
&lt;div&gt;
 * Use pkg_resources to retrieve the version string&lt;/div&gt;&lt;div&gt; * Added default icon for Mac App bundles and Windows.exe files&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;If you have any question or bug report, please post it to our mailing list at &lt;a href=&quot;http://groups.google.com/group/ollix-jump&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/ollix-jump&lt;/a&gt;, contributions are always welcome as well.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Regards,&lt;div&gt;-- &lt;br&gt;Olli Wang&lt;br&gt;&lt;br&gt;OLLI WANG PRODUCTIONS - &lt;a href=&quot;http://olliwang.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://olliwang.com&lt;/a&gt;&lt;br&gt;A BLOG ABOUT MY LIFE AND MY WORK&lt;br&gt;
&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26464118&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANN%3A-Jump-0.9.7-released%21-tp26464118p26464118.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26416430</id>
	<title>tojava error when running as eclipse plugin</title>
	<published>2009-11-18T13:46:46Z</published>
	<updated>2009-11-18T13:46:46Z</updated>
	<author>
		<name>Cabler, Adam</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:p=&quot;urn:schemas-microsoft-com:office:powerpoint&quot; xmlns:a=&quot;urn:schemas-microsoft-com:office:access&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:Z=&quot;urn:schemas-microsoft-com:&quot; xmlns:b=&quot;urn:schemas-microsoft-com:office:publisher&quot; xmlns:ss=&quot;urn:schemas-microsoft-com:office:spreadsheet&quot; xmlns:c=&quot;urn:schemas-microsoft-com:office:component:spreadsheet&quot; xmlns:odc=&quot;urn:schemas-microsoft-com:office:odc&quot; xmlns:oa=&quot;urn:schemas-microsoft-com:office:activation&quot; xmlns:html=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:q=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:rtc=&quot;http://microsoft.com/officenet/conferencing&quot; xmlns:D=&quot;DAV:&quot; xmlns:Repl=&quot;http://schemas.microsoft.com/repl/&quot; xmlns:mt=&quot;http://schemas.microsoft.com/sharepoint/soap/meetings/&quot; xmlns:x2=&quot;http://schemas.microsoft.com/office/excel/2003/xml&quot; xmlns:ppda=&quot;http://www.passport.com/NameSpace.xsd&quot; xmlns:ois=&quot;http://schemas.microsoft.com/sharepoint/soap/ois/&quot; xmlns:dir=&quot;http://schemas.microsoft.com/sharepoint/soap/directory/&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot; xmlns:dsp=&quot;http://schemas.microsoft.com/sharepoint/dsp&quot; xmlns:udc=&quot;http://schemas.microsoft.com/data/udc&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:sub=&quot;http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/&quot; xmlns:ec=&quot;http://www.w3.org/2001/04/xmlenc#&quot; xmlns:sp=&quot;http://schemas.microsoft.com/sharepoint/&quot; xmlns:sps=&quot;http://schemas.microsoft.com/sharepoint/soap/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:udcs=&quot;http://schemas.microsoft.com/data/udc/soap&quot; xmlns:udcxf=&quot;http://schemas.microsoft.com/data/udc/xmlfile&quot; xmlns:udcp2p=&quot;http://schemas.microsoft.com/data/udc/parttopart&quot; xmlns:wf=&quot;http://schemas.microsoft.com/sharepoint/soap/workflow/&quot; xmlns:dsss=&quot;http://schemas.microsoft.com/office/2006/digsig-setup&quot; xmlns:dssi=&quot;http://schemas.microsoft.com/office/2006/digsig&quot; xmlns:mdssi=&quot;http://schemas.openxmlformats.org/package/2006/digital-signature&quot; xmlns:mver=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns:mrels=&quot;http://schemas.openxmlformats.org/package/2006/relationships&quot; xmlns:spwp=&quot;http://microsoft.com/sharepoint/webpartpages&quot; xmlns:ex12t=&quot;http://schemas.microsoft.com/exchange/services/2006/types&quot; xmlns:ex12m=&quot;http://schemas.microsoft.com/exchange/services/2006/messages&quot; xmlns:pptsl=&quot;http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/&quot; xmlns:spsl=&quot;http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService&quot; xmlns:st=&quot;&amp;#1;&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Hello,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp; I am having trouble using Jython in an eclipse
plugin and wanted to see if anyone could help.&amp;nbsp; I have using a simple
object factory to load modules like in all the examples.&amp;nbsp; I have a
standalone test that can successfully load a module and receive an object that
conforms to my java interface.&amp;nbsp; However, when I try this in my eclipse
plugin, the call to __to__java fails, however, the constructor for my python
module is still called.&amp;nbsp; The same factory is called in both cases, but
there are a few differences.&amp;nbsp; First, as an eclipse plugin, I had to add my
plugin jars to the classpath manually in order for the py module to locate my
java packages.&amp;nbsp; The other difference is that the code is in jars instead
of directories.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&amp;nbsp; I am not really getting an error except that the
object returned from tojava is a PySingleton that contains a field that just
says &amp;#8220;Error&amp;#8221;.&amp;nbsp; I can&amp;#8217;t really find out anything else
about what I&amp;#8217;m doing wrong.&amp;nbsp; I would appreciate any help with this
issue.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Thanks,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;adam&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26416430&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tojava-error-when-running-as-eclipse-plugin-tp26416430p26416430.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26401258</id>
	<title>Re: Jython not finding JDBC driver class</title>
	<published>2009-11-17T18:00:43Z</published>
	<updated>2009-11-17T18:00:43Z</updated>
	<author>
		<name>Tony Schmidt-2</name>
	</author>
	<content type="html">Thanks for your reply, Justin.
&lt;br&gt;&lt;br&gt;This looks like it's working if I specify the CLASSPATH by calling the
&lt;br&gt;jython.jar from java, like so:
&lt;br&gt;&lt;br&gt;java -classpath
&lt;br&gt;/usr/local/psql/bin/pvjdbc2.jar:/usr/local/psql/bin/pvjdbc2x.jar:/usr/lo
&lt;br&gt;cal/psql/bin/jpscs.jar:/usr/share/java/jython.jar:/usr/share/java/oro.ja
&lt;br&gt;r:/usr/share/java/servlet.jar:/usr/lib/libreadline-java/libreadline-java
&lt;br&gt;.jar org.python.util.jython read_scanmaster.py
&lt;br&gt;&lt;br&gt;Seems odd. I wonder why setting CLASSPATH in my shell environment didn't
&lt;br&gt;do anything. &amp;nbsp;I thought Jython was supposed to append that to
&lt;br&gt;java.class.path.
&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: Justin Deoliveira [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26401258&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jdeolive@...&lt;/a&gt;] 
&lt;br&gt;Sent: Tuesday, November 17, 2009 2:49 PM
&lt;br&gt;To: Tony Schmidt
&lt;br&gt;Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26401258&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jython-users@...&lt;/a&gt;.
&lt;br&gt;Subject: Re: [Jython-users] Jython not finding JDBC driver class
&lt;br&gt;&lt;br&gt;As far as I know jdbc drivers can only be loaded from the system
&lt;br&gt;classpath, which means not with the syspath class loader. So I believe
&lt;br&gt;directly adding the libs to the syspath can't work.
&lt;br&gt;&lt;br&gt;Have you tried importing the driver class directly to see if it is
&lt;br&gt;indeed on the classpath when jython starts?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Tony Schmidt wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello Jython people.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I'm trying to see if I can use Jython to write an ETL script so I can 
&lt;br&gt;&amp;gt; use a Pervasive JDBC driver and avoid writing the script in Java.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I'm able to access the driver from Java with 
&lt;br&gt;&amp;gt; Class.forName(&amp;quot;com.pervasive.jdbc.v2.Driver&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; However, I can't seem to get my Jython script to recognize the driver.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; ------------------------------------------
&lt;br&gt;&amp;gt; from java import *
&lt;br&gt;&amp;gt; from java.sql import *
&lt;br&gt;&amp;gt; from java.lang import *
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Class.forName(&amp;quot;com.pervasive.jdbc.v2.Driver&amp;quot;).newInstance()
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Gives me:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt; Traceback (innermost last):
&lt;br&gt;&amp;gt; &amp;nbsp; File &amp;quot;read_scanmaster.py&amp;quot;, line 18, in ?
&lt;br&gt;&amp;gt; &amp;nbsp;at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
&lt;br&gt;&amp;gt; &amp;nbsp;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.Class.forName0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.Class.forName(Class.java:186)
&lt;br&gt;&amp;gt; &amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp;at 
&lt;br&gt;&amp;gt;
&lt;/div&gt;sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
&lt;br&gt;a:57)
&lt;br&gt;&amp;gt; &amp;nbsp;at 
&lt;br&gt;&amp;gt;
&lt;br&gt;sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
&lt;br&gt;Impl.java:43)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:616)
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: 
&lt;br&gt;&amp;gt; com.pervasive.jdbc.v2.Driver
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I'm executing the script from the same environment as the Java code
&lt;br&gt;that 
&lt;br&gt;&amp;gt; is able to recognize the driver, so I know the CLASSPATH is right.
&lt;br&gt;I've 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; also tried setting the CLASSPATH within the Jython script with:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt; import sys
&lt;br&gt;&amp;gt; sys.path.append('/usr/local/psql/bin/jpscs.jar')
&lt;br&gt;&amp;gt; sys.path.append('/usr/local/psql/bin/pvjdbc2.jar')
&lt;br&gt;&amp;gt; sys.path.append('/usr/local/psql/bin/pvjdbc2x.jar')
&lt;br&gt;&amp;gt; ---------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; But that doesn't help either.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Any tips would be greatly appreciated.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Tony
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;
&lt;/div&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008
&lt;br&gt;30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and
&lt;br&gt;focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26401258&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Justin Deoliveira
&lt;br&gt;OpenGeo - &lt;a href=&quot;http://opengeo.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://opengeo.org&lt;/a&gt;&lt;br&gt;Enterprise support for open source geospatial.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26401258&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Jython-not-finding-JDBC-driver-class-tp26379933p26401258.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26399545</id>
	<title>Pydev 1.5.1 Released</title>
	<published>2009-11-17T15:09:07Z</published>
	<updated>2009-11-17T15:09:07Z</updated>
	<author>
		<name>Fabio Zadrozny-3</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;Pydev 1.5.1 has been released
&lt;br&gt;&lt;br&gt;Details on Pydev: &lt;a href=&quot;http://pydev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pydev.org&lt;/a&gt;&lt;br&gt;Details on its development: &lt;a href=&quot;http://pydev.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pydev.blogspot.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;Release Highlights:
&lt;br&gt;-------------------------------
&lt;br&gt;&lt;br&gt;* Improvements in the AST rewriter
&lt;br&gt;* Improvements on the refactoring engine:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o No longer using BRM
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Merged with the latest PEPTIC
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Inline local available
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Extract method bug-fixes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Extract local on multi-line
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Generating properties using coding style defined in preferences
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Add after current method option added to extract method
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o A bunch of other corner-case situations were fixed
&lt;br&gt;* Bug-fixes:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Minor editor improvements
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Adding default forced builtins on all platforms (e.g.: time,
&lt;br&gt;math, etc) which wouldn't be on sys.builtin_module_names on some
&lt;br&gt;python installations
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Adding 'numpy' and 'Image' to the forced builtins always
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Ctrl+1: Generate docstring minor fixes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Ctrl+1: Assign to local now follows coding style preferences properly
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Exponential with uppercase E working on code-formatting
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o When a set/get method is found in code-completion for a java
&lt;br&gt;class an NPE is no longer thrown
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Backspace properly treated in block mode
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Setting IRONPYTHONPATH when dealing with Iron Python (projects
&lt;br&gt;could not be referenced)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o No longer giving spurious 'statement has no effect' inside of
&lt;br&gt;lambda and decorators
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Fixed new exec in python 3k
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Fixed NPE when breakpoint is related to a resource in a removed project
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Fixed import problem on regexp that could lead to a recursion.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o No longer giving NPE when debugging with the register view open
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o List access be treated as __getitem__() in the list -- patch
&lt;br&gt;from Tassilo Barth
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; o Fix for invalid auto-self added when typing
&lt;br&gt;&lt;br&gt;&lt;br&gt;What is PyDev?
&lt;br&gt;---------------------------
&lt;br&gt;&lt;br&gt;PyDev is a plugin that enables users to use Eclipse for Python, Jython
&lt;br&gt;and Iron Python development -- making Eclipse a first class Python IDE
&lt;br&gt;-- It comes with many goodies such as code completion, syntax
&lt;br&gt;highlighting, syntax analysis, refactor, debug and many others.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Fabio Zadrozny
&lt;br&gt;------------------------------------------------------
&lt;br&gt;Software Developer
&lt;br&gt;&lt;br&gt;Aptana
&lt;br&gt;&lt;a href=&quot;http://aptana.com/python&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://aptana.com/python&lt;/a&gt;&lt;br&gt;&lt;br&gt;Pydev - Python Development Environment for Eclipse
&lt;br&gt;&lt;a href=&quot;http://pydev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pydev.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://pydev.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pydev.blogspot.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26399545&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Pydev-1.5.1-Released-tp26399545p26399545.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26399273</id>
	<title>Re: Jython not finding JDBC driver class</title>
	<published>2009-11-17T14:48:42Z</published>
	<updated>2009-11-17T14:48:42Z</updated>
	<author>
		<name>Justin Deoliveira-6</name>
	</author>
	<content type="html">As far as I know jdbc drivers can only be loaded from the system 
&lt;br&gt;classpath, which means not with the syspath class loader. So I believe 
&lt;br&gt;directly adding the libs to the syspath can't work.
&lt;br&gt;&lt;br&gt;Have you tried importing the driver class directly to see if it is 
&lt;br&gt;indeed on the classpath when jython starts?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Tony Schmidt wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hello Jython people.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I'm trying to see if I can use Jython to write an ETL script so I can 
&lt;br&gt;&amp;gt; use a Pervasive JDBC driver and avoid writing the script in Java.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I'm able to access the driver from Java with 
&lt;br&gt;&amp;gt; Class.forName(&amp;quot;com.pervasive.jdbc.v2.Driver&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; However, I can't seem to get my Jython script to recognize the driver.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; ------------------------------------------
&lt;br&gt;&amp;gt; from java import *
&lt;br&gt;&amp;gt; from java.sql import *
&lt;br&gt;&amp;gt; from java.lang import *
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Class.forName(&amp;quot;com.pervasive.jdbc.v2.Driver&amp;quot;).newInstance()
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Gives me:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt; Traceback (innermost last):
&lt;br&gt;&amp;gt; &amp;nbsp; File &amp;quot;read_scanmaster.py&amp;quot;, line 18, in ?
&lt;br&gt;&amp;gt; &amp;nbsp;at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
&lt;br&gt;&amp;gt; &amp;nbsp;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.Class.forName0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.Class.forName(Class.java:186)
&lt;br&gt;&amp;gt; &amp;nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp;at 
&lt;br&gt;&amp;gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
&lt;br&gt;&amp;gt; &amp;nbsp;at 
&lt;br&gt;&amp;gt; sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
&lt;br&gt;&amp;gt; &amp;nbsp;at java.lang.reflect.Method.invoke(Method.java:616)
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: 
&lt;br&gt;&amp;gt; com.pervasive.jdbc.v2.Driver
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; I'm executing the script from the same environment as the Java code that 
&lt;br&gt;&amp;gt; is able to recognize the driver, so I know the CLASSPATH is right. &amp;nbsp;I've 
&lt;br&gt;&amp;gt; also tried setting the CLASSPATH within the Jython script with:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt; import sys
&lt;br&gt;&amp;gt; sys.path.append('/usr/local/psql/bin/jpscs.jar')
&lt;br&gt;&amp;gt; sys.path.append('/usr/local/psql/bin/pvjdbc2.jar')
&lt;br&gt;&amp;gt; sys.path.append('/usr/local/psql/bin/pvjdbc2x.jar')
&lt;br&gt;&amp;gt; ---------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; But that doesn't help either.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Any tips would be greatly appreciated.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Tony
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26399273&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;Justin Deoliveira
&lt;br&gt;OpenGeo - &lt;a href=&quot;http://opengeo.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://opengeo.org&lt;/a&gt;&lt;br&gt;Enterprise support for open source geospatial.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26399273&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Jython-not-finding-JDBC-driver-class-tp26379933p26399273.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26389867</id>
	<title>Re: One package for both jython and python with	distutils</title>
	<published>2009-11-17T05:22:14Z</published>
	<updated>2009-11-17T05:22:14Z</updated>
	<author>
		<name>Fabrizio Pollastri-3</name>
	</author>
	<content type="html">Alex Grönholm wrote:
&lt;br&gt;&amp;gt; Fabrizio Pollastri kirjoitti:
&lt;br&gt;&amp;gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;&amp;gt; I am trying to upgrade a pure python package distribution based on 
&lt;br&gt;&amp;gt;&amp;gt; distutils in such a way that it will work with both python and jython.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; Why do you need separate files for python and jython if it's a pure 
&lt;br&gt;&amp;gt; python distribution?
&lt;br&gt;&lt;br&gt;Deeply curious eh? :)
&lt;br&gt;&lt;br&gt;My package (avc.inrim.it) is a module that works with widget toolkits.
&lt;br&gt;so python has GTK, Qt, tk, wxWindows and jython has Swing. For this
&lt;br&gt;reason my package has a common part and a &amp;quot;driver&amp;quot; for each widget
&lt;br&gt;toolkit making the files different for python and jython even if it is a
&lt;br&gt;pure python package.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; One possible solution may be the following:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1. the source structure is
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; my_package_source_dir/
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_python
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_jython
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2. python setup.py sdist command has to build the distribution tar 
&lt;br&gt;&amp;gt;&amp;gt; my_package.tar.gz containing all files required by python and by jython.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 3. python setup.py install command has to install in the python package tree
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;my_package_source_dir/
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_python
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 4. jython setup.py install command has to install in the jython package tree
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;my_package_source_dir/
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_jython
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It is possible to implement this behavior with the setup function of 
&lt;br&gt;&amp;gt;&amp;gt; distutils? There are other ways (please, no package split)? Any 
&lt;br&gt;&amp;gt;&amp;gt; suggestion is welcome. Thank you in advance.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Fabrizio Pollastri
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389867&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389867&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389867&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-One-package-for-both-jython-and-python-with%09distutils-tp26389867p26389867.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26387681</id>
	<title>Re: One package for both jython and python with distutils</title>
	<published>2009-11-17T02:38:07Z</published>
	<updated>2009-11-17T02:38:07Z</updated>
	<author>
		<name>Alex Grönholm-3</name>
	</author>
	<content type="html">Fabrizio Pollastri kirjoitti:
&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; I am trying to upgrade a pure python package distribution based on 
&lt;br&gt;&amp;gt; distutils in such a way that it will work with both python and jython.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;Why do you need separate files for python and jython if it's a pure 
&lt;br&gt;python distribution?
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; One possible solution may be the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. the source structure is
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; my_package_source_dir/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_python
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_jython
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2. python setup.py sdist command has to build the distribution tar 
&lt;br&gt;&amp;gt; my_package.tar.gz containing all files required by python and by jython.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3. python setup.py install command has to install in the python package tree
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;my_package_source_dir/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_python
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4. jython setup.py install command has to install in the jython package tree
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;my_package_source_dir/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_jython
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It is possible to implement this behavior with the setup function of 
&lt;br&gt;&amp;gt; distutils? There are other ways (please, no package split)? Any 
&lt;br&gt;&amp;gt; suggestion is welcome. Thank you in advance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Fabrizio Pollastri
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387681&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387681&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/One-package-for-both-jython-and-python-with-distutils-tp26387385p26387681.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26387385</id>
	<title>One package for both jython and python with distutils</title>
	<published>2009-11-17T02:15:19Z</published>
	<updated>2009-11-17T02:15:19Z</updated>
	<author>
		<name>Fabrizio Pollastri-3</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;I am trying to upgrade a pure python package distribution based on 
&lt;br&gt;distutils in such a way that it will work with both python and jython.
&lt;br&gt;&lt;br&gt;One possible solution may be the following:
&lt;br&gt;&lt;br&gt;1. the source structure is
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; my_package_source_dir/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_python
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_jython
&lt;br&gt;&lt;br&gt;2. python setup.py sdist command has to build the distribution tar 
&lt;br&gt;my_package.tar.gz containing all files required by python and by jython.
&lt;br&gt;&lt;br&gt;3. python setup.py install command has to install in the python package tree
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;my_package_source_dir/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_python
&lt;br&gt;&lt;br&gt;4. jython setup.py install command has to install in the jython package tree
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;my_package_source_dir/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common_files
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; files_for_jython
&lt;br&gt;&lt;br&gt;&lt;br&gt;It is possible to implement this behavior with the setup function of 
&lt;br&gt;distutils? There are other ways (please, no package split)? Any 
&lt;br&gt;suggestion is welcome. Thank you in advance.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Fabrizio Pollastri
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387385&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/One-package-for-both-jython-and-python-with-distutils-tp26387385p26387385.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26379933</id>
	<title>Jython not finding JDBC driver class</title>
	<published>2009-11-16T13:19:49Z</published>
	<updated>2009-11-16T13:19:49Z</updated>
	<author>
		<name>Tony Schmidt-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;Hello Jython 
people.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;I'm trying to see if 
I can use Jython to write an ETL script so I can use a Pervasive JDBC driver and 
avoid writing the script in Java.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;I'm able to access 
the driver from Java with 
Class.forName(&quot;com.pervasive.jdbc.v2.Driver&quot;);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;However, I can't 
seem to get my Jython script to recognize the driver.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;------------------------------------------&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;from java import 
*&lt;BR&gt;from java.sql import *&lt;BR&gt;from java.lang import *&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;Class.forName(&quot;com.pervasive.jdbc.v2.Driver&quot;).newInstance()&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;--------------------------------------------&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;Gives 
me:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;--------------------------------------------&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;Traceback (innermost 
last):&lt;BR&gt;&amp;nbsp; File &quot;read_scanmaster.py&quot;, line 18, in ?&lt;BR&gt;&amp;nbsp;at 
java.net.URLClassLoader$1.run(URLClassLoader.java:217)&lt;BR&gt;&amp;nbsp;at 
java.security.AccessController.doPrivileged(Native Method)&lt;BR&gt;&amp;nbsp;at 
java.net.URLClassLoader.findClass(URLClassLoader.java:205)&lt;BR&gt;&amp;nbsp;at 
java.lang.ClassLoader.loadClass(ClassLoader.java:319)&lt;BR&gt;&amp;nbsp;at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)&lt;BR&gt;&amp;nbsp;at 
java.lang.ClassLoader.loadClass(ClassLoader.java:264)&lt;BR&gt;&amp;nbsp;at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)&lt;BR&gt;&amp;nbsp;at 
java.lang.Class.forName0(Native Method)&lt;BR&gt;&amp;nbsp;at 
java.lang.Class.forName(Class.java:186)&lt;BR&gt;&amp;nbsp;at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR&gt;&amp;nbsp;at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;BR&gt;&amp;nbsp;at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR&gt;&amp;nbsp;at 
java.lang.reflect.Method.invoke(Method.java:616)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: 
com.pervasive.jdbc.v2.Driver&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;--------------------------------------------&lt;/DIV&gt;&lt;/FONT&gt;&lt;/SPAN&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;I'm executing the 
script from the same environment as the Java code that is able to recognize the 
driver, so I know the CLASSPATH is right.&amp;nbsp; I've also tried setting the 
CLASSPATH within the Jython script with:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;--------------------------------------------&lt;/FONT&gt;&lt;BR&gt;&lt;FONT size=2 face=Arial&gt;import 
sys&lt;BR&gt;sys.path.append('/usr/local/psql/bin/jpscs.jar')&lt;BR&gt;sys.path.append('/usr/local/psql/bin/pvjdbc2.jar')&lt;BR&gt;sys.path.append('/usr/local/psql/bin/pvjdbc2x.jar')&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;---------------------------------------------&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN class=955115820-16112009&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;But that doesn't 
help either.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;Any tips would be 
greatly appreciated.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;Thanks.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=955115820-16112009&gt;&lt;FONT size=2 face=Arial&gt;Tony&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26379933&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Jython-not-finding-JDBC-driver-class-tp26379933p26379933.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26364185</id>
	<title>ctypes</title>
	<published>2009-11-15T14:21:35Z</published>
	<updated>2009-11-15T14:21:35Z</updated>
	<author>
		<name>josu jugo-3</name>
	</author>
	<content type="html">Hi 
&lt;br&gt;&lt;br&gt;I have seen that there is a branch for developing ctypes in jython. Can someone comment the state of this effort?
&lt;br&gt;&lt;br&gt;Thanks in advance
&lt;br&gt;&lt;br&gt;josu
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26364185&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JSR223-returning-Python-class-%28extending-java-interface%29-to-Java-tp26338347p26364185.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26356642</id>
	<title>Re: Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-14T21:34:56Z</published>
	<updated>2009-11-14T21:34:56Z</updated>
	<author>
		<name>Alex Grönholm-3</name>
	</author>
	<content type="html">David Griffin kirjoitti:
&lt;br&gt;&amp;gt; I guess my question was &amp;quot;is this approach acceptable for jython.jar&amp;quot;. &amp;nbsp;
&lt;br&gt;&amp;gt; I'd hate to be breaking the rules unwittingly...
&lt;br&gt;Jython is distributed under the PSF license, which looks just like the 
&lt;br&gt;MIT license. So you can essentially do whatever you want with it.
&lt;br&gt;Make sure you read the license beforehand though.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/11/13 Alex Grönholm &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356642&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alex.gronholm@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356642&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alex.gronholm@...&lt;/a&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; David Griffin kirjoitti:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; I have a sort of related question.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; I have been in the habit (when including external jars) of unpacking
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; them and then repacking them into my overall jar. &amp;nbsp;This works a
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; treat
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; (couple of lines in Ant) and enables me to supply a single Jar which
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; is convenient to use.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; I could even in theory add another line in Ant to delete any
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; unneeded
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; classes before repacking my final jar.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; It ensures that the version of that external Jar that the user
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; uses is
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; what I expect, and it's just cleaner all round.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; Now, this is presumably not optimal in the case where some of
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; the jars
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; might otherwise have been cached (eg a WebStart app perhaps ?)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; But there's another worry. &amp;nbsp; I once read something that implied
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; that I
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; might fall foul of a redistribution license if I ship someone else's
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; Jar this way. &amp;nbsp;Especially if I delete some of the contents of the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; original before repacking it.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; That kinda depends on the license in question, doesn't it?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; Is that true ?
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; David Griffin
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; I've found that luck is quite predictable. If you want more
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; luck, take
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; more chances. Be more active. Show up more often.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; - Brian Tracy
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 2008 30-Day
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; trial. Simplify your report design, integration and deployment -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; and focus on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356642&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356642&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Let Crystal Reports handle the reporting - Free Crystal Reports
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 2008 30-Day
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; trial. Simplify your report design, integration and deployment -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; and focus on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Jython-users mailing list
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356642&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356642&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; David Griffin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've found that luck is quite predictable. If you want more luck, take 
&lt;br&gt;&amp;gt; more chances. Be more active. Show up more often.
&lt;br&gt;&amp;gt; - Brian Tracy
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356642&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26356642.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26356122</id>
	<title>Re: JSR223 returning Python class (extending java interface) to Java</title>
	<published>2009-11-14T19:11:43Z</published>
	<updated>2009-11-14T19:11:43Z</updated>
	<author>
		<name>Josh Juneau-3</name>
	</author>
	<content type="html">Perhaps this small section in the Jython book will help out a bit.  The section here: &lt;a href=&quot;http://jythonpodcast.hostjava.net/jythonbook/chapter10.html#jsr-223&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jythonpodcast.hostjava.net/jythonbook/chapter10.html#jsr-223&lt;/a&gt; covers JSR-223, but not in the same context in which you are using it.  In my example for the book I am executing Jython statements as strings passed to the engine.  &lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;There are a couple of things I can think of that may resolve your issue. Have you imported your module using an import statement passed to the engine?  If so, have you tried to instantiate your Tada class from within Java?  You should be able to run those same statements that are contained in the test1() body directly within the engine and it *should* work without issue.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Personally, for working with code such as yours that implements a Java interface, I&amp;#39;d go with a Jython object factory.  You can also see some examples of object factories in the book.  Another good place to find some examples of object factories is the PlyJy project.  &lt;a href=&quot;http://kenai.com/projects/plyjy&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://kenai.com/projects/plyjy&lt;/a&gt;  Object factories allow you to work directly with code contained in your Jython module as long as they implement a method that is declared within the Java interface.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Hope this helps.&lt;/div&gt;&lt;div&gt;&lt;br clear=&quot;all&quot;&gt;Josh Juneau&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356122&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;juneau001@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://jj-blogger.blogspot.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jj-blogger.blogspot.com&lt;/a&gt;&lt;br&gt;
Twitter ID:  javajuneau&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 13, 2009 at 9:25 AM, Joseph Klumpp &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356122&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jklumpp0@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;
&lt;font face=&quot;Courier, Monospaced&quot;&gt;I am trying to access (from Java) a python class that extends a Java &lt;br&gt; interface. The following program runs fine in the jython console (I &lt;br&gt; can instantiate Tada, call t.getName() and everything prints &lt;br&gt;

 correctly.) However, if I invoke test1() from Java using JSR223, the &lt;br&gt; returned object is inaccessible (proxy type) and none of the &amp;quot;in &lt;br&gt; init&amp;quot;, &amp;quot;in getName&amp;quot; strings will print. &lt;br&gt; &lt;/font&gt;&lt;p&gt;
&lt;font face=&quot;Courier, Monospaced&quot;&gt;Furthermore, none of the lines print unless I convert ITest to a &lt;br&gt;
 concrete class, but then the getName methods return the concrete &lt;br&gt; implementation&amp;#39;s string. &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;Courier, Monospaced&quot;&gt;Has anyone successfully had this situation work, and how did you do &lt;br&gt;

 it? &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;Courier, Monospaced&quot;&gt;Thanks in advance &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;Courier, Monospaced&quot;&gt;Code: &lt;br&gt; =========== &lt;br&gt; import ITest &lt;br&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Courier, Monospaced&quot;&gt;class Tada(ITest): &lt;br&gt;         def __init__(self): &lt;br&gt;                 print &amp;quot;In Init&amp;quot; &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;Courier, Monospaced&quot;&gt;        def getName(self): &lt;br&gt;
                 print &amp;quot;In getName&amp;quot; &lt;br&gt;                 return &amp;quot;Joe Schmoe&amp;quot; &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;font face=&quot;Courier, Monospaced&quot;&gt;def test1(): &lt;br&gt;         t = Tada() &lt;br&gt;         print t.getName() &lt;br&gt;
         print &amp;quot;Hello, World&amp;quot; &lt;br&gt;         return t &lt;/font&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Jython-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356122&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26356122&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JSR223-returning-Python-class-%28extending-java-interface%29-to-Java-tp26338347p26356122.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26338347</id>
	<title>JSR223 returning Python class (extending java interface) to Java</title>
	<published>2009-11-13T07:25:26Z</published>
	<updated>2009-11-13T07:25:26Z</updated>
	<author>
		<name>Joseph Klumpp</name>
	</author>
	<content type="html">&lt;font class=&quot;fixed_width&quot; face=&quot;Courier, Monospaced&quot;&gt;I am trying to access (from Java) a python class that extends a Java &lt;br&gt; interface. The following program runs fine in the jython console (I &lt;br&gt; can instantiate Tada, call t.getName() and everything prints &lt;br&gt;
 correctly.) However, if I invoke test1() from Java using JSR223, the &lt;br&gt; returned object is inaccessible (proxy type) and none of the &amp;quot;in &lt;br&gt; init&amp;quot;, &amp;quot;in getName&amp;quot; strings will print. &lt;br&gt; &lt;/font&gt;&lt;p&gt;&lt;font class=&quot;fixed_width&quot; face=&quot;Courier, Monospaced&quot;&gt;Furthermore, none of the lines print unless I convert ITest to a &lt;br&gt;
 concrete class, but then the getName methods return the concrete &lt;br&gt; implementation&amp;#39;s string. &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font class=&quot;fixed_width&quot; face=&quot;Courier, Monospaced&quot;&gt;Has anyone successfully had this situation work, and how did you do &lt;br&gt;
 it? &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font class=&quot;fixed_width&quot; face=&quot;Courier, Monospaced&quot;&gt;Thanks in advance &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font class=&quot;fixed_width&quot; face=&quot;Courier, Monospaced&quot;&gt;Code: &lt;br&gt; =========== &lt;br&gt; import ITest &lt;br&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font class=&quot;fixed_width&quot; face=&quot;Courier, Monospaced&quot;&gt;class Tada(ITest): &lt;br&gt;         def __init__(self): &lt;br&gt;                 print &amp;quot;In Init&amp;quot; &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font class=&quot;fixed_width&quot; face=&quot;Courier, Monospaced&quot;&gt;        def getName(self): &lt;br&gt;
                 print &amp;quot;In getName&amp;quot; &lt;br&gt;                 return &amp;quot;Joe Schmoe&amp;quot; &lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;font class=&quot;fixed_width&quot; face=&quot;Courier, Monospaced&quot;&gt;def test1(): &lt;br&gt;         t = Tada() &lt;br&gt;         print t.getName() &lt;br&gt;
         print &amp;quot;Hello, World&amp;quot; &lt;br&gt;         return t &lt;/font&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26338347&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JSR223-returning-Python-class-%28extending-java-interface%29-to-Java-tp26338347p26338347.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26335018</id>
	<title>Re: Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-13T03:10:52Z</published>
	<updated>2009-11-13T03:10:52Z</updated>
	<author>
		<name>Alex Grönholm-3</name>
	</author>
	<content type="html">David Griffin kirjoitti:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a sort of related question.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have been in the habit (when including external jars) of unpacking 
&lt;br&gt;&amp;gt; them and then repacking them into my overall jar. &amp;nbsp;This works a treat 
&lt;br&gt;&amp;gt; (couple of lines in Ant) and enables me to supply a single Jar which 
&lt;br&gt;&amp;gt; is convenient to use.
&lt;br&gt;&amp;gt; I could even in theory add another line in Ant to delete any unneeded 
&lt;br&gt;&amp;gt; classes before repacking my final jar.
&lt;br&gt;&amp;gt; It ensures that the version of that external Jar that the user uses is 
&lt;br&gt;&amp;gt; what I expect, and it's just cleaner all round.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now, this is presumably not optimal in the case where some of the jars 
&lt;br&gt;&amp;gt; might otherwise have been cached (eg a WebStart app perhaps ?)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But there's another worry. &amp;nbsp; I once read something that implied that I 
&lt;br&gt;&amp;gt; might fall foul of a redistribution license if I ship someone else's 
&lt;br&gt;&amp;gt; Jar this way. &amp;nbsp;Especially if I delete some of the contents of the 
&lt;br&gt;&amp;gt; original before repacking it. 
&lt;/div&gt;That kinda depends on the license in question, doesn't it?
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is that true ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; David Griffin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've found that luck is quite predictable. If you want more luck, take 
&lt;br&gt;&amp;gt; more chances. Be more active. Show up more often.
&lt;br&gt;&amp;gt; - Brian Tracy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26335018&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26335018&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26335018.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26334117</id>
	<title>Re: Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-13T01:58:53Z</published>
	<updated>2009-11-13T01:58:53Z</updated>
	<author>
		<name>David Griffin</name>
	</author>
	<content type="html">I have a sort of related question.&lt;br&gt;&lt;br&gt;I have been in the habit (when including external jars) of unpacking them and then repacking them into my overall jar.  This works a treat (couple of lines in Ant) and enables me to supply a single Jar which is convenient to use.&lt;br&gt;
I could even in theory add another line in Ant to delete any unneeded classes before repacking my final jar.&lt;br&gt;It ensures that the version of that external Jar that the user uses is what I expect, and it&amp;#39;s just cleaner all round.&lt;br&gt;
&lt;br&gt;&lt;br&gt;Now, this is presumably not optimal in the case where some of the jars might otherwise have been cached (eg a WebStart app perhaps ?) &lt;br&gt;&lt;br&gt;But there&amp;#39;s another worry.   I once read something that implied that I might fall foul of a redistribution license if I ship someone else&amp;#39;s Jar this way.  Especially if I delete some of the contents of the original before repacking it.  &lt;br&gt;
&lt;br&gt;Is that true ?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;David Griffin&lt;br&gt;&lt;br&gt;I&amp;#39;ve found that luck is quite predictable. If you want more luck, take more chances. Be more active. Show up more often.&lt;br&gt;- Brian Tracy &lt;br&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334117&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26334117.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26332963</id>
	<title>Re: Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-13T00:19:20Z</published>
	<updated>2009-11-13T00:19:20Z</updated>
	<author>
		<name>Jan Wedel</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: Brady McCary [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26332963&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;brady.mccary+JYTHON@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Gesendet: Donnerstag, 12. November 2009 19:45
&lt;br&gt;&amp;gt; An: Alan Kennedy
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26332963&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [Jython-users] Compile xxx.py to Java Class then run
&lt;br&gt;&amp;gt; without Jython.jar ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 1. jython.jar: the runtime.
&lt;br&gt;&amp;gt; 2. jython-lib.jar: the compiled contents of the jython Lib directory.
&lt;br&gt;&amp;gt; 3. app.jar: my app.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Yes, you are able to do this! I develop JavaME application which cannot 
&lt;br&gt;load external classes/jar files. Whatever jar you execute, it has to be 
&lt;br&gt;self-contained. Thus, you'd need to put the whole jython.jar class files 
&lt;br&gt;in you JavaME jar which results in a extremely large file.
&lt;br&gt;&lt;br&gt;It would be nice (if possible) to split up the jython.jar in to at least 
&lt;br&gt;two components, one thats necessary for runtime execution of 
&lt;br&gt;precompiled jython class files and one for &amp;quot;the rest&amp;quot; (i.e. parser, 
&lt;br&gt;compiler, interactive prompt etc.). You could still provide an 
&lt;br&gt;out-of-the-box jython.jar additionally.
&lt;br&gt;&lt;br&gt;Jan
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26332963&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26332963.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26329933</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-12T17:33:48Z</published>
	<updated>2009-11-12T17:33:48Z</updated>
	<author>
		<name>Alex Grönholm-3</name>
	</author>
	<content type="html">Steve Cohen kirjoitti:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Leo Soto M. wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; On Thu, Nov 12, 2009 at 9:38 AM, Steve Cohen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26329933&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scohen@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks. &amp;nbsp;Essentially, I want to dump the results into text files such as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; csv without the adornments: no u' prefixing, no Ls after integers, etc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; The &amp;quot;adornments&amp;quot; you are seeing won't be dumped. You are seeing them
&lt;br&gt;&amp;gt;&amp;gt; because you are using repr() (or inspecting them on the interactive
&lt;br&gt;&amp;gt;&amp;gt; console which uses repr() over the result value of the expresion you
&lt;br&gt;&amp;gt;&amp;gt; type). If you just do string interpolation using &amp;quot;%s&amp;quot; (and not &amp;quot;%r&amp;quot;)
&lt;br&gt;&amp;gt;&amp;gt; the adornments won't be there.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;At this point I've only dumped the results to screen.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Which explains the confusion. If you use something like &amp;quot;print
&lt;br&gt;&amp;gt;&amp;gt; cursor.fetchall()[0][0]&amp;quot; you will see that everything is just fine.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Okay. &amp;nbsp;Thanks, this solution works, but it's not necessarily perfect. I
&lt;br&gt;&amp;gt; can live with it, but I guess I'm &amp;quot;spoiled&amp;quot; from my use of this stuff
&lt;br&gt;&amp;gt; back in the day when Python strings weren't unicode by default (and more
&lt;br&gt;&amp;gt; importantly, when I was fortunate enough to have Brian Zimmer as a
&lt;br&gt;&amp;gt; colleague). &amp;nbsp;I understand why the Python guys needed to do this, though.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Strings in Jython were all unicode up until 2.2 AFAIK. This is no longer 
&lt;br&gt;the case, as making a unicode string requires the use of the unicode 
&lt;br&gt;type now.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; To get down to brass tacks (a simple example):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; this works, which I take to be more or less your suggestion.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;from dbexts import dbexts
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; db=dbexts()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; try:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; ... &amp;nbsp;stmt = &amp;quot;&amp;quot;&amp;quot;SELECT UserName, 7 from Users where UserName='george'&amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; ... &amp;nbsp;h, results = db.raw(stmt)
&lt;br&gt;&amp;gt; ... &amp;nbsp;for r in results :
&lt;br&gt;&amp;gt; ... &amp;nbsp; &amp;nbsp;print &amp;quot;%s, %d&amp;quot; % r
&lt;br&gt;&amp;gt; ...except Exception, err:
&lt;br&gt;&amp;gt; ... &amp;nbsp; print err
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; george,7
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That output is fine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But it means I have to &amp;quot;unpack&amp;quot; my query results every time I do this.
&lt;br&gt;&amp;gt; I'd rather be able to say this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;from dbexts import dbexts
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; db=dbexts()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; try:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; ... &amp;nbsp;stmt = &amp;quot;&amp;quot;&amp;quot;SELECT UserName, 7 from Users where UserName='george'&amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; ... &amp;nbsp;h, results = db.raw(stmt)
&lt;br&gt;&amp;gt; ... &amp;nbsp;for r in results :
&lt;br&gt;&amp;gt; ... &amp;nbsp; &amp;nbsp;print r
&lt;br&gt;&amp;gt; ...except Exception, err:
&lt;br&gt;&amp;gt; ... &amp;nbsp; print err
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; but this output is not good. &amp;nbsp;And it's not so easy to just dump this
&lt;br&gt;&amp;gt; into a CSV file. &amp;nbsp;I see that python has a csv module that doesn't yet
&lt;br&gt;&amp;gt; support unicode.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (u'george', 7L)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since I KNOW, in this instance, that all the data I want to process is
&lt;br&gt;&amp;gt; ASCII, the unicode conversion is causing me extra work to do something
&lt;br&gt;&amp;gt; that should be easy. &amp;nbsp;It would be nice to have some way to specify this
&lt;br&gt;&amp;gt; stuff globally either in a preamble to the script or a configuration
&lt;br&gt;&amp;gt; file. &amp;nbsp;Addtionally the &amp;quot;L&amp;quot; suffix on numbers may not be related to
&lt;br&gt;&amp;gt; Unicode at all but it's another unwanted distraction.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there a way to do what I want in a more global way?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyway, whether there is or there isn't, thanks for your help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNATURE-----
&lt;br&gt;&amp;gt; Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;&amp;gt; Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iEYEARECAAYFAkr8tkYACgkQqyrAd6c4AROZ6QCfSVdJVWpzFKQkrlTzK1RIrV+z
&lt;br&gt;&amp;gt; dmgAoInAH36qSRcZIupj2AHM3XFNistt
&lt;br&gt;&amp;gt; =njTj
&lt;br&gt;&amp;gt; -----END PGP SIGNATURE-----
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26329933&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26329933&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26329933.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26329759</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-12T17:28:38Z</published>
	<updated>2009-11-12T17:28:38Z</updated>
	<author>
		<name>stevecoh1</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Leo Soto M. wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Nov 12, 2009 at 9:38 AM, Steve Cohen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26329759&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scohen@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Thanks. &amp;nbsp;Essentially, I want to dump the results into text files such as
&lt;br&gt;&amp;gt;&amp;gt; csv without the adornments: no u' prefixing, no Ls after integers, etc.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The &amp;quot;adornments&amp;quot; you are seeing won't be dumped. You are seeing them
&lt;br&gt;&amp;gt; because you are using repr() (or inspecting them on the interactive
&lt;br&gt;&amp;gt; console which uses repr() over the result value of the expresion you
&lt;br&gt;&amp;gt; type). If you just do string interpolation using &amp;quot;%s&amp;quot; (and not &amp;quot;%r&amp;quot;)
&lt;br&gt;&amp;gt; the adornments won't be there.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;At this point I've only dumped the results to screen.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Which explains the confusion. If you use something like &amp;quot;print
&lt;br&gt;&amp;gt; cursor.fetchall()[0][0]&amp;quot; you will see that everything is just fine.
&lt;/div&gt;&lt;br&gt;Okay. &amp;nbsp;Thanks, this solution works, but it's not necessarily perfect. I
&lt;br&gt;can live with it, but I guess I'm &amp;quot;spoiled&amp;quot; from my use of this stuff
&lt;br&gt;back in the day when Python strings weren't unicode by default (and more
&lt;br&gt;importantly, when I was fortunate enough to have Brian Zimmer as a
&lt;br&gt;colleague). &amp;nbsp;I understand why the Python guys needed to do this, though.
&lt;br&gt;&lt;br&gt;To get down to brass tacks (a simple example):
&lt;br&gt;&lt;br&gt;this works, which I take to be more or less your suggestion.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;from dbexts import dbexts
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;db=dbexts()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;try:
&lt;br&gt;... &amp;nbsp;stmt = &amp;quot;&amp;quot;&amp;quot;SELECT UserName, 7 from Users where UserName='george'&amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;... &amp;nbsp;h, results = db.raw(stmt)
&lt;br&gt;... &amp;nbsp;for r in results :
&lt;br&gt;... &amp;nbsp; &amp;nbsp;print &amp;quot;%s, %d&amp;quot; % r
&lt;br&gt;...except Exception, err:
&lt;br&gt;... &amp;nbsp; print err
&lt;br&gt;...
&lt;br&gt;george,7
&lt;br&gt;&lt;br&gt;That output is fine.
&lt;br&gt;&lt;br&gt;But it means I have to &amp;quot;unpack&amp;quot; my query results every time I do this.
&lt;br&gt;I'd rather be able to say this:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;from dbexts import dbexts
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;db=dbexts()
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;try:
&lt;br&gt;... &amp;nbsp;stmt = &amp;quot;&amp;quot;&amp;quot;SELECT UserName, 7 from Users where UserName='george'&amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;... &amp;nbsp;h, results = db.raw(stmt)
&lt;br&gt;... &amp;nbsp;for r in results :
&lt;br&gt;... &amp;nbsp; &amp;nbsp;print r
&lt;br&gt;...except Exception, err:
&lt;br&gt;... &amp;nbsp; print err
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;but this output is not good. &amp;nbsp;And it's not so easy to just dump this
&lt;br&gt;into a CSV file. &amp;nbsp;I see that python has a csv module that doesn't yet
&lt;br&gt;support unicode.
&lt;br&gt;&lt;br&gt;(u'george', 7L)
&lt;br&gt;&lt;br&gt;Since I KNOW, in this instance, that all the data I want to process is
&lt;br&gt;ASCII, the unicode conversion is causing me extra work to do something
&lt;br&gt;that should be easy. &amp;nbsp;It would be nice to have some way to specify this
&lt;br&gt;stuff globally either in a preamble to the script or a configuration
&lt;br&gt;file. &amp;nbsp;Addtionally the &amp;quot;L&amp;quot; suffix on numbers may not be related to
&lt;br&gt;Unicode at all but it's another unwanted distraction.
&lt;br&gt;&lt;br&gt;Is there a way to do what I want in a more global way?
&lt;br&gt;&lt;br&gt;Anyway, whether there is or there isn't, thanks for your help.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAkr8tkYACgkQqyrAd6c4AROZ6QCfSVdJVWpzFKQkrlTzK1RIrV+z
&lt;br&gt;dmgAoInAH36qSRcZIupj2AHM3XFNistt
&lt;br&gt;=njTj
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26329759&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26329759.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26324237</id>
	<title>Re: Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-12T10:44:53Z</published>
	<updated>2009-11-12T10:44:53Z</updated>
	<author>
		<name>Brady McCary-3</name>
	</author>
	<content type="html">jython-ers,
&lt;br&gt;&lt;br&gt;Yes, I did not address the issue of including the jython runtime. In
&lt;br&gt;my case, my app is distributed over Java Web Start, with the various
&lt;br&gt;jars having their own jnlp file.
&lt;br&gt;&lt;br&gt;1. jython.jar: the runtime.
&lt;br&gt;2. jython-lib.jar: the compiled contents of the jython Lib directory.
&lt;br&gt;3. app.jar: my app.
&lt;br&gt;&lt;br&gt;Etc. In this way, when my app is updated, users only have to download
&lt;br&gt;app.jar, not the entire runtime and libraries (as long as their Java
&lt;br&gt;Web Start cache has not been cleared).
&lt;br&gt;&lt;br&gt;The price of using python on top of java is that you must have a the
&lt;br&gt;jython runtime. For some, this is a high price, either due to
&lt;br&gt;complexity, size, the difficulty of selling it to management, etc. In
&lt;br&gt;my case, the payoff of programming in python and delivering it as a
&lt;br&gt;java app is well worth it.
&lt;br&gt;&lt;br&gt;Brady
&lt;br&gt;&lt;br&gt;PS. Sorry for the double reply Alan.
&lt;br&gt;&lt;br&gt;On Thu, Nov 12, 2009 at 12:32 PM, Alan Kennedy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324237&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jython-dev@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; [Brady]
&lt;br&gt;&amp;gt;&amp;gt; 4. So when you make a jar, it is only necessary to include the java .class files
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For example,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; mymodule.py -&amp;gt; mymodule$py.class
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It would not be necessary to include mymodule.py in the jar, only
&lt;br&gt;&amp;gt;&amp;gt; mymodule$py.class.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This looks like the sort of thing that &amp;quot;jump&amp;quot; could do, although I
&lt;br&gt;&amp;gt; don't know if it does right now.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://opensource.ollix.com/jump/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://opensource.ollix.com/jump/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Perhaps the OP might enter a feature request for it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Alan.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26324237&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26324237.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26323967</id>
	<title>Re: Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-12T10:32:44Z</published>
	<updated>2009-11-12T10:32:44Z</updated>
	<author>
		<name>Alan Kennedy-2</name>
	</author>
	<content type="html">[Brady]
&lt;br&gt;&amp;gt; 4. So when you make a jar, it is only necessary to include the java .class files
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mymodule.py -&amp;gt; mymodule$py.class
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It would not be necessary to include mymodule.py in the jar, only
&lt;br&gt;&amp;gt; mymodule$py.class.
&lt;br&gt;&lt;br&gt;This looks like the sort of thing that &amp;quot;jump&amp;quot; could do, although I
&lt;br&gt;don't know if it does right now.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://opensource.ollix.com/jump/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://opensource.ollix.com/jump/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Perhaps the OP might enter a feature request for it?
&lt;br&gt;&lt;br&gt;Alan.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323967&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26323967.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26323816</id>
	<title>Re: Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-12T10:24:46Z</published>
	<updated>2009-11-12T10:24:46Z</updated>
	<author>
		<name>Jeff Emanuel</name>
	</author>
	<content type="html">&lt;br&gt;All Brady says is true, but it doesn't address your concern
&lt;br&gt;about the footprint of jython.jar. &amp;nbsp;You always need jython.jar,
&lt;br&gt;or at least much of its contents. &amp;nbsp;You might be able to strip it down
&lt;br&gt;since you wouldn't need parsing with pre-compiled class files.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Brady McCary wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; David,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It is not necessary to ship the .py files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. When the python interpreter is instructed to load a module, it
&lt;br&gt;&amp;gt; creates a java .class file from the .py and loads the .class file.
&lt;br&gt;&amp;gt; 2. Unless there is a java .class file already created from the .py,
&lt;br&gt;&amp;gt; and the time stamp on the .class file is greater or equal to the .py
&lt;br&gt;&amp;gt; file.
&lt;br&gt;&amp;gt; 3. In which case it just uses the java .class.
&lt;br&gt;&amp;gt; 4. So when you make a jar, it is only necessary to include the java .class files
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mymodule.py -&amp;gt; mymodule$py.class
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It would not be necessary to include mymodule.py in the jar, only
&lt;br&gt;&amp;gt; mymodule$py.class.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Notes:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. The dollar sign $ is an artifact of java's inner class
&lt;br&gt;&amp;gt; name-mangling scheme, and reflects in part the technique used to
&lt;br&gt;&amp;gt; implement python in java.
&lt;br&gt;&amp;gt; 2. You will have to escape/quote the .class files for use in a shell
&lt;br&gt;&amp;gt; script, otherwise bash/sh will try to substitute the shell variable
&lt;br&gt;&amp;gt; $py, which is not what you want.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hope this helps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Brady
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 12, 2009 at 9:01 AM, David Griffin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323816&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gripfin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; I'd like to use Jython for some of my project's source file but end up with
&lt;br&gt;&amp;gt;&amp;gt; the whole thing compiled to java classes before it ships. &amp;nbsp;Specifically, I
&lt;br&gt;&amp;gt;&amp;gt; don't really want the footprint of jython.jar in my distribution.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm not sure jythonc actually did that (the docs seems to suggest keeping
&lt;br&gt;&amp;gt;&amp;gt; jython.jar on the classpath even at runtime) but now I see it is recommended
&lt;br&gt;&amp;gt;&amp;gt; that jythonc no longer be used anyway.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It looks therefore as if the &amp;quot;recommended&amp;quot; approach is to have a load of .py
&lt;br&gt;&amp;gt;&amp;gt; files in my Jar and to convert them to Java Classes at runtime. &amp;nbsp;I guess if
&lt;br&gt;&amp;gt;&amp;gt; I wanted to obfuscate I'd need to encode the .py files and then feed a
&lt;br&gt;&amp;gt;&amp;gt; decoded stream to the interpreter.
&lt;br&gt;&amp;gt;&amp;gt; And this all sounds like quite a runtime overhead.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I guess a JythonFactory with some caching of classes is the mosty efficient
&lt;br&gt;&amp;gt;&amp;gt; way to &amp;nbsp;go. &amp;nbsp;Is there an existing implementation of this already out there ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; David Griffin
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I've found that luck is quite predictable. If you want more luck, take more
&lt;br&gt;&amp;gt;&amp;gt; chances. Be more active. Show up more often.
&lt;br&gt;&amp;gt;&amp;gt; - Brian Tracy
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
&lt;br&gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus
&lt;br&gt;&amp;gt;&amp;gt; on
&lt;br&gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323816&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323816&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323816&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26323816.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26323298</id>
	<title>Re: Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-12T09:55:33Z</published>
	<updated>2009-11-12T09:55:33Z</updated>
	<author>
		<name>Brady McCary-3</name>
	</author>
	<content type="html">David,
&lt;br&gt;&lt;br&gt;It is not necessary to ship the .py files.
&lt;br&gt;&lt;br&gt;1. When the python interpreter is instructed to load a module, it
&lt;br&gt;creates a java .class file from the .py and loads the .class file.
&lt;br&gt;2. Unless there is a java .class file already created from the .py,
&lt;br&gt;and the time stamp on the .class file is greater or equal to the .py
&lt;br&gt;file.
&lt;br&gt;3. In which case it just uses the java .class.
&lt;br&gt;4. So when you make a jar, it is only necessary to include the java .class files
&lt;br&gt;&lt;br&gt;For example,
&lt;br&gt;&lt;br&gt;mymodule.py -&amp;gt; mymodule$py.class
&lt;br&gt;&lt;br&gt;It would not be necessary to include mymodule.py in the jar, only
&lt;br&gt;mymodule$py.class.
&lt;br&gt;&lt;br&gt;Notes:
&lt;br&gt;&lt;br&gt;1. The dollar sign $ is an artifact of java's inner class
&lt;br&gt;name-mangling scheme, and reflects in part the technique used to
&lt;br&gt;implement python in java.
&lt;br&gt;2. You will have to escape/quote the .class files for use in a shell
&lt;br&gt;script, otherwise bash/sh will try to substitute the shell variable
&lt;br&gt;$py, which is not what you want.
&lt;br&gt;&lt;br&gt;Hope this helps.
&lt;br&gt;&lt;br&gt;Brady
&lt;br&gt;&lt;br&gt;On Thu, Nov 12, 2009 at 9:01 AM, David Griffin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323298&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gripfin@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'd like to use Jython for some of my project's source file but end up with
&lt;br&gt;&amp;gt; the whole thing compiled to java classes before it ships.  Specifically, I
&lt;br&gt;&amp;gt; don't really want the footprint of jython.jar in my distribution.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not sure jythonc actually did that (the docs seems to suggest keeping
&lt;br&gt;&amp;gt; jython.jar on the classpath even at runtime) but now I see it is recommended
&lt;br&gt;&amp;gt; that jythonc no longer be used anyway.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It looks therefore as if the &amp;quot;recommended&amp;quot; approach is to have a load of .py
&lt;br&gt;&amp;gt; files in my Jar and to convert them to Java Classes at runtime.  I guess if
&lt;br&gt;&amp;gt; I wanted to obfuscate I'd need to encode the .py files and then feed a
&lt;br&gt;&amp;gt; decoded stream to the interpreter.
&lt;br&gt;&amp;gt; And this all sounds like quite a runtime overhead.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I guess a JythonFactory with some caching of classes is the mosty efficient
&lt;br&gt;&amp;gt; way to  go.  Is there an existing implementation of this already out there ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; David Griffin
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've found that luck is quite predictable. If you want more luck, take more
&lt;br&gt;&amp;gt; chances. Be more active. Show up more often.
&lt;br&gt;&amp;gt; - Brian Tracy
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus
&lt;br&gt;&amp;gt; on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323298&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323298&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26323298.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26320261</id>
	<title>Compile xxx.py to Java Class then run without Jython.jar ?</title>
	<published>2009-11-12T07:01:51Z</published>
	<updated>2009-11-12T07:01:51Z</updated>
	<author>
		<name>David Griffin</name>
	</author>
	<content type="html">I&amp;#39;d like to use Jython for some of my project&amp;#39;s source file but end up with the whole thing compiled to java classes before it ships.  Specifically, I don&amp;#39;t really want the footprint of jython.jar in my distribution.&lt;br&gt;
&lt;br&gt;I&amp;#39;m not sure jythonc actually did that (the docs seems to suggest keeping jython.jar on the classpath even at runtime) but now I see it is recommended that jythonc no longer be used anyway.&lt;br&gt;&lt;br&gt;It looks therefore as if the &amp;quot;recommended&amp;quot; approach is to have a load of .py files in my Jar and to convert them to Java Classes at runtime.  I guess if I wanted to obfuscate I&amp;#39;d need to encode the .py files and then feed a decoded stream to the interpreter.&lt;br&gt;
And this all sounds like quite a runtime overhead.&lt;br&gt;&lt;br&gt;I guess a JythonFactory  with some caching of classes is the mosty efficient way to  go.  Is there an existing implementation of this already out there ?&lt;br&gt;&lt;br&gt;&lt;br&gt;
-- &lt;br&gt;David Griffin&lt;br&gt;&lt;br&gt;I&amp;#39;ve found that luck is quite predictable. If you want more luck, take more chances. Be more active. Show up more often.&lt;br&gt;- Brian Tracy &lt;br&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26320261&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Compile-xxx.py-to-Java-Class-then-run-without-Jython.jar---tp26320261p26320261.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26318058</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-12T04:45:25Z</published>
	<updated>2009-11-12T04:45:25Z</updated>
	<author>
		<name>Leo Soto M.</name>
	</author>
	<content type="html">On Thu, Nov 12, 2009 at 9:38 AM, Steve Cohen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26318058&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scohen@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Thanks.  Essentially, I want to dump the results into text files such as
&lt;br&gt;&amp;gt; csv without the adornments: no u' prefixing, no Ls after integers, etc.
&lt;br&gt;&lt;br&gt;The &amp;quot;adornments&amp;quot; you are seeing won't be dumped. You are seeing them
&lt;br&gt;because you are using repr() (or inspecting them on the interactive
&lt;br&gt;console which uses repr() over the result value of the expresion you
&lt;br&gt;type). If you just do string interpolation using &amp;quot;%s&amp;quot; (and not &amp;quot;%r&amp;quot;)
&lt;br&gt;the adornments won't be there.
&lt;br&gt;&lt;br&gt;&amp;gt;  At this point I've only dumped the results to screen.
&lt;br&gt;&lt;br&gt;Which explains the confusion. If you use something like &amp;quot;print
&lt;br&gt;cursor.fetchall()[0][0]&amp;quot; you will see that everything is just fine.
&lt;br&gt;-- 
&lt;br&gt;Leo Soto M.
&lt;br&gt;&lt;a href=&quot;http://blog.leosoto.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.leosoto.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26318058&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26318058.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317961</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-12T04:38:25Z</published>
	<updated>2009-11-12T04:38:25Z</updated>
	<author>
		<name>stevecoh1</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Leo Soto M. wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Nov 12, 2009 at 12:18 AM, Steve Cohen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317961&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scohen@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; coming back to Jython and zxjdbc after several years away.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Trying to set up a zxjdbc connection to a mysql database.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The problem is that with any query I do, if the results contain String
&lt;br&gt;&amp;gt;&amp;gt; fields (VARCHAR, etc.) and I print the results, no matter what
&lt;br&gt;&amp;gt;&amp;gt; characters in the string, they always print as
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; u'stringvalue'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That's the repr(), which seems fine to me.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt;&amp;gt; I DON'T want to have to use encode() on every string returned.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Why would you need to do that?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Or better, what exactly do you need (like &amp;quot;printing the results on the
&lt;br&gt;&amp;gt; screen&amp;quot; or &amp;quot;creating a csv files with the results&amp;quot;) and why the
&lt;br&gt;&amp;gt; unicode strings (which are the right thing) don't give you what you
&lt;br&gt;&amp;gt; want?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Surely,
&lt;br&gt;&amp;gt;&amp;gt; there is a global way to make this ugliness disappear?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's not ugliness, it's the right thing to do. Python strings aren't
&lt;br&gt;&amp;gt; the equivalent of Java Strings. Python unicode strings are. We fixed
&lt;br&gt;&amp;gt; that on 2.5. But, if they are causing you problems, we need to know in
&lt;br&gt;&amp;gt; exactly what use case to either help you or fix Jython.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;/div&gt;&lt;br&gt;Thanks. &amp;nbsp;Essentially, I want to dump the results into text files such as
&lt;br&gt;csv without the adornments: no u' prefixing, no Ls after integers, etc.
&lt;br&gt;&amp;nbsp;At this point I've only dumped the results to screen.
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAkr8AcEACgkQqyrAd6c4ARMPtgCfZY/knNq/Af4XL+Yi/QVf+FWN
&lt;br&gt;/oQAn2es7UCvGqP0e97WK6Jr+f9UughU
&lt;br&gt;=gV69
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317961&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26317961.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317925</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-12T04:28:59Z</published>
	<updated>2009-11-12T04:28:59Z</updated>
	<author>
		<name>Leo Soto M.</name>
	</author>
	<content type="html">On Thu, Nov 12, 2009 at 12:18 AM, Steve Cohen &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317925&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scohen@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; coming back to Jython and zxjdbc after several years away.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Trying to set up a zxjdbc connection to a mysql database.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The problem is that with any query I do, if the results contain String
&lt;br&gt;&amp;gt; fields (VARCHAR, etc.) and I print the results, no matter what
&lt;br&gt;&amp;gt; characters in the string, they always print as
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; u'stringvalue'
&lt;/div&gt;&lt;br&gt;That's the repr(), which seems fine to me.
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&amp;gt; I DON'T want to have to use encode() on every string returned.
&lt;br&gt;&lt;br&gt;Why would you need to do that?
&lt;br&gt;&lt;br&gt;Or better, what exactly do you need (like &amp;quot;printing the results on the
&lt;br&gt;screen&amp;quot; or &amp;quot;creating a csv files with the results&amp;quot;) and why the
&lt;br&gt;unicode strings (which are the right thing) don't give you what you
&lt;br&gt;want?
&lt;br&gt;&lt;br&gt;&amp;gt; Surely,
&lt;br&gt;&amp;gt; there is a global way to make this ugliness disappear?
&lt;br&gt;&lt;br&gt;It's not ugliness, it's the right thing to do. Python strings aren't
&lt;br&gt;the equivalent of Java Strings. Python unicode strings are. We fixed
&lt;br&gt;that on 2.5. But, if they are causing you problems, we need to know in
&lt;br&gt;exactly what use case to either help you or fix Jython.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;-- 
&lt;br&gt;Leo Soto M.
&lt;br&gt;&lt;a href=&quot;http://blog.leosoto.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.leosoto.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317925&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26317925.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317917</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-12T04:27:09Z</published>
	<updated>2009-11-12T04:27:09Z</updated>
	<author>
		<name>stevecoh1</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Alex Grönholm wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Steve Cohen kirjoitti:
&lt;br&gt;&amp;gt; Alex Grönholm wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Steve Cohen kirjoitti:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; coming back to Jython and zxjdbc after several years away.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Trying to set up a zxjdbc connection to a mysql database.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The problem is that with any query I do, if the results contain String
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; fields (VARCHAR, etc.) and I print the results, no matter what
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; characters in the string, they always print as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; u'stringvalue'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; instead of just
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; stringvalue
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; or
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 'stringvalue'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I do not remember seeing this in my previous work with jython, but then
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I haven't worked with MYSQL and jython together before either.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I DON'T want to have to use encode() on every string returned. &amp;nbsp;Surely,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; there is a global way to make this ugliness disappear?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Not sure what the particular problem is, but are you using sqlalchemy 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; with it? If not, try it (the 0.6 branch).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; OK, What is sqalchemy and why must I use it? &amp;nbsp;When I used to use zxjdbc,
&lt;br&gt;&amp;gt; no such extra doohickey was required. &amp;nbsp;Before I rush out and try this
&lt;br&gt;&amp;gt; solution I'd like to know what the problem is.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; It's not required. It's just a very convenient way to access relational 
&lt;br&gt;&amp;gt;&amp;gt; databases.
&lt;br&gt;&amp;gt;&amp;gt; See &lt;a href=&quot;http://www.sqlalchemy.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sqlalchemy.org/&lt;/a&gt;&amp;nbsp;for more information.
&lt;/div&gt;&lt;br&gt;Had just gone there and had a look. &amp;nbsp;It looks at first glance to be way
&lt;br&gt;more than I need or want. &amp;nbsp;I am not building a complete system here.
&lt;br&gt;The system already exists and various tools exist for persisting data
&lt;br&gt;into the database. &amp;nbsp;This is supposed to be a querying system only that
&lt;br&gt;extracts data from the system on an ad-hoc basis and then calls upon
&lt;br&gt;gnuplot to generate graphs of that data. &amp;nbsp;An object-relational system
&lt;br&gt;looks like overkill from that perspective and yes, I am familiar with
&lt;br&gt;ORMs, I have built the persistence part of the system with Hibernate and
&lt;br&gt;like it very well.
&lt;br&gt;&lt;br&gt;I only want to understand why python/jython/zxjdbc is outputting my data
&lt;br&gt;in strange ways and fix it, especially when I know very well that back
&lt;br&gt;in the day, zxjdbc did no such thing. &amp;nbsp;I shouldn't have to convert to an
&lt;br&gt;ORM to do that. &amp;nbsp;I am looking for something more basic.
&lt;br&gt;&lt;br&gt;However, thanks for your suggestion. &amp;nbsp;SQLAlchemy looks like a great tool
&lt;br&gt;for designing a system in python/jython from the ground up. &amp;nbsp;But it's
&lt;br&gt;not what I need here. &amp;nbsp;The problem is basic and I just want to fix it.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; Also, while on the subject of output from zxjdbc, it is outputting all
&lt;br&gt;&amp;gt; integers as longs (3L, 4L, etc.) regardless of their size except in the
&lt;br&gt;&amp;gt; case of one column where it converts them to floats (17034.0). &amp;nbsp;In the
&lt;br&gt;&amp;gt; first case the database defines this as INTEGER(11) and the second is a
&lt;br&gt;&amp;gt; SUM of INTEGER(11)s. &amp;nbsp;I would also like to lose this unwanted formatting.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317917&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAkr7/x0ACgkQqyrAd6c4AROHygCdEYhrweRXBgX2vvvqNI173vjr
&lt;br&gt;EDYAnjxSloKE2Z2fDiBTGCumX2r9fPXF
&lt;br&gt;=3Ad/
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317917&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26317917.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317165</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-12T03:32:12Z</published>
	<updated>2009-11-12T03:32:12Z</updated>
	<author>
		<name>Alex Grönholm-3</name>
	</author>
	<content type="html">Steve Cohen kirjoitti:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Alex Grönholm wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Steve Cohen kirjoitti:
&lt;br&gt;&amp;gt;&amp;gt; coming back to Jython and zxjdbc after several years away.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Trying to set up a zxjdbc connection to a mysql database.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The problem is that with any query I do, if the results contain String
&lt;br&gt;&amp;gt;&amp;gt; fields (VARCHAR, etc.) and I print the results, no matter what
&lt;br&gt;&amp;gt;&amp;gt; characters in the string, they always print as
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; u'stringvalue'
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; instead of just
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; stringvalue
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; or
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 'stringvalue'
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I do not remember seeing this in my previous work with jython, but then
&lt;br&gt;&amp;gt;&amp;gt; I haven't worked with MYSQL and jython together before either.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I DON'T want to have to use encode() on every string returned. &amp;nbsp;Surely,
&lt;br&gt;&amp;gt;&amp;gt; there is a global way to make this ugliness disappear?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Not sure what the particular problem is, but are you using sqlalchemy 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; with it? If not, try it (the 0.6 branch).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; OK, What is sqalchemy and why must I use it? &amp;nbsp;When I used to use zxjdbc,
&lt;br&gt;&amp;gt; no such extra doohickey was required. &amp;nbsp;Before I rush out and try this
&lt;br&gt;&amp;gt; solution I'd like to know what the problem is.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;It's not required. It's just a very convenient way to access relational 
&lt;br&gt;databases.
&lt;br&gt;See &lt;a href=&quot;http://www.sqlalchemy.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sqlalchemy.org/&lt;/a&gt;&amp;nbsp;for more information.
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Also, while on the subject of output from zxjdbc, it is outputting all
&lt;br&gt;&amp;gt; integers as longs (3L, 4L, etc.) regardless of their size except in the
&lt;br&gt;&amp;gt; case of one column where it converts them to floats (17034.0). &amp;nbsp;In the
&lt;br&gt;&amp;gt; first case the database defines this as INTEGER(11) and the second is a
&lt;br&gt;&amp;gt; SUM of INTEGER(11)s. &amp;nbsp;I would also like to lose this unwanted formatting.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNATURE-----
&lt;br&gt;&amp;gt; Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;&amp;gt; Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iEYEARECAAYFAkr78Y0ACgkQqyrAd6c4ARNagwCfXKMUZCHfHQy5n5HrTJiRX9h2
&lt;br&gt;&amp;gt; ZLgAnRfGE17lSfPOL3ivLAdKKQ9N3aHl
&lt;br&gt;&amp;gt; =6XXi
&lt;br&gt;&amp;gt; -----END PGP SIGNATURE-----
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317165&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26317165.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26317130</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-12T03:29:17Z</published>
	<updated>2009-11-12T03:29:17Z</updated>
	<author>
		<name>stevecoh1</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Alex Grönholm wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Steve Cohen kirjoitti:
&lt;br&gt;&amp;gt; coming back to Jython and zxjdbc after several years away.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Trying to set up a zxjdbc connection to a mysql database.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The problem is that with any query I do, if the results contain String
&lt;br&gt;&amp;gt; fields (VARCHAR, etc.) and I print the results, no matter what
&lt;br&gt;&amp;gt; characters in the string, they always print as
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; u'stringvalue'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; instead of just
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; stringvalue
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; or
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 'stringvalue'
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I do not remember seeing this in my previous work with jython, but then
&lt;br&gt;&amp;gt; I haven't worked with MYSQL and jython together before either.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I DON'T want to have to use encode() on every string returned. &amp;nbsp;Surely,
&lt;br&gt;&amp;gt; there is a global way to make this ugliness disappear?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Not sure what the particular problem is, but are you using sqlalchemy 
&lt;br&gt;&amp;gt;&amp;gt; with it? If not, try it (the 0.6 branch).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;OK, What is sqalchemy and why must I use it? &amp;nbsp;When I used to use zxjdbc,
&lt;br&gt;no such extra doohickey was required. &amp;nbsp;Before I rush out and try this
&lt;br&gt;solution I'd like to know what the problem is.
&lt;br&gt;&lt;br&gt;Also, while on the subject of output from zxjdbc, it is outputting all
&lt;br&gt;integers as longs (3L, 4L, etc.) regardless of their size except in the
&lt;br&gt;case of one column where it converts them to floats (17034.0). &amp;nbsp;In the
&lt;br&gt;first case the database defines this as INTEGER(11) and the second is a
&lt;br&gt;SUM of INTEGER(11)s. &amp;nbsp;I would also like to lose this unwanted formatting.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAkr78Y0ACgkQqyrAd6c4ARNagwCfXKMUZCHfHQy5n5HrTJiRX9h2
&lt;br&gt;ZLgAnRfGE17lSfPOL3ivLAdKKQ9N3aHl
&lt;br&gt;=6XXi
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26317130&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26317130.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26312976</id>
	<title>Re: jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-11T19:41:47Z</published>
	<updated>2009-11-11T19:41:47Z</updated>
	<author>
		<name>Alex Grönholm-3</name>
	</author>
	<content type="html">Steve Cohen kirjoitti:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; coming back to Jython and zxjdbc after several years away.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Trying to set up a zxjdbc connection to a mysql database.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The problem is that with any query I do, if the results contain String
&lt;br&gt;&amp;gt; fields (VARCHAR, etc.) and I print the results, no matter what
&lt;br&gt;&amp;gt; characters in the string, they always print as
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; u'stringvalue'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; instead of just
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; stringvalue
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; or
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 'stringvalue'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do not remember seeing this in my previous work with jython, but then
&lt;br&gt;&amp;gt; I haven't worked with MYSQL and jython together before either.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I DON'T want to have to use encode() on every string returned. &amp;nbsp;Surely,
&lt;br&gt;&amp;gt; there is a global way to make this ugliness disappear?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Not sure what the particular problem is, but are you using sqlalchemy 
&lt;br&gt;with it? If not, try it (the 0.6 branch).
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNATURE-----
&lt;br&gt;&amp;gt; Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;&amp;gt; Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; iEYEARECAAYFAkr7foUACgkQqyrAd6c4ARMhlACePuwyPpL8u+6vFTfDxZ74Krj3
&lt;br&gt;&amp;gt; YVAAnixEE7eugXMFtWltvHq8VzacovrJ
&lt;br&gt;&amp;gt; =WjQh
&lt;br&gt;&amp;gt; -----END PGP SIGNATURE-----
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Jython-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312976&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312976&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26312976.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26312779</id>
	<title>jython, unicode, mysql and zxjdbc</title>
	<published>2009-11-11T19:18:29Z</published>
	<updated>2009-11-11T19:18:29Z</updated>
	<author>
		<name>stevecoh1</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;coming back to Jython and zxjdbc after several years away.
&lt;br&gt;&lt;br&gt;Trying to set up a zxjdbc connection to a mysql database.
&lt;br&gt;&lt;br&gt;The problem is that with any query I do, if the results contain String
&lt;br&gt;fields (VARCHAR, etc.) and I print the results, no matter what
&lt;br&gt;characters in the string, they always print as
&lt;br&gt;&lt;br&gt;u'stringvalue'
&lt;br&gt;&lt;br&gt;instead of just
&lt;br&gt;&lt;br&gt;stringvalue
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;'stringvalue'
&lt;br&gt;&lt;br&gt;I do not remember seeing this in my previous work with jython, but then
&lt;br&gt;I haven't worked with MYSQL and jython together before either.
&lt;br&gt;&lt;br&gt;I DON'T want to have to use encode() on every string returned. &amp;nbsp;Surely,
&lt;br&gt;there is a global way to make this ugliness disappear?
&lt;br&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAkr7foUACgkQqyrAd6c4ARMhlACePuwyPpL8u+6vFTfDxZ74Krj3
&lt;br&gt;YVAAnixEE7eugXMFtWltvHq8VzacovrJ
&lt;br&gt;=WjQh
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26312779&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/jython%2C-unicode%2C-mysql-and-zxjdbc-tp26312779p26312779.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26292955</id>
	<title>NaN handling. fpectl for jython?</title>
	<published>2009-11-10T14:24:05Z</published>
	<updated>2009-11-10T14:24:05Z</updated>
	<author>
		<name>Hansen, Lars</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am investigating using jython for interactive scientific computing. Have used R intensively, and like its handling of floating point NaN's (i.e. IEEE Not a Number). In R you can compute with NaN's without throwing exceptions. This works to a large extend in jython as well, like 1.2 * float('nan') returns nan. Unfortunately, exceptions are thrown in certain cases, like float('nan')/0. That I would like is for this to return nan as well. I get:
&lt;br&gt;&lt;br&gt;&amp;gt; float('nan')/0
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;&amp;lt;string&amp;gt;&amp;quot;, line 1, in &amp;lt;module&amp;gt;
&lt;br&gt;ZeroDivisionError: float division
&lt;br&gt;&lt;br&gt;In the past, I have used python and turned off these kinds of exceptions with the fpectl module. Is there any way of doing this in jython?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Lars Hansen
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Jython-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26292955&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Jython-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jython-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jython-users&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NaN-handling.-fpectl-for-jython--tp26292955p26292955.html" />
</entry>

</feed>
