You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
(51) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(105) |
Feb
(93) |
Mar
(194) |
Apr
(145) |
May
(100) |
Jun
(111) |
Jul
(117) |
Aug
(126) |
Sep
(233) |
Oct
(138) |
Nov
(164) |
Dec
(109) |
2002 |
Jan
(216) |
Feb
(175) |
Mar
(216) |
Apr
(194) |
May
(157) |
Jun
(140) |
Jul
(158) |
Aug
(73) |
Sep
(105) |
Oct
(164) |
Nov
(104) |
Dec
(95) |
2003 |
Jan
(72) |
Feb
(69) |
Mar
(81) |
Apr
(151) |
May
(101) |
Jun
(139) |
Jul
(99) |
Aug
(118) |
Sep
(115) |
Oct
(151) |
Nov
(161) |
Dec
(102) |
2004 |
Jan
(120) |
Feb
(175) |
Mar
(106) |
Apr
(111) |
May
(54) |
Jun
(78) |
Jul
(76) |
Aug
(105) |
Sep
(94) |
Oct
(143) |
Nov
(75) |
Dec
(85) |
2005 |
Jan
(99) |
Feb
(77) |
Mar
(164) |
Apr
(97) |
May
(79) |
Jun
(57) |
Jul
(65) |
Aug
(102) |
Sep
(95) |
Oct
(129) |
Nov
(123) |
Dec
(52) |
2006 |
Jan
(48) |
Feb
(99) |
Mar
(90) |
Apr
(51) |
May
(81) |
Jun
(136) |
Jul
(56) |
Aug
(109) |
Sep
(50) |
Oct
(44) |
Nov
(74) |
Dec
(75) |
2007 |
Jan
(92) |
Feb
(137) |
Mar
(93) |
Apr
(79) |
May
(52) |
Jun
(74) |
Jul
(143) |
Aug
(175) |
Sep
(154) |
Oct
(137) |
Nov
(88) |
Dec
(90) |
2008 |
Jan
(58) |
Feb
(113) |
Mar
(167) |
Apr
(88) |
May
(105) |
Jun
(37) |
Jul
(87) |
Aug
(72) |
Sep
(56) |
Oct
(41) |
Nov
(102) |
Dec
(70) |
2009 |
Jan
(115) |
Feb
(113) |
Mar
(126) |
Apr
(58) |
May
(125) |
Jun
(45) |
Jul
(90) |
Aug
(125) |
Sep
(84) |
Oct
(61) |
Nov
(111) |
Dec
(61) |
2010 |
Jan
(85) |
Feb
(86) |
Mar
(130) |
Apr
(58) |
May
(57) |
Jun
(32) |
Jul
(25) |
Aug
(50) |
Sep
(41) |
Oct
(65) |
Nov
(63) |
Dec
(24) |
2011 |
Jan
(43) |
Feb
(31) |
Mar
(28) |
Apr
(68) |
May
(53) |
Jun
(42) |
Jul
(58) |
Aug
(26) |
Sep
(51) |
Oct
(76) |
Nov
(60) |
Dec
(9) |
2012 |
Jan
(16) |
Feb
(32) |
Mar
(32) |
Apr
(39) |
May
(16) |
Jun
(19) |
Jul
(3) |
Aug
(11) |
Sep
(35) |
Oct
(47) |
Nov
(28) |
Dec
(18) |
2013 |
Jan
(18) |
Feb
(36) |
Mar
(10) |
Apr
(7) |
May
(7) |
Jun
(27) |
Jul
(17) |
Aug
(35) |
Sep
(19) |
Oct
(31) |
Nov
(8) |
Dec
(22) |
2014 |
Jan
(5) |
Feb
(11) |
Mar
(18) |
Apr
(23) |
May
(26) |
Jun
(14) |
Jul
(18) |
Aug
(26) |
Sep
(20) |
Oct
(48) |
Nov
(13) |
Dec
(9) |
2015 |
Jan
(9) |
Feb
(15) |
Mar
(25) |
Apr
(10) |
May
(26) |
Jun
(6) |
Jul
(13) |
Aug
(5) |
Sep
(14) |
Oct
(36) |
Nov
(24) |
Dec
(18) |
2016 |
Jan
(24) |
Feb
(11) |
Mar
(1) |
Apr
(6) |
May
(7) |
Jun
(3) |
Jul
(9) |
Aug
(15) |
Sep
(22) |
Oct
(5) |
Nov
(5) |
Dec
(2) |
2017 |
Jan
(20) |
Feb
(4) |
Mar
(4) |
Apr
(1) |
May
(5) |
Jun
(7) |
Jul
(14) |
Aug
(9) |
Sep
(18) |
Oct
(2) |
Nov
(3) |
Dec
(3) |
2018 |
Jan
(7) |
Feb
(6) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(18) |
Sep
(8) |
Oct
(9) |
Nov
(4) |
Dec
(6) |
2019 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(4) |
May
(6) |
Jun
(8) |
Jul
(11) |
Aug
(10) |
Sep
(6) |
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
(8) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
2021 |
Jan
|
Feb
|
Mar
(5) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(5) |
Jul
(15) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: brian z. <bz...@zi...> - 2002-03-13 01:51:37
|
Chuck, Why can't you assume cPickle is available? It's standard in the Jython dist as a Java-implemented module. I have modified your example a bit to use it and it seems to behave properly. Add the following two methods: --- code --- import cPickle def load_with_pickle(path): fp = open(path, "rb") try: data = cPickle.load(fp) finally: fp.close() return data def save_with_pickle(obj, path): fp = open(path, "wb") try: cPickle.dump(obj, fp) finally: fp.close() ... print "Testing initial object..." a = Test() a.test() save_with_pickle(a, "test.out") b = load_with_pickle("test.out") print "Testing deserialized object..." b.test() --- results --- $ jython cc.py Testing initial object... attr is None: 1 attr type is: org.python.core.PyNone attr == None: 1 Testing deserialized object... attr is None: 1 attr type is: org.python.core.PyNone attr == None: 1 Nonetheless, I see the same problem you do with the code snippet. brian > -----Original Message----- > From: ch...@er... [mailto:ch...@er...] On > Behalf Of chuck clark > Sent: Tuesday, March 12, 2002 7:32 PM > To: jyt...@li... > Cc: bu...@cu... > Subject: Issue with None and Serialization > > > I'm using Jython for my project and today we tried adding the > functionality where you can save out a Config object and then when you > restart you can load a Config if you need it. I'm using the java.io > libraries to do this because I can't assume pickle or any of the other > python libraries are on the machine. > > However I ran into an issue where after reading the > serialized object in > some statements which checked to see if an attribute on the object is > None were failing. I've recreated the problem in the code > snippet below > as succinctly as I can. Does anyone have any ideas on what I'm doing > wrong? I have a feeling it must be something really simple or could > this be a bug in Jython? > > TIA > chuck > > -------code------- > from java.io import * > from org.python.util import * > > class Test(Serializable): > def __init__(self): > self.attr = None > def test(self): > print "attr is None:", self.attr is None > print "attr type is:", type(self.attr) > print "attr == None:", self.attr == None > > def load(path): > file = File(path) > fileIn = FileInputStream(file) > pyIn = PythonObjectInputStream(fileIn) > pyObj = pyIn.readObject() > pyIn.close() > return pyObj > > def save(obj, path): > fileOut = FileOutputStream(path) > objOut = ObjectOutputStream(fileOut) > objOut.writeObject(obj) > objOut.flush() > objOut.close() > > print "Testing initial object..." > a = Test() > a.test() > save(a, "test.out") > b = load("test.out") > print "Testing deserialized object..." > b.test() > > -----results---- > Testing initial object... > attr is None: 1 > attr type is: org.python.core.PyNone > attr == None: 1 > Testing deserialized object... > attr is None: 0 > attr type is: org.python.core.PyNone > attr == None: 0 > > I would expect that if the attribute is of Type PyNone then it should > return 1 to > attr is None > and > attr == None > > I thought the problem might be that between > serializing/deserializing I > might somehow be getting a different instance of PyNone but this isn't > the case as evidenced below when I inspect the objects in the > interpreter after running th code above > >>> type(a.attr) > <jclass org.python.core.PyNone at 334527779> > >>> type(b.attr) > <jclass org.python.core.PyNone at 334527779> > |
From: chuck c. <cc...@zi...> - 2002-03-13 01:32:23
|
I'm using Jython for my project and today we tried adding the functionality where you can save out a Config object and then when you restart you can load a Config if you need it. I'm using the java.io libraries to do this because I can't assume pickle or any of the other python libraries are on the machine. However I ran into an issue where after reading the serialized object in some statements which checked to see if an attribute on the object is None were failing. I've recreated the problem in the code snippet below as succinctly as I can. Does anyone have any ideas on what I'm doing wrong? I have a feeling it must be something really simple or could this be a bug in Jython? TIA chuck -------code------- from java.io import * from org.python.util import * class Test(Serializable): def __init__(self): self.attr = None def test(self): print "attr is None:", self.attr is None print "attr type is:", type(self.attr) print "attr == None:", self.attr == None def load(path): file = File(path) fileIn = FileInputStream(file) pyIn = PythonObjectInputStream(fileIn) pyObj = pyIn.readObject() pyIn.close() return pyObj def save(obj, path): fileOut = FileOutputStream(path) objOut = ObjectOutputStream(fileOut) objOut.writeObject(obj) objOut.flush() objOut.close() print "Testing initial object..." a = Test() a.test() save(a, "test.out") b = load("test.out") print "Testing deserialized object..." b.test() -----results---- Testing initial object... attr is None: 1 attr type is: org.python.core.PyNone attr == None: 1 Testing deserialized object... attr is None: 0 attr type is: org.python.core.PyNone attr == None: 0 I would expect that if the attribute is of Type PyNone then it should return 1 to attr is None and attr == None I thought the problem might be that between serializing/deserializing I might somehow be getting a different instance of PyNone but this isn't the case as evidenced below when I inspect the objects in the interpreter after running th code above >>> type(a.attr) <jclass org.python.core.PyNone at 334527779> >>> type(b.attr) <jclass org.python.core.PyNone at 334527779> |
From: Edward P. <epo...@te...> - 2002-03-13 00:39:58
|
Hello, I just ported some python to java for various reasons. I have a package hierarchy like A B c.class, d.class if I: from A.B import * there is nothing in the global namespace. However if I: from A.B import c,d then all c, d are in the globals() What am I leaving out? I tried: Setting the python_path= root of A Setting the class path to root of A Adding __all__=[c,d] etc to the __init__.py folders (do I even need them, there are only .java and .class files in the hierarchy. Thanks -Ed |
From: Samuele P. <pe...@in...> - 2002-03-12 23:12:37
|
From: Oti <oh...@ya...> > Hello, > > I just stumbled over the following behaviour of string.replace(). > Is it true I cannot pass a java.lang.String as first argument: > > [appl|pwe] > jython > Jython 2.1 on java1.3.0 (JIT: null) > Type "copyright", "credits" or "license" for more information. > >>> import string > >>> from java.lang import String > >>> old = String( "old" ) > >>> string.replace( old, "l", "d" ) > Traceback (innermost last): > File "<console>", line 1, in ? > File "e:\jython21\Lib\string.py", line 409, in replace > TypeError: replace(): expected 2 args; got 3 > >>> string.replace( old.intern(), "l", "d" ) > 'odd' > > Yes, the odd behavior is expected. You should consider that string.py is coded assuming Python string input, and simply using the Python string object methods. so string.replace(s,old,new,maxsplit) simply calls s.replace(old,new,maxsplit) now perchance Java strings have a replace method which takes only 2 arguments. The other thing to consider is that Java constructors called from Jython do not convert the result, its Java instance nature is preserved. OTOH normal Java methods have their results always converted following the usual rules (eg. java.lang.String -> string): >>> from java.lang import String >>> s=String("java") >>> s.__class__ <jclass java.lang.String at 8070355> >>> type(s) <jclass org.python.core.PyJavaInstance at 6040101> >>> s2=s.toString() >>> type(s) == type('') 0 >>> type(s2) == type('') 1 The following also fails: >>> s+'__' Traceback (innermost last): File "<console>", line 1, in ? TypeError: __add__ nor __radd__ defined for these operands I don't know if we should change all this. regards. |
From: Oti <oh...@ya...> - 2002-03-12 22:26:47
|
Hello, I just stumbled over the following behaviour of string.replace(). Is it true I cannot pass a java.lang.String as first argument: [appl|pwe] > jython Jython 2.1 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import string >>> from java.lang import String >>> old = String( "old" ) >>> string.replace( old, "l", "d" ) Traceback (innermost last): File "<console>", line 1, in ? File "e:\jython21\Lib\string.py", line 409, in replace TypeError: replace(): expected 2 args; got 3 >>> string.replace( old.intern(), "l", "d" ) 'odd' Best wishes, and thanks, Oti. __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ |
From: Gerald G. <gu...@fn...> - 2002-03-11 15:05:26
|
Hi, This is a few years old, but it shows how to do some swing examples. http://home.fnal.gov/~gug/docs/jpython.ps Fermipython: ------------ FermiPython is a collection of scripts, modules and documents useful for demonstrating the use of python and jpython. The aim is to help provide information and demonstrate techniques to help a new user of these scripted languages get started programming. As of version 2_0, Fermipython now includes examples of how to use XML in JPython applications. The product can be downloaded from: ftp://ftp.fnal.gov/pub/fermipython/v2_0 and is released under the Fermi Software Tools Program: http://www.fnal.gov/fermitools/ > Message: 6 > Date: Sat, 09 Mar 2002 13:45:32 -0500 > To: R Datta <rd...@cr...>,jyt...@li... > From: Noel Rappin <no...@ya...> > Subject: Re: [Jython-users] Swing examples > > At 12:08 AM 3/9/02, you wrote: > > >I am looking for some Jython/ Swing sample code to code an utility. Any > >links/ suggestions ? > > Here's another shameless plug... If you can wait a couple of weeks, > _Jython Essentials_ has a full chapter with a number of Jython/Swing > examples, and a lot of material on using Java Libraries in general. > > Hope this helps. > > Thanks, > > Noel > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > -- -Jerry-> gu...@fn... Pepe's Theory of everything: "Under the right circumstances, things happen." |
From: BillWorker 2. <bil...@in...> - 2002-03-11 05:00:45
|
From: Ype Kingma <yk...@xs...> Subject: Re: [Jython-users] Swing examples > Ahish, > > >This is more of what I learnt while working with Jython and Swings! > > > >First, if you want to use Swings and its MVC architecture, you have to > >remember Swing is designed to work it Java objects. For example, when > >working with JList, I wanted to implement my own ListModel so I extended the > >AbstractListModel and went about writing my implementations of > >getElementAt() and getSize(). It took me one whole day of fooling around to > >realize that the object returned by getElementAt() should be an instance > >java.lang.Object. > > I suppose the compiler did not allow you to override the return value > of getElementAt() to a java basic type like int or char? > In case you override in jython code, jython will try and convert the returned > python object to an appropriate java object, which works surprisingly > well. What do you mean by override jython code? Sure, an easy way to convert python object to java object is to inherit from java.lang.Object. or other similar class. This is what I wanted to mention. Since, I started out with Java and when we don't mention explicitly the base class it is automatically made java.lang.Object. This is one thing we forget while working in Jython, so I just wanted to have this thing mentioned in FAQ. It took me a day to realise that Python objects do not inherit from java.lang.Object unless explicitly mentioned. This would be a nice reminder to any Java programmers! Of course, the other option is to make sure the whatever we return from getElementAt() is wrapped by a Java object. > >If you remember this and have the looks at the bean section of the docs, > >then any Swing books is good. > > > >Somehow, you just don't remember that. The examples all use strings and that > >is automatically handled. > > > >Guess someone should add that section to the FAQ! > > I'm afraid I don't understand your problem well enough. > > >Oh, about the shameless plug for Jython Essentials, guess I will wait till > >it becomes available in my part of the world (Kathmandu, Nepal). If it ever > >comes :-( Since, I don't have International credit cards I can't do online > >shopping and I don't think I would really like to go through all the hassel > >at banks, getting permissions for making dollar payments .... In short, > >visits to multiple organisations! > > You only need the Swing API docs, the Swing examples from Sun, > and a few jython examples on using Swing to get going. All of > this is downloadable, no paper needed. Yup, I don't think I would by a Jython book to learn Swings. That I have all the docs I need. I would by Jython book to see how Python works with Java! Or rather how to write more Pythonlike (Pythonic??) code! > Have fun, That's exactly what I am doing! > Ype > > P.S. You replied in private, which is ok to me, but it might not > have been your intention. (My mail program does not by default > reply to the list, but to the original sender, so I always have > to cut and past the list address to return to the list.) > I just realised neither does mine! |
From: ÃÖÁøÈñ <le...@ch...> - 2002-03-11 02:58:19
|
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987"> <meta name=ProgId content=Excel.Sheet> <meta name=Generator content="Microsoft Excel 9"> <link rel=File-List href="./홈페이지%20연결용%20신형%20메일광고.files/filelist.xml"> <link rel=Edit-Time-Data href="./홈페이지%20연결용%20신형%20메일광고.files/editdata.mso"> <link rel=OLE-Object-Data href="./홈페이지%20연결용%20신형%20메일광고.files/oledata.mso"> <!--[if gte mso 9]><xml> <o:DocumentProperties> <o:Author>m</o:Author> <o:LastAuthor>m</o:LastAuthor> <o:Created>2002-03-08T15:47:43Z</o:Created> <o:LastSaved>2002-03-08T16:02:05Z</o:LastSaved> <o:Version>9.2720</o:Version> </o:DocumentProperties> <o:OfficeDocumentSettings> <o:DownloadComponents/> <o:LocationOfComponents HRef="file:msowc.cab"/> </o:OfficeDocumentSettings> </xml><![endif]--> <style> <!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:1.0in .75in 1.0in .75in; mso-header-margin:.5in; mso-footer-margin:.5in;} .font6 {color:windowtext; font-size:20.0pt; font-weight:700; font-style:normal; text-decoration:none; font-family:돋움, monospace; mso-font-charset:129;} .font7 {color:blue; font-size:20.0pt; font-weight:700; font-style:normal; text-decoration:none; font-family:돋움, monospace; mso-font-charset:129;} .font8 {color:red; font-size:20.0pt; font-weight:700; font-style:normal; text-decoration:none; font-family:돋움, monospace; mso-font-charset:129;} .font9 {color:windowtext; font-size:18.0pt; font-weight:700; font-style:normal; text-decoration:none; font-family:돋움, monospace; mso-font-charset:129;} .font10 {color:red; font-size:18.0pt; font-weight:700; font-style:normal; text-decoration:none; font-family:돋움, monospace; mso-font-charset:129;} .font11 {color:blue; font-size:18.0pt; font-weight:700; font-style:normal; text-decoration:none; font-family:돋움, monospace; mso-font-charset:129;} .font12 {color:windowtext; font-size:18.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:돋움, monospace; mso-font-charset:129;} tr {mso-height-source:auto; mso-ruby-visibility:none;} col {mso-width-source:auto; mso-ruby-visibility:none;} br {mso-data-placement:same-cell;} .style0 {mso-number-format:General; text-align:general; vertical-align:bottom; white-space:nowrap; mso-rotate:0; mso-background-source:auto; mso-pattern:auto; color:windowtext; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:돋움; mso-generic-font-family:auto; mso-font-charset:129; border:none; mso-protection:locked visible; mso-style-name:표준; mso-style-id:0;} .style28 {color:blue; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:underline; text-underline-style:single; font-family:돋움, monospace; mso-font-charset:129; mso-style-name:하이퍼링크; mso-style-id:8;} a:link {color:blue; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:underline; text-underline-style:single; font-family:돋움, monospace; mso-font-charset:129;} a:visited {color:purple; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:underline; text-underline-style:single; font-family:돋움, monospace; mso-font-charset:129;} td {mso-style-parent:style0; padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:windowtext; font-size:11.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:돋움; mso-generic-font-family:auto; mso-font-charset:129; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;} .xl24 {mso-style-parent:style0; color:fuchsia; font-size:16.0pt; font-weight:700; font-family:돋움, monospace; mso-font-charset:129;} .xl25 {mso-style-parent:style0; color:blue; font-size:20.0pt; font-weight:700; font-family:돋움, monospace; mso-font-charset:129; background:yellow; mso-pattern:auto none;} .xl26 {mso-style-parent:style0; font-size:20.0pt; font-weight:700; font-family:돋움, monospace; mso-font-charset:129; background:yellow; mso-pattern:auto none;} .xl27 {mso-style-parent:style0; background:yellow; mso-pattern:auto none;} .xl28 {mso-style-parent:style0; color:blue; font-size:18.0pt; font-weight:700; font-family:돋움, monospace; mso-font-charset:129; background:yellow; mso-pattern:auto none;} .xl29 {mso-style-parent:style0; font-size:18.0pt; font-weight:700; font-family:돋움, monospace; mso-font-charset:129; background:yellow; mso-pattern:auto none;} .xl30 {mso-style-parent:style0; font-size:18.0pt; font-family:돋움, monospace; mso-font-charset:129; background:yellow; mso-pattern:auto none;} .xl31 {mso-style-parent:style28; color:blue; font-size:20.0pt; text-decoration:underline; text-underline-style:single; font-family:돋움, monospace; mso-font-charset:129; background:yellow; mso-pattern:auto none;} .xl32 {mso-style-parent:style0; font-size:20.0pt; font-family:돋움, monospace; mso-font-charset:129; background:yellow; mso-pattern:auto none;} ruby {ruby-align:left;} rt {color:windowtext; font-size:8.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:돋움, monospace; mso-font-charset:129; mso-char-type:none; display:none;} --> </style> <!--[if gte mso 9]><xml> <x:ExcelWorkbook> <x:ExcelWorksheets> <x:ExcelWorksheet> <x:Name>Sheet1</x:Name> <x:WorksheetOptions> <x:DefaultRowHeight>270</x:DefaultRowHeight> <x:Print> <x:ValidPrinterInfo/> <x:PaperSizeIndex>9</x:PaperSizeIndex> <x:HorizontalResolution>600</x:HorizontalResolution> <x:VerticalResolution>0</x:VerticalResolution> </x:Print> <x:Selected/> <x:Panes> <x:Pane> <x:Number>3</x:Number> <x:ActiveRow>11</x:ActiveRow> </x:Pane> </x:Panes> <x:ProtectContents>False</x:ProtectContents> <x:ProtectObjects>False</x:ProtectObjects> <x:ProtectScenarios>False</x:ProtectScenarios> </x:WorksheetOptions> </x:ExcelWorksheet> <x:ExcelWorksheet> <x:Name>Sheet2</x:Name> <x:WorksheetOptions> <x:DefaultRowHeight>270</x:DefaultRowHeight> <x:ProtectContents>False</x:ProtectContents> <x:ProtectObjects>False</x:ProtectObjects> <x:ProtectScenarios>False</x:ProtectScenarios> </x:WorksheetOptions> </x:ExcelWorksheet> <x:ExcelWorksheet> <x:Name>Sheet3</x:Name> <x:WorksheetOptions> <x:DefaultRowHeight>270</x:DefaultRowHeight> <x:ProtectContents>False</x:ProtectContents> <x:ProtectObjects>False</x:ProtectObjects> <x:ProtectScenarios>False</x:ProtectScenarios> </x:WorksheetOptions> </x:ExcelWorksheet> </x:ExcelWorksheets> <x:WindowHeight>9225</x:WindowHeight> <x:WindowWidth>12945</x:WindowWidth> <x:WindowTopX>240</x:WindowTopX> <x:WindowTopY>30</x:WindowTopY> <x:ProtectStructure>False</x:ProtectStructure> <x:ProtectWindows>False</x:ProtectWindows> </x:ExcelWorkbook> </xml><![endif]--> </head> <body link=blue vlink=purple> <table border =0 cellpadding=0 cellspacing=0 width=648 style="TABLE-LAYOUT: fixed; WIDTH: 486pt; BORDER-COLLAPSE: collapse" x:str> <COLGROUP> <col width=568 style="WIDTH: 426pt; mso-width-source: userset; mso-width-alt: 16156" > <col width=80 style="WIDTH: 60pt"> <tr class=xl26 height=34 style="HEIGHT: 25.5pt"> <td height=34 class=xl25 colspan=2 width=648 style="WIDTH: 486pt; HEIGHT: 25.5pt; mso-ignore: colspan" >화면<font class=font6> </font><font class=font8>100인치</font><font class=font7>/</font><font class=font8>200인치</font><font class=font6> </font><font class=font7>(빔프로젝터 급처분)</font></td> </tr> <tr class=xl27 height=18 style="HEIGHT: 13.5pt"> <td height=18 colspan=2 class=xl27 style="HEIGHT: 13.5pt; mso-ignore: colspan"> </td> </tr> <tr class=xl29 height=30 style="HEIGHT: 22.5pt"> <td height=30 class=xl28 style="HEIGHT: 22.5pt">노트북 <font class=font10>및 </font><font class=font11>레이져</font><font class=font9>는 </font><font class=font10>무료로 </font><font class=font11>드리겠습니다</font></td> <td class=xl29> </td> </tr> <tr class=xl27 height=18 style="HEIGHT: 13.5pt"> <td height=18 colspan=2 class=xl27 style="HEIGHT: 13.5pt; mso-ignore: colspan"> </td> </tr> <tr class=xl30 height=30 style="HEIGHT: 22.5pt"> <td height=30 class=xl30 style="HEIGHT: 22.5pt">자세한 사항은 <font class=font11>아래</font><font class=font12> </font><font class=font11>홈페이지 주소</font><font class=font12>를 </font><font class=font11>클릭</font><font class=font12> 하세요!</font></td> <td class=xl30> </td> </tr> <tr class=xl27 height=18 style="HEIGHT: 13.5pt"> <td height=18 colspan=2 class=xl27 style="HEIGHT: 13.5pt; mso-ignore: colspan"> </td> </tr> <tr class=xl32 height=34 style="HEIGHT: 25.5pt"> <td height=34 class=xl31 style="HEIGHT: 25.5pt"><a href="http://www.lownbest.com/"><span style="FONT-SIZE: 20pt">www.lownbest.com</span></a></td> <td class=xl32> </td> </tr> <tr height=18 style="HEIGHT: 13.5pt"> <td height=18 colspan=2 style="HEIGHT: 13.5pt; mso-ignore: colspan"></td> </tr> <tr class=xl24 height=27 style="HEIGHT: 20.25pt"> <td height=27 class=xl24 style="HEIGHT: 20.25pt">본 메일은 1회성 메일이며 두번다시 발송되지 않습니다.</td> <td class=xl24></td> </tr> <tr height=36 style="HEIGHT: 27pt; mso-xlrowspan: 2"> <td height=36 colspan=2 style="HEIGHT: 27pt; mso-ignore: colspan"> <center><a href='http://210.205.204.201:9080/refuse/refuse?cmd=view&group=33&name=&mail=jyt...@li...'><img src='http://210.205.204.201:9080/refuse/mail-refuse.gif' border=0)></center> </td> </tr> <tr height=18 style="HEIGHT: 13.5pt"> <td height=18 style="HEIGHT: 13.5pt"> </td> <td></td> </tr><![if supportMisalignedColumns]> <tr height=0 style='display:none'> <td width=568 style='width:426pt'></td> <td width=80 style='width:60pt'></td> </tr> <![endif]> </table> </body> </html> |
From: Samuele P. <pe...@in...> - 2002-03-10 02:01:57
|
From: rpcee <rp...@op...> > As a point of interest, if I'd used the thread context class loader (findClass > method?) would that have been better? In general no, but YMMV. Btw findClass is protected and does not deal with the creation of array classes, probably findLoadedClass does but that is private. You could have used loadClass (which uses the previous two) of the right classloader, or better Class.forName with the optional classloader parm that can deal with a null classloader (meaning the bootstrap one) (the method is only Java >= 1.2). In general as long as possible avoiding to deal with classloaders is the easier choice. Otherwise I would use Class.getClassLoader everytime is possible and then Class.forName with the opt classloader parm. regards. |
From: rpcee <rp...@op...> - 2002-03-09 23:55:16
|
>We should maybe add an optional parameter to array: > >such that array(...,class,n) is a n+1 dimensional class array . OK, but would it not be more intuitive to specify the actual dimension with a default value of 1? As a point of interest, if I'd used the thread context class loader (findClass method?) would that have been better? cheers, Rich |
From: Samuele P. <pe...@in...> - 2002-03-09 19:37:05
|
> many thanks. I also solved it with > java.lang.Class.forName("[Ljava.lang.Object;") > but i prefer your version. > The getClass technique has also the advantage to work even in the case the class classloader is not one of the usual suspects <wink>. forName approach then would become more trickier. We should maybe add an optional parameter to array: such that array(...,class,n) is a n+1 dimensional class array . So in you case you would write: array(...,java.lang.Object,1) regards. |
From: Noel R. <no...@ya...> - 2002-03-09 18:55:47
|
At 11:31 AM 3/9/02, Joshua Fox wrote: >Thanks, > >I see that Jython does in fact allow mult. inh., but not for inheritance >from java. > >I am wondering if there are any points where the JVM limits the full >flexible use of Python -- perhaps there are none. Microsoft claims that >the .NET Common Language Runtime is designed to be cross-language >compatible, but Jython seems to be good evidence that the JVM has that >kind of flexibility. A few places, but not many. Although it depends on your definition of JVM being the limiting factor -- the fact that the JVM can't run CPython module written in C removes a lot of useful libraries. There is some functionality of file objects, and the sys, and os modules in particular that is just not offered by the JVM. There are other CPython/Jython differences, of course, but those are the main ones stemming from limitations of the JVM itself, rather than differing design decisions. Hope this helps, Noel _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
From: Noel R. <no...@ya...> - 2002-03-09 18:55:46
|
At 12:08 AM 3/9/02, you wrote: >I am looking for some Jython/ Swing sample code to code an utility. Any >links/ suggestions ? Here's another shameless plug... If you can wait a couple of weeks, _Jython Essentials_ has a full chapter with a number of Jython/Swing examples, and a lot of material on using Java Libraries in general. Hope this helps. Thanks, Noel _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
From: Joshua F. <jo...@jo...> - 2002-03-09 16:31:56
|
Thanks, I see that Jython does in fact allow mult. inh., but not for inheritance from java. I am wondering if there are any points where the JVM limits the full flexible use of Python -- perhaps there are none. Microsoft claims that the .NET Common Language Runtime is designed to be cross-language compatible, but Jython seems to be good evidence that the JVM has that kind of flexibility. At 08:01 AM 3/8/2002 -0700, you wrote: >Joshua Fox wrote: > >>a ban on Python multiple inheritance > > >You can use MI if you don't inherit from multiple >Java classes. All these uses of MI work correctly: > > >>> class A: >... def a(self): print 'a' >... > >>> class B: >... def b(self): print 'b' >... > >>> class C(A,B): >... pass >... > >>> c=C() > >>> c.a() >a > >>> c.b() >b > >>> import java > >>> class D(A,java.lang.Object): >... pass >... > >>> d=D() > >>> d.a() >a > >>> d.toString() >'org.python.proxies.__main__$D$0@23b9c1' > >>> class E(java.lang.Object,java.io.Serializable): >... pass >... > >>> e=E() > >This doesn't: > > >>> class F(java.lang.Number,java.util.Date): >... pass >... >Traceback (innermost last): > File "<console>", line 1, in ? >TypeError: no multiple inheritance for Java classes: java.util.Date and >java.lan >g.Number > |
From: wings<bp...@or...> - 2002-03-09 15:17:02
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=unicode"> <META content="MSHTML 5.50.4134.100" name=GENERATOR></HEAD> <BODY><img src="http://w1.hompy.com/ibiz/mail/biz2.gif" border=0 usemap="#Map"> <map name="Map"> <area shape=RECT coords="340,5,478,19" href="http://istarhana.com" target="_blank"> <area shape=RECT coords="226,292,397,382" href="http://istarhana.com" target="_blank" alt="istarhana.com"> </map><br> <br><br><span style="FONT-SIZE: 9pt">e-mail주소는 인터넷상에서 취득하였으며, 주소외 어떠한 개인 정보도 가지고 있지 않습니다. <br>원치 않는 메일이라면 (<A href="mailto:bp...@or...">수신거부</A>)를 하시면 다시 보내드리지 않겠습니다.</span></BODY></HTML> |
From: Ype K. <yk...@xs...> - 2002-03-09 09:19:27
|
Raj, >I am looking for some Jython/ Swing sample code to code an utility. Any links/ suggestions ? Have a look in the demos/swing (iirc) directory in your jython installation. There is an example using JTree's and a python console with nicely coloured text output. Have fun, Ype -- |
From: R D. <rd...@cr...> - 2002-03-09 05:12:25
|
I am looking for some Jython/ Swing sample code to code an utility. Any links/ suggestions ? Thanks Raj |
From: rpcee <rp...@op...> - 2002-03-09 00:22:39
|
many thanks. I also solved it with java.lang.Class.forName("[Ljava.lang.Object;") but i prefer your version. |
From: <pt...@pt...> - 2002-03-08 17:34:23
|
<html>=0A<head>=0A<title> =A2=C8 =A2=C8 =A2=C8 =A2=C8 =C6=F7=C5=BB=C0=FC=B9= =AE=BB=E7=C0=CC=C6=AE - www=2Eptinfor=2Ecom =A2=C8 =A2=C8 =A2=C8 =A2=C8 </= title>=0A<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3D= euc-kr">=0A<script language=3D"JavaScript">=0A<!--=0Afunction MM_swapImgRe= store() { //v3=2E0=0A var i,x,a=3Ddocument=2EMM_sr; for(i=3D0;a&&i<a=2Ele= ngth&&(x=3Da[i])&&x=2EoSrc;i++) x=2Esrc=3Dx=2EoSrc;=0A}=0A=0Afunction MM_preloadImages() { //v3=2E0=0A va= r d=3Ddocument; if(d=2Eimages){ if(!d=2EMM_p) d=2EMM_p=3Dnew Array();=0A = var i,j=3Dd=2EMM_p=2Elength,a=3DMM_preloadImages=2Earguments; for(i=3D0;= i<a=2Elength; i++)=0A if (a[i]=2EindexOf("#")!=3D0){ d=2EMM_p[j]=3Dnew = Image; d=2EMM_p[j++]=2Esrc=3Da[i];}}=0A}=0A=0Afunction MM_findObj(n, d) { = //v3=2E0=0A var p,i,x; if(!d) d=3Ddocument; if((p=3Dn=2EindexOf("?"))>0&&parent=2Eframes=2Elength) {=0A d=3Dparent=2E= frames[n=2Esubstring(p+1)]=2Edocument; n=3Dn=2Esubstring(0,p);}=0A if(!(x= =3Dd[n])&&d=2Eall) x=3Dd=2Eall[n]; for (i=3D0;!x&&i<d=2Eforms=2Elength;i++= ) x=3Dd=2Eforms[i][n];=0A for(i=3D0;!x&&d=2Elayers&&i<d=2Elayers=2Elength;i= ++) x=3DMM_findObj(n,d=2Elayers[i]=2Edocument); return x;=0A}=0A=0Afunction MM= _swapImage() { //v3=2E0=0A var i,j=3D0,x,a=3DMM_swapImage=2Earguments; do= cument=2EMM_sr=3Dnew Array; for(i=3D0;i<(a=2Elength-2);i+=3D3)=0A if ((x=3DMM_findObj(a[i]))!=3Dnull= ){document=2EMM_sr[j++]=3Dx; if(!x=2EoSrc) x=2EoSrc=3Dx=2Esrc; x=2Esrc=3Da[i+2];}=0A}=0A//-->=0A</script>=0A</head> =0A=0A<body bgcolor=3D"#ffffff" leftmargin=3D"0" topmargin=3D"0" marginwid= th=3D"0" marginheight=3D"0" onLoad=3D"MM_preloadImages('images/mail-04=2Egif');"> <div id=3D"Layer1" style=3D"Z-INDEX: 1; LEFT: 0px; WIDTH: 660px; POSITION:= absolute; TOP: 0px; HEIGHT: 147px"></div> <table width=3D"660" border=3D"0" cellspacing=3D"0" cellpadding=3D"0" heig= ht=3D"500"> =20 <tr valign=3D"top">=20 <td height=3D"168"><img src=3D"http://www=2Eptinfor=2Ecom/mail/images/mail-05=2Egif" width=3D"660"= height=3D"147"></td> </tr> <tr>=20 <td>=20 <div align=3D"center"><img src=3D"http://www=2Eptinfor=2Ecom/mail/images/mail-01=2Egif" width=3D"543"= height=3D"162"></div> </td> </tr> <tr>=20 <td height=3D"157">=20 <div align=3D"center">=20 <table width=3D"660" border=3D"0" cellspacing=3D"0" cellpadding=3D= "0"> <tr>=20 <td>=20 <div align=3D"center"><img src=3D"http://www=2Eptinfor=2Ecom/mail/images/mail-02=2Egif" width=3D"535"= height=3D"119"></div> </td> </tr> <tr>=20 <td>=20 <table width=3D"660" border=3D"0" cellspacing=3D"0" cellpadd= ing=3D"0"> <tr>=20 <td width=3D"417"> </td> <td width=3D"243"><a href=3D"http://www=2Eptinfor=2Ecom"= onMouseOut=3D"MM_swapImgRestore()" onMouseOver=3D"MM_swapImage('Image4','','images/mail-04=2Egif',1)"><img name=3D"http://www=2Eptinfor=2Ecom/mail/Image4" border=3D"0" src=3D"http://www=2Eptinfor=2Ecom/mail/images/mail-03=2Egif" width=3D"214"= height=3D"47"></a></td> </tr> </table> </td> </tr> </table> </div> </td> </tr> <tr><td><div align=3D"center"><p> </p> <p><font face=3D"=B1=BC=B8=B2" size=3D"2"> =BA=BB=B8=DE=C0=CF=C0=BA <fo= nt color=3D"#990000"><b><font color=3D"#ff0000" size=3D"2">=B9=DF=BD=C5=C0=FC=BF=EB</font></b></font>=C0= =D4=B4=CF=B4=D9=2E</font> <p><font face=3D"=B1=BC=B8=B2" size=3D"2"> =BC=F6=BD=C5=B0=C5=BA=CE= =B8=DE=C0=CF=C0=BA =B4=D9=BD=C3 =BA=B8=B3=BB=B4=C2 =C0=CF=C0=CC =BE=F8=C0=B8=B4=CF<br> =B8=C7=BE=C6=B7=A1 =BC=F6=BD=C5=B0=C5=BA=CE=B8=A6 =C0=CC=BF=EB=C7= =D8 =C1=D6=BD=C3=B8=E9 =B0=A8=BB=E7=C7=CF=B0=DA=BD=C0=B4=CF=B4=D9=2E<br> =2E<br> =BC=F6=BD=C5 =B0=C5=BA=CE=B8=A6 =BF=F8=C7=CF=BD=C7 =B0=E6=BF=EC = =BE=C6=B7=A1=C0=C7 =BC=F6=BD=C5=B0=C5=BA=CE=B8=A6 =B2=C0 =C5=AC=B8=AF=C7=D8= =C1=D6=BC=BC=BF=E4~<br> <br> <br> <A href=3D"http://www=2Eptinfor=2Ecom/mail/receiver=2Ehtml" target=3D_blank><font color=3D"red" size=3D"2"><b>=BC=F6=BD=C5=B0=C5=BA=CE= </b></font></A>=20 </font></p></div>=20 =20 </td> </tr> </table> </body>=0A</html>=0A |
From: Kevin B. <kb...@ca...> - 2002-03-08 16:02:24
|
Joshua Fox wrote: > > I am looking for a convenient summary of ways in which Python is > incompatible with the JVM, whether interpreting in Jython or compiling with > jythonc. I'm not entirely sure what you mean. Obviously, if you can run something in Jython it isn't "incompatible with the JVM"... If you mean, "How do CPython and Jython differ", see: http://www.jython.org/docs/differences.html > I have identified a few such from the documentation, including a ban on > Python multiple inheritance, but where can I find a summary? You can do Python multiple inheritance in Jython, you just can't do multiple inheritance of subclasses of Java classes. (For a variety of reasons that I don't completely agree with. :-) / :-( ). Similar behavior exists with CPython extension classes. kb |
From: Joshua F. <jo...@jo...> - 2002-03-08 11:08:18
|
I am looking for a convenient summary of ways in which Python is incompatible with the JVM, whether interpreting in Jython or compiling with jythonc. I have identified a few such from the documentation, including a ban on Python multiple inheritance, but where can I find a summary? |
From: BillWorker 2. <bil...@in...> - 2002-03-08 05:14:17
|
I must confess, I love jython as it makes me at least twice as productive as I were with Java along. This has made me wonder if writing my JavaBeans and other middle-tier code in Jython instead of Java is a good idea when I am developing a web application. I know it works, I was just wondering if anyone has done it before. My friends who know are doing JSP can build the interface and I could do the rest with Jython. Has anyone done this before? ashish |
From: Ype K. <yk...@xs...> - 2002-03-07 19:41:59
|
Edward, You wrote: >Hello, > >I only have a handful of interpreters in my current app, but I was looking >at the PythonInterpreter source code, and I see that it is a lightweight >object. >I have an implementation that might be easier in separate interpreters, >except that I would need a few hundred! Is this a bad idea? I am more >curious than anything, since I will probably leave things as they are. It will work, but you might need to be careful with sys.modules. Almost a month ago there was some discussion on isolating PythonInterpreters and later on import being thread safe or not. Have a look at the archives of jython-dev. The opening message of 11 Feb 2002 had the title: "[Jython-dev] Static usage in jython - can we have less of it?" And on 12 Feb: "[Jython-dev] Thread safeness" Have fun, Ype -- |
From: Edward P. <epo...@te...> - 2002-03-07 18:52:15
|
Hello, I only have a handful of interpreters in my current app, but I was looking at the PythonInterpreter source code, and I see that it is a lightweight object. I have an implementation that might be easier in separate interpreters, except that I would need a few hundred! Is this a bad idea? I am more curious than anything, since I will probably leave things as they are. Thanks -Ed |
From: <Mat...@i2...> - 2002-03-07 17:02:35
|
There is a bug in jreload where it doesn't load the entire class file, thereby resulting in an invalid class/ClassFormatError. I have submitted a patch which fixes this, and you can get it by browsing the bug database for jython on sourceforge - http://sourceforge.net/tracker/index.php?func=detail&aid=511493&group_id=12867&atid=112867 Matt "Updike, Clark" <Cla...@jh...> Sent by: jyt...@li... 03/07/02 10:36 AM To: "'jyt...@li...'" <jyt...@li...> cc: Subject: [Jython-users] jreload import problem I'm trying to load a JDBC driver programatically with jreload (without putting it on the jvm's classpath when starting jython). When I try to import the driver class I get a ClassFormatError, possibly suggesting the thing I'm actually importing isn't really a class: >>> import sys, jreload >>> from com.ziclix.python.sql import zxJDBC >>> ls = jreload.makeLoadSet('oracleLS',['pathToJar/classes12.jar']) >>> from oracleLS.oracle.jdbc.driver import OracleDriver Traceback (most recent call last): java.lang.ClassFormatError: java.lang.ClassFormatError: oracle/jdbc/driver/OracleDriver (Illegal UTF8 string in constant pool) But, if I do the following: >>> from oracleLS.oracle.jdbc import driver >>> dir(driver) It shows me that the class is in the driver package: ['ArrayDataResultSet', 'ArrayLocatorResultSet', 'BaseResultSet', <snip> 'OracleDriver', 'OracleInputStream', 'OracleLog', <snip> 'UpdatableResultSet', '__name__'] I have inspected this jar file and there truly is a OracleDriver.class in the oracle.jdbc.driver package. Any ideas what I'm doing wrong? TIA, Clark _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |