Re: Importing a class, please help...

2006-02-05 Thread Alex Martelli
anon <[EMAIL PROTECTED]> wrote: > Xavier > > Yes I meant Python. I have also been using Jython and I am VERY WELL aware > what a JAR is. Jython has the ability to call methods stored in classes in > a JAR. I was only asking if this could be done with Python also. Classic Python is able to imp

Re: Importing a class, please help...

2006-02-05 Thread Terry Hancock
On Sun, 5 Feb 2006 10:41:51 -0500 "anon" <[EMAIL PROTECTED]> wrote: > Newbie to Python and I have a question please. I am using > Windows XP, SPE 0.8.2.a and Python24. I have done this: > > import sys > print sys.path > > no problem there, sys imports just fine. I have a folder > that I calle

Re: Importing a class, please help...

2006-02-05 Thread anon
Xavier Yes I meant Python. I have also been using Jython and I am VERY WELL aware what a JAR is. Jython has the ability to call methods stored in classes in a JAR. I was only asking if this could be done with Python also. You ask "why the hell would a Python script be able to read a JAR..".

Re: Importing a class, please help...

2006-02-05 Thread Xavier Morel
Jorgen Grahn wrote: > You are rude to an obvious newbie here ... please keep in mind that today's > stupid newbies are tomorrow's Python professionals. > I didn't mean to be rude and apologize if that's the way it came out. > Maybe he /is/ running Jython and failed to explain that properly? >

Re: Importing a class, please help...

2006-02-05 Thread Magnus Lycka
Jorgen Grahn wrote: >>Yeah, the definition of "JAR" is Java ARchive, why the hell would a >>Python script be able to read a JAR in the first place > > You are rude to an obvious newbie here ... Agreed. I don't think it was intended, but we should be cautious with our language when we address str

Re: Importing a class, please help...

2006-02-05 Thread Jorgen Grahn
On Sun, 05 Feb 2006 17:16:38 +0100, Xavier Morel <[EMAIL PROTECTED]> wrote: > anon wrote: >> Would somebody please drop me a hint, please? >> > Yeah, the definition of "JAR" is Java ARchive, why the hell would a > Python script be able to read a JAR in the first place You are rude to an obvious

Re: Importing a class, please help...

2006-02-05 Thread Xavier Morel
anon wrote: > Would somebody please drop me a hint, please? > Yeah, the definition of "JAR" is Java ARchive, why the hell would a Python script be able to read a JAR in the first place (truth is it is, a JAR file is nothing but a renamed ZIP, therefore the zipfile module allows you to read it's

Re: Importing a class, please help...

2006-02-05 Thread Jorge Godoy
"anon" <[EMAIL PROTECTED]> writes: > to do an Import on it. This is where things fail. I cannot see the > contents of my Jar. What am I missing here? That JARs are for Java and yo're using Python? -- Jorge Godoy <[EMAIL PROTECTED]> "Quidquid latine dictum sit, altum sonatur." - Qualq

Importing a class, please help...

2006-02-05 Thread anon
Hi, Newbie to Python and I have a question please. I am using Windows XP, SPE 0.8.2.a and Python24. I have done this: import sys print sys.path no problem there, sys imports just fine. I have a folder that I called c\JavaProjects\PythonTesting and it shows up in the output from sys.path ab