By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,814 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,814 IT Pros & Developers. It's quick & easy.

Java to Python - how to??

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.