470,636 Members | 1,514 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Java to Python - how to??

Hello

I just start programing in Python.
I've got a qestion, how translate the example code writen in Java to
Python??
public class ConnectionManager {

public ConnectionManager() {
super();
}
public void sendAgent(Agent anAgent, WorkplaceAddress anAddress) {

}
}

bye
Jul 19 '05 #1
2 1327
ka*****@poczta.onet.pl wrote:
Hello

I just start programing in Python.
I've got a qestion, how translate the example code writen in Java to
Python??
public class ConnectionManager {

public ConnectionManager() {
super();
}
public void sendAgent(Agent anAgent, WorkplaceAddress anAddress) {

}
}

bye

class ConnectionManager(object):

def __init__(self):
super(ConnectionManager,self).__init__()

def sendAgent(self, anAgent, anAddress):
pass
George

Jul 19 '05 #2
JZ
Dnia Mon, 13 Jun 2005 12:13:52 +0200, ka*****@poczta.onet.pl napisa≥(a):
I just start programing in Python.
I've got a qestion, how translate the example code writen in Java to
Python??
public class ConnectionManager {

public ConnectionManager() {
super();
}
public void sendAgent(Agent anAgent, WorkplaceAddress anAddress) {

}
}

class ConnectionManager:
def __init__(self):
pass
def sendAgent(anAgent, anAddress):
pass

or

class ConnectionManager(object):
def __init__(self):
super(ConnectionManager, self).__init__()
def sendAgent(anAgent, anAddress):
pass

--
JZ
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dave Brueck | last post: by
1 post views Thread by bezeee | last post: by
14 posts views Thread by Wolfgang Keller | last post: by
4 posts views Thread by angel | last post: by
4 posts views Thread by Luis P. Mendes | last post: by
114 posts views Thread by Maurice LING | last post: by
12 posts views Thread by Mark Fink | last post: by
63 posts views Thread by s0suk3 | last post: by
???
reply views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.