how do you print an object?

R

Rene Veerman

hi.

i'm a recent convert from php because google appengine runs python.
i have a whole cms backend to convert (also to bigtable, but thats
another story) to python now.

the first item on my agenda is the printing of python objects to json objects.
i have this nifty xhtml dataviewer (htmlMicroscope, see the downloads
page in my signature) that accepts json objects for display in the
browser. i also have an xhtml error viewer, logAndHandler, that does
sort of the same.
i want to use both of these with python, and i will promise to release
the python sources for hm() and lah() as well.

so my question is simple: how do you go from python object to json
representation of that object, preferably keeping everything including
function code in the json output?

i'll have many more questions, if i decide to convert my cms backend to python.
but it seems i'm without option on this ;)

side question: anybody know a cloud hosting service that does php? i
really have a ton of code already ;)


--
---------------------------------
Greetings from Rene7705,

My free open source webcomponents:
  http://code.google.com/u/rene7705/
  http://mediabeez.ws/downloads (and demos)

My music (i'm DJ firesnake)
  http://mediabeez.ws/music

http://www.facebook.com/rene7705
---------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top