A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-August/028267.html below:

[Python-Dev] convertibility

[Python-Dev] convertibility [Python-Dev] convertibilitySamuele Pedroni Samuele Pedroni" <pedroni@inf.ethz.ch
Sat, 24 Aug 2002 16:00:28 +0200
FYI , in _Jython_ given the java class

public class A {

public void fi(int i) {}

public void fd(double d) {}

public void fs(String s) {}

}

import A

a=A()

one can call

a.fi with a Python integer or long

a.fd with a Python integer or long or float

a.fs only with a Python string

[yes with type categories or adapt we could do better,
but the design prefers to minimize unexpected behaviour,
and in practice is not too much constraining]

regards.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4