Not looking for a discussion on debug methods, just want to know if
there is any way to print an object.

eg. print myobject  OR  pprint.pprint(myobject)

just says something like

<django.forms.models.ModelChoiceField object at 0x1dc8eb0>

And unless I know the structure of the object I can't access the
values.


I'm probably going to get a blasting for not understanding how python
works, but there we go!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to