Strange, simple Jython problem

Jp Calderone exarkun at intarweb.us
Thu Feb 20 16:00:10 EST 2003


On Thu, Feb 20, 2003 at 12:42:31PM -0800, Clueless Chris wrote:
> Hi all,
> 
> I'm an experienced Java guy who's messing around with Java a little. I
> can call regular Java classes just fine, such as Math.random() to get
> a random number -- the "Hello World" of Jython programs -- but calling
> my own classes, it complains that I'm an argument short. I get syntax
> errors saying "expecting 3 args; got 2", etc etc. I assume this is a
> 'this' issue, especially since when I try giving it a 3rd arg, it
> complains that my first arg, saying "self can't be coerced to" and
> then the type of the arg I tried to pass in.
> 
> What's strange is that the normal JDK classes work fine.
> 
> What am I missing here?

  Examples.

  Jp

-- 
"Pascal is Pascal is Pascal is dog meat."
                -- M. Devine and P. Larson, Computer Science 340
-- 
 up 12 days, 0:28, 3 users, load average: 0.46, 0.49, 0.52
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030220/d08232e9/attachment.sig>


More information about the Python-list mailing list