Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Java to Python - how to??

Reply
Thread Tools

Java to Python - how to??

 
 
ka_czor@poczta.onet.pl
Guest
Posts: n/a
 
      06-13-2005
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
 
Reply With Quote
 
 
 
 
George Sakkis
Guest
Posts: n/a
 
      06-13-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) 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

 
Reply With Quote
 
 
 
 
JZ
Guest
Posts: n/a
 
      06-13-2005
Dnia Mon, 13 Jun 2005 12:13:52 +0200, (E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Hot Requirements: 1.Sr Java Developer,2.Java Developer (Java with EJB) Isaac Java 0 01-20-2011 08:41 PM
hey i am just started java,, can anyone tell me the use ,application, why java , importance of java.. manish sahu Java 3 02-14-2008 12:00 AM
[JAVA] [EVALUATION] - The Java Failure (Sorry: The Java(tm) Failure) Ilias Lazaridis Java 0 02-01-2005 10:32 AM
Job to convert Java App 1.3.1 to Java Newest of Java Michael Kintner Java 0 11-30-2003 04:42 AM



Advertisments