Re: C++, Python: Common Includes

2009-02-12 Thread Jonathan Robie
Joshua Kramer wrote: Every Python example currently has the same template, with a clearly marked section for the code that differs from other examples. I did that on purpose when I did the first set of examples ;-> If that's the RedHat documentation you're referring to... my script skeleton

Re: C++, Python: Common Includes

2009-02-12 Thread Joshua Kramer
And yes, please do share your skeleton! (That sounds a little gruesome, if you take it the wrong way, but you know what I mean ) Ok, let me get the 'skeleton out of the closet' :) and clean it up a bit, then I'll post it on my blog and provide a link here. Cheers, -Josh -- - http:

Re: C++, Python: Common Includes

2009-02-12 Thread Joshua Kramer
Every Python example currently has the same template, with a clearly marked section for the code that differs from other examples. I did that on purpose when I did the first set of examples ;-> If that's the RedHat documentation you're referring to... my script skeleton is actually based off

Re: C++, Python: Common Includes

2009-02-12 Thread Jonathan Robie
Martin Ritchie wrote: I'm no 'Python from a blank document' coder but would adding the template used by Joshua be helpful or unnecessary clutter? Every Python example currently has the same template, with a clearly marked section for the code that differs from other examples. I did that on

Re: C++, Python: Common Includes

2009-02-12 Thread Martin Ritchie
2009/2/11 Jonathan Robie : > OK, I see no enthusiasm to change the includes, pruning this thread > I'll focus on programming tasks. > > Jonathan > > - > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.a

Re: C++, Python: Common Includes

2009-02-11 Thread Jonathan Robie
OK, I see no enthusiasm to change the includes, pruning this thread I'll focus on programming tasks. Jonathan - Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subs

Re: C++, Python: Common Includes

2009-02-11 Thread Rafael Schloming
Jonathan Robie wrote: From our sample programs: C++: #include #include using namespace qpid::client; using namespace qpid::framing; Python: import qpid import sys import os from qpid.util import connect from qpid.connection import Connection from qpid.datatypes import Message, RangedSet, u

Re: C++, Python: Common Includes

2009-02-11 Thread Joshua Kramer
In Python, couldn't the user just import a Connection class and a Session class, and we could design the API so that they get what they need to use those classes automagically? Or is there a pythonic reason to do it this way? Philosophically, the reason you do it that way in Python is becau