On 9 May 2009, at 17:41 , phoebebright wrote:
> Masklinn,
>
> Thanks. I see what you mean about being bored!  But that's a big step
> forward for me.
>
> As a PHP convert to Django/Python, I'm looking for the equivalent of
> print_r
There isn't one. Though there's the `dir` builtin which will display  
all attribute names (not their values) of your object. It's close to  
object.__dict__.keys() (but contains more stuff, and is sorted).

--~--~---------~--~----~------------~-------~--~----~
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