Re: Python, C++: Connecting, creating a session

2009-02-12 Thread Gordon Sim
Rafael Schloming wrote: Jonathan Robie wrote: C++ seems simpler and cleaner to me here. You create a Connection object, open it, then use it to create a Session object: C++: = Connection connection; try { connection.open(host, port); Session session = connection.newSession();

Re: Python, C++: Connecting, creating a session

2009-02-12 Thread Gordon Sim
Rafael Schloming wrote: Gordon Sim wrote: - How does the C++ connect work without a username and password? That can be specified on Connection::open() either through the passed in ConnectionSetttings (preferred at present as this allows setting of various options including tcp/ssl/rdma) or

Python, C++: Connecting, creating a session

2009-02-11 Thread Jonathan Robie
C++ seems simpler and cleaner to me here. You create a Connection object, open it, then use it to create a Session object: C++: = Connection connection; try { connection.open(host, port); Session session = connection.newSession(); Python is more complex, because it requires: *

Re: Python, C++: Connecting, creating a session

2009-02-11 Thread Rafael Schloming
Jonathan Robie wrote: C++ seems simpler and cleaner to me here. You create a Connection object, open it, then use it to create a Session object: C++: = Connection connection; try { connection.open(host, port); Session session = connection.newSession(); Python is more complex,

Re: Python, C++: Connecting, creating a session

2009-02-11 Thread Aidan Skinner
On Wed, Feb 11, 2009 at 5:32 PM, Rafael Schloming rafa...@redhat.com wrote: - I can buy adding a static convenience method similar to the C++ one, although I'd expect a username and password somewhere as well. I think we should preserve the ability to pass in a socket from an arbitrary source